Guest User

Untitled

a guest
Oct 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // Read
  2. DataStore inputDataStore = DataStoreFinder.getDataStore(inParams);
  3.  
  4. String inputTypeName = "AstunLocationLookup";
  5. SimpleFeatureType inputType = inputDataStore.getSchema(inputTypeName);
  6.  
  7. FeatureSource<SimpleFeatureType, SimpleFeature> source = inputDataStore.getFeatureSource(inputTypeName);
  8.  
  9. Filter filter = ff.bbox(ff.property(geometryPropertyName), bbox);
  10. // write results
  11. SimpleFeatureCollection features = source.getFeatures(filter);
Add Comment
Please, Sign In to add comment