code: public FeatureIndexResults queryFeatures(BoundingBox boundingBox, Projection projection) {
  
          if (projection == null) {
              projection = ProjectionFactory.getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
          }
  
          // Query for features
          FeatureIndexManager indexManager = featureTiles.getIndexManager();
          if (indexManager == null) {
              throw new GeoPackageException("Index Manager is not set on the Feature Tiles and is required to query indexed features");
          }
          FeatureIndexResults results = indexManager.query(boundingBox, projection);
          return results;
      }
docs: Query for features in the bounding box
  
  @param boundingBox query bounding box
  @param projection  bounding box projection
  @return feature index results, must be closed