| | |
| | | <src.output>${basedir}/target</src.output> |
| | | <java5>1.6</java5> |
| | | <xdgnio.version>2.0.0</xdgnio.version> |
| | | <gt.version>9.5.x</gt.version> |
| | | <gt.version>10.0.x</gt.version> |
| | | <failIfNoTests>false</failIfNoTests> |
| | | <stress.skip.pattern></stress.skip.pattern> |
| | | <online.skip.pattern></online.skip.pattern> |
| | |
| | | <dependency> |
| | | <groupId>commons-pool</groupId> |
| | | <artifactId>commons-pool</artifactId> |
| | | <version>1.5.6</version> |
| | | <version>1.6</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-logging</groupId> |
| | |
| | | <groupId>commons-cli</groupId> |
| | | <artifactId>commons-cli</artifactId> |
| | | <version>1.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>log4j</groupId> |
| | |
| | | <dependency> |
| | | <groupId>org.jdom</groupId> |
| | | <artifactId>jdom</artifactId> |
| | | <version>1.1</version> |
| | | <version>1.1.3</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | <dependency> |
| | | <groupId>org.quartz-scheduler</groupId> |
| | | <artifactId>quartz</artifactId> |
| | | <version>2.2.0</version> |
| | | <version>2.2.1</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.slf4j</groupId> |
| | |
| | | <dependency> |
| | | <groupId>org.quartz-scheduler</groupId> |
| | | <artifactId>quartz-jobs</artifactId> |
| | | <version>2.2.0</version> |
| | | <version>2.2.1</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.slf4j</groupId> |
| | |
| | | <dependency> |
| | | <groupId>it.geosolutions</groupId> |
| | | <artifactId>geoserver-manager</artifactId> |
| | | <version>1.5.2</version> |
| | | <!--version>1.5.2</version--> |
| | | <version>1.6-SNAPSHOT</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>xerces</groupId> |
| | | <artifactId>xercesImpl</artifactId> |
| | | <version>2.9.1</version> |
| | | <version>2.11.0</version> |
| | | </dependency> |
| | | <!-- Tests or legacy --> |
| | | <dependency> |
| | | <groupId>org.testng</groupId> |
| | | <artifactId>testng</artifactId> |
| | | <version>6.8.5</version> |
| | | <version>6.8.7</version> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | </dependencies> |
| | |
| | | <dependency> |
| | | <groupId>it.geosolutions</groupId> |
| | | <artifactId>geoserver-manager</artifactId> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.4</version> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | |
| | | </entry>
|
| | | <entry>
|
| | | <key>GEOSERVER_URL</key>
|
| | | <value>http://192.168.11.99:8780/geoserver</value>
|
| | | <value>http://192.168.11.99:8180/geoserver</value> |
| | | </entry>
|
| | | <entry>
|
| | | <key>GEOSERVER_USER</key>
|
| | |
| | | <url>http://www.ximple.com.tw</url> |
| | | |
| | | <properties> |
| | | <xdgnio.version>1.3.1</xdgnio.version> |
| | | <xdgnio.version>2.0.0</xdgnio.version> |
| | | </properties> |
| | | |
| | | <description> |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.TimeZone; |
| | | |
| | | import com.ximple.eofms.filter.AbstractFLinkageDispatchableFilter; |
| | | import com.ximple.eofms.filter.ElementDispatchableFilter; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.geotools.feature.SchemaException; |
| | | import org.opengis.feature.IllegalAttributeException; |
| | | import org.opengis.feature.simple.SimpleFeature; |
| | |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | */ |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | shapefileDataStore.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // shapefileDataStore.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(true); |
| | | shapefileDataStore.setIndexCreationEnabled(true); |
| | | |
| | | if (!sfile.exists()) { |
| | | ShapefileDataStore shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | shapefileDataStore.createSchema(featureType); |
| | | writer = shapefileDataStore.getFeatureWriter(featureType.getTypeName(), |
| | | Transaction.AUTO_COMMIT); |
| | | } else { |
| | | ShapefileDataStore shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | writer = shapefileDataStore.getFeatureWriterAppend(featureType.getTypeName(), |
| | | Transaction.AUTO_COMMIT); |
| | | } |
| | |
| | | private static final int SRSID_TWD97_ZONE119 = 3825; |
| | | private static final int SRSID_TWD97_ZONE121 = 3826; |
| | | public static final String DEFAULT_STORENAME = "pgDMMS"; |
| | | public static final String DEFAULT_GEODMMS_NAMESPACE = "http://tpc.ximple.com.tw/geodmms"; |
| | | |
| | | private static XGeosDataConfigMapping xgeosDataConfigMapping = null; |
| | | |
| | |
| | | |
| | | GeoServerRESTPublisher publisher = manager.getPublisher(); |
| | | if (!found) { |
| | | publisher.createWorkspace(DEFAULT_NAMESPACE, new URI("http://tpc.ximple.com.tw/geodmms")); |
| | | publisher.createWorkspace(DEFAULT_NAMESPACE, new URI(DEFAULT_GEODMMS_NAMESPACE)); |
| | | } |
| | | |
| | | RESTDataStore dataStore = reader.getDatastore(DEFAULT_NAMESPACE, DEFAULT_STORENAME); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.TimeZone; |
| | | |
| | | import com.ximple.eofms.filter.AbstractFLinkageDispatchableFilter; |
| | | import com.ximple.eofms.filter.ElementDispatchableFilter; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.geotools.feature.SchemaException; |
| | | import org.opengis.feature.IllegalAttributeException; |
| | | import org.opengis.feature.simple.SimpleFeature; |
| | |
| | | if (featuresWriterContext.containsKey(featureType.getTypeName())) { |
| | | writer = featuresWriterContext.get(featureType.getTypeName()); |
| | | } else { |
| | | ShapefileDataStore shapefileDataStore; |
| | | boolean existFile = sfile.exists(); |
| | | |
| | | if (!withIndex) { |
| | | shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | } else { |
| | | shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | store.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // store.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(withIndex); |
| | | shapefileDataStore.setIndexCreationEnabled(withIndex); |
| | | |
| | | if (!existFile) { |
| | | shapefileDataStore.createSchema(featureType); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.TimeZone; |
| | | |
| | | import com.ximple.eofms.filter.AbstractFLinkageDispatchableFilter; |
| | | import com.ximple.eofms.filter.ElementDispatcher; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.geotools.feature.SchemaException; |
| | | import org.opengis.feature.IllegalAttributeException; |
| | | import org.opengis.feature.simple.SimpleFeature; |
| | |
| | | if (featuresWriterContext.containsKey(featureType.getTypeName())) { |
| | | writer = featuresWriterContext.get(featureType.getTypeName()); |
| | | } else { |
| | | ShapefileDataStore shapefileDataStore = null; |
| | | boolean existFile = sfile.exists(); |
| | | |
| | | if (!withIndex) { |
| | | shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | } else { |
| | | shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | shapefileDataStore.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // shapefileDataStore.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(withIndex); |
| | | shapefileDataStore.setIndexCreationEnabled(withIndex); |
| | | |
| | | if (!existFile) { |
| | | shapefileDataStore.createSchema(featureType); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.TimeZone; |
| | | import java.util.TreeMap; |
| | | |
| | | import com.vividsolutions.jts.geom.Geometry; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.geotools.feature.SchemaException; |
| | | import org.geotools.feature.simple.SimpleFeatureBuilder; |
| | | import org.geotools.feature.simple.SimpleFeatureTypeBuilder; |
| | |
| | | if (featuresWriterContext.containsKey(featureType.getTypeName())) { |
| | | writer = featuresWriterContext.get(featureType.getTypeName()); |
| | | } else { |
| | | ShapefileDataStore shapefileDataStore = null; |
| | | boolean existFile = sfile.exists(); |
| | | |
| | | if (!withIndex) { |
| | | shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | } else { |
| | | shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | shapefileDataStore.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // shapefileDataStore.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(withIndex); |
| | | shapefileDataStore.setIndexCreationEnabled(withIndex); |
| | | |
| | | if (!existFile) { |
| | | shapefileDataStore.createSchema(featureType); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.TimeZone; |
| | | |
| | | import com.vividsolutions.jts.geom.Coordinate; |
| | | import com.vividsolutions.jts.geom.Envelope; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.geotools.feature.SchemaException; |
| | | import org.geotools.feature.simple.SimpleFeatureBuilder; |
| | | import org.geotools.feature.simple.SimpleFeatureTypeBuilder; |
| | |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | */ |
| | | ShapefileDataStore shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | shapefileDataStore.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // shapefileDataStore.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(true); |
| | | shapefileDataStore.setIndexCreationEnabled(true); |
| | | shapefileDataStore.createSchema(featureType); |
| | | writer = shapefileDataStore.getFeatureWriter(featureType.getTypeName(), Transaction.AUTO_COMMIT); |
| | | featuresWriterContext.put(featureType.getTypeName(), writer); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.Properties; |
| | | import java.util.TimeZone; |
| | | |
| | | import com.vividsolutions.jts.util.Assert; |
| | | import com.ximple.eofms.filter.AbstractFLinkageDispatchableFilter; |
| | |
| | | import org.geotools.data.FeatureWriter; |
| | | import org.geotools.data.Transaction; |
| | | import org.geotools.data.shapefile.ShapefileDataStore; |
| | | import org.geotools.data.shapefile.indexed.IndexType; |
| | | import org.geotools.data.shapefile.indexed.IndexedShapefileDataStore; |
| | | import org.opengis.feature.IllegalAttributeException; |
| | | import org.opengis.feature.simple.SimpleFeature; |
| | | import org.opengis.feature.simple.SimpleFeatureType; |
| | |
| | | if (featuresWriterContext.containsKey(featureType.getTypeName())) { |
| | | writer = featuresWriterContext.get(featureType.getTypeName()); |
| | | } else { |
| | | ShapefileDataStore shapefileDataStore; |
| | | boolean existFile = sfile.exists(); |
| | | |
| | | if (!withIndex) { |
| | | shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL(), |
| | | true, Charset.forName("UTF-8")); |
| | | } else { |
| | | shapefileDataStore = new IndexedShapefileDataStore(sfile.toURI().toURL(), |
| | | null, true, true, IndexType.QIX, Charset.forName("UTF-8")); |
| | | ShapefileDataStore shapefileDataStore = new ShapefileDataStore(sfile.toURI().toURL()); |
| | | /* |
| | | if(namespace != null) { |
| | | shapefileDataStore.setNamespaceURI(namespace.toString()); |
| | | } |
| | | */ |
| | | shapefileDataStore.setMemoryMapped(true); |
| | | // shapefileDataStore.setBufferCachingEnabled(cacheMemoryMaps); |
| | | shapefileDataStore.setCharset(Charset.forName("UTF-8")); |
| | | shapefileDataStore.setTimeZone(TimeZone.getDefault()); |
| | | shapefileDataStore.setIndexed(withIndex); |
| | | shapefileDataStore.setIndexCreationEnabled(withIndex); |
| | | |
| | | if (!existFile) { |
| | | shapefileDataStore.createSchema(featureType); |