@Test public void testSource() throws IOException { String type = ds.getNames().get(0).getLocalPart(); Query query = new Query(type); SimpleFeatureSource source = ds.getFeatureSource(ds.getNames().get(0)); assertEquals(51, source.getCount(query)); ReferencedEnvelope expected = new ReferencedEnvelope( -171.79111060289117, -66.96466, 18.916190000000142, 71.35776357694175, DefaultGeographicCRS.WGS84); ReferencedEnvelope obs = source.getBounds(); assertNotNull(obs); assertEquals(expected.getMinX(), obs.getMinX(), 0.00001); assertEquals(expected.getMinY(), obs.getMinY(), 0.00001); assertEquals(expected.getMaxX(), obs.getMaxX(), 0.00001); assertEquals(expected.getMaxY(), obs.getMaxY(), 0.00001); assertEquals(expected.getCoordinateReferenceSystem(), obs.getCoordinateReferenceSystem()); }
@Override public SimpleFeatureSource getFeatureSource() throws IOException { if (typeName == null) { createTypeNames(); } return super.getFeatureSource(typeName); }
GeoJSONDataStore extends ContentDataStore implements FileDataStore { @Override public SimpleFeatureSource getFeatureSource() throws IOException { if (typeName == null) { createTypeNames(); } return super.getFeatureSource(typeName); } }
GeoJSONDataStore extends ContentDataStore implements FileDataStore { @Override public SimpleFeatureSource getFeatureSource() throws IOException { if (typeName == null) { createTypeNames(); } return super.getFeatureSource(typeName); } GeoJSONDataStore(URL url);  GeoJSONDataStore(File f); }
GeoJSONDataStore extends ContentDataStore implements FileDataStore { @Override public SimpleFeatureSource getFeatureSource() throws IOException { if (typeName == null) { createTypeNames(); } return super.getFeatureSource(typeName); } GeoJSONDataStore(URL url);  GeoJSONDataStore(File f); @Override void createSchema(SimpleFeatureType featureType); @Override SimpleFeatureType getSchema(); @Override void updateSchema(SimpleFeatureType featureType); CoordinateReferenceSystem getCrs(); void setCrs(CoordinateReferenceSystem crs); URL getUrl(); void setUrl(URL url); @Override SimpleFeatureSource getFeatureSource(); @Override FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            Filter filter, Transaction transaction); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(Transaction transaction); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriterAppend(
            Transaction transaction); Name getTypeName(); }
GeoJSONDataStore extends ContentDataStore implements FileDataStore { @Override public SimpleFeatureSource getFeatureSource() throws IOException { if (typeName == null) { createTypeNames(); } return super.getFeatureSource(typeName); } GeoJSONDataStore(URL url);  GeoJSONDataStore(File f); @Override void createSchema(SimpleFeatureType featureType); @Override SimpleFeatureType getSchema(); @Override void updateSchema(SimpleFeatureType featureType); CoordinateReferenceSystem getCrs(); void setCrs(CoordinateReferenceSystem crs); URL getUrl(); void setUrl(URL url); @Override SimpleFeatureSource getFeatureSource(); @Override FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            Filter filter, Transaction transaction); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(Transaction transaction); @Override FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriterAppend(
            Transaction transaction); Name getTypeName();  }