Package org.geotools.geometry.jts

Examples of org.geotools.geometry.jts.LiteCoordinateSequenceFactory


        assertTrue(fs.getSupportedHints().contains(Hints.JTS_COORDINATE_SEQUENCE_FACTORY));

        // setup a query that mimicks the streaming renderer behaviour
        DefaultQuery q = new DefaultQuery(tname(LINE3D));
        Hints hints = new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
                new LiteCoordinateSequenceFactory());
        q.setHints(hints);

        // check the srs you get is the expected one
        FeatureCollection fc = fs.getFeatures(q);
        FeatureType fcSchema = fc.getSchema();
View Full Code Here


    public void testGeometryFactoryHintsGF() throws IOException {
        SimpleFeatureSource fs = dataStore.getFeatureSource(tname("road"));
        assertTrue(fs.getSupportedHints().contains(Hints.JTS_GEOMETRY_FACTORY));

        DefaultQuery q = new DefaultQuery(tname("road"));
        GeometryFactory gf = new GeometryFactory(new LiteCoordinateSequenceFactory());
        Hints hints = new Hints(Hints.JTS_GEOMETRY_FACTORY, gf);
        q.setHints(hints);

        SimpleFeatureIterator it = fs.getFeatures(q).features();
        it.hasNext();
View Full Code Here

        SimpleFeatureSource fs = dataStore.getFeatureSource(tname("road"));
        assertTrue(fs.getSupportedHints().contains(Hints.JTS_COORDINATE_SEQUENCE_FACTORY));

        DefaultQuery q = new DefaultQuery(tname("road"));
        Hints hints = new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
                new LiteCoordinateSequenceFactory());
        q.setHints(hints);

        SimpleFeatureIterator it = fs.getFeatures(q).features();
        it.hasNext();
View Full Code Here

    }

    private void testBuilderRespectsGeometryFactory(final Geometry[] testData) throws SeException,
            IOException, DataSourceException {
        final GeometryFactory geometryFactory = new GeometryFactory(
                new LiteCoordinateSequenceFactory());
        Geometry[] geoms = buildJTSgeometriesFromShapes(testData, geometryFactory);
        for (int i = 0; i < geoms.length; i++) {
            Assert.assertSame(geometryFactory, geoms[i].getFactory());
        }
    }
View Full Code Here

                break;
            }
        }
       
        //tell the datastore to use a lite coordinate sequence factory, if possible
        hints.put(Hints.JTS_COORDINATE_SEQUENCE_FACTORY, new LiteCoordinateSequenceFactory());
       
        // check for sql view parameters
        if(viewParams != null) {
            hints.put(Hints.VIRTUAL_TABLE_PARAMETERS, viewParams);
        }
View Full Code Here

                break;
            }
        }
       
        //tell the datastore to use a lite coordinate sequence factory, if possible
        hints.put(Hints.JTS_COORDINATE_SEQUENCE_FACTORY, new LiteCoordinateSequenceFactory());
       
        // check for sql view parameters
        if(viewParams != null) {
            hints.put(Hints.VIRTUAL_TABLE_PARAMETERS, viewParams);
        }
View Full Code Here

        && !CRS.equalsIgnoreMetadata(crs, target)) {
      query.setCoordinateSystemReproject(target);
    }
    final Hints hints = new Hints();
    hints.put(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
        new LiteCoordinateSequenceFactory());
    hints.put(Query.INCLUDE_MANDATORY_PROPS, true);
    hints.put(Hints.FEATURE_2D, Boolean.FALSE);
    query.setHints(hints);
    return query;
  }
View Full Code Here

        && !CRS.equalsIgnoreMetadata(crs, target)) {
      query.setCoordinateSystemReproject(target);
    }
    final Hints hints = new Hints();
    hints.put(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
        new LiteCoordinateSequenceFactory());
    hints.put(Query.INCLUDE_MANDATORY_PROPS, true);
    hints.put(Hints.FEATURE_2D, Boolean.FALSE);
    query.setHints(hints);
    return query;
  }
View Full Code Here

        && !CRS.equalsIgnoreMetadata(crs, target)) {
      query.setCoordinateSystemReproject(target);
    }
    final Hints hints = new Hints();
    hints.put(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
        new LiteCoordinateSequenceFactory());
    hints.put(Query.INCLUDE_MANDATORY_PROPS, true);
    hints.put(Hints.FEATURE_2D, Boolean.FALSE);
    query.setHints(hints);
    return query;
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.jts.LiteCoordinateSequenceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.