is there a way to reproject a feature collection into a new one with another coordinate reference system? I am trying to achieve this by using geotools's reprojector:
SimpleFeatureSource featureSource = ...
SimpleFeatureCollection sfc = new ReprojectingFeatureCollection(featureSource.getFeatures(),
org.geotools.referencing.CRS.decode("EPSG:4326"));
sfc
presents another schema's CRS
but its geometries looks the same before reprojecting. What am I missing? Do I have to manually create a new geometry with desired CRS
and coordinates for each geometry in featureSource or geotools offer a more elegant and efficient way to do this? I am using geotools version 17.2.