Query newQuery = adaptQuery(reprojected, schema);
public FeatureCollection getVersionedFeatures(Query query) throws IOException { final VersioningFeatureSource versioningSource = ((VersioningFeatureSource) source); Query newQuery = adaptQuery(query, versioningSource.getVersionedFeatures().getSchema()); CoordinateReferenceSystem targetCRS = query.getCoordinateSystemReproject(); try { //this is the raw "unprojected" feature collection FeatureCollection fc = versioningSource.getVersionedFeatures(newQuery); return reprojectFeatureCollection(targetCRS, fc); } catch (Exception e) { throw new DataSourceException(e); } }
public FeatureCollection getVersionedFeatures(Query query) throws IOException { final VersioningFeatureSource versioningSource = ((VersioningFeatureSource) source); Query newQuery = adaptQuery(query, versioningSource.getVersionedFeatures().getSchema()); CoordinateReferenceSystem targetCRS = query.getCoordinateSystemReproject(); try { //this is the raw "unprojected" feature collection FeatureCollection fc = versioningSource.getVersionedFeatures(newQuery); return reprojectFeatureCollection(targetCRS, fc); } catch (Exception e) { throw new DataSourceException(e); } }
public FeatureCollection getVersionedFeatures(Query query) throws IOException { final VersioningFeatureSource versioningSource = ((VersioningFeatureSource) source); Query newQuery = adaptQuery(query, versioningSource.getVersionedFeatures().getSchema()); CoordinateReferenceSystem targetCRS = query.getCoordinateSystemReproject(); try { //this is the raw "unprojected" feature collection FeatureCollection fc = versioningSource.getVersionedFeatures(newQuery); return reprojectFeatureCollection(targetCRS, fc); } catch (Exception e) { throw new DataSourceException(e); } }