Search in sources :

Example 1 with CoordinateSequenceFactory

use of com.vividsolutions.jts.geom.CoordinateSequenceFactory in project GeoGig by boundlessgeo.

the class ImportOp method insert.

private void insert(final WorkingTree workTree, final String path, @SuppressWarnings("rawtypes") final FeatureSource featureSource, final ProgressListener taskProgress) {
    final Query query = new Query();
    CoordinateSequenceFactory coordSeq = new PackedCoordinateSequenceFactory();
    query.getHints().add(new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY, coordSeq));
    workTree.insert(path, featureSource, query, taskProgress);
}
Also used : Query(org.geotools.data.Query) Hints(org.geotools.factory.Hints) CoordinateSequenceFactory(com.vividsolutions.jts.geom.CoordinateSequenceFactory) PackedCoordinateSequenceFactory(com.vividsolutions.jts.geom.impl.PackedCoordinateSequenceFactory) PackedCoordinateSequenceFactory(com.vividsolutions.jts.geom.impl.PackedCoordinateSequenceFactory)

Aggregations

CoordinateSequenceFactory (com.vividsolutions.jts.geom.CoordinateSequenceFactory)1 PackedCoordinateSequenceFactory (com.vividsolutions.jts.geom.impl.PackedCoordinateSequenceFactory)1 Query (org.geotools.data.Query)1 Hints (org.geotools.factory.Hints)1