public long queryIndexedFeaturesCount ( BoundingBox webMercatorBoundingBox ) { // Query for geometries matching the bounds in the index FeatureIndexResults results = queryIndexedFeatures ( webMercatorBoundingBox ) ; long count = 0 ; try { count = results . count ( ) ; } finally { results . close ( ) ; } return count ; }
Query for feature result count in the bounding box