| org.geotools.feature.collection.AbstractFeatureCollection org.geotools.data.crs.ReprojectFeatureResults
ReprojectFeatureResults | public class ReprojectFeatureResults extends AbstractFeatureCollection (Code) | | ReprojectFeatureReader provides a reprojection for FeatureTypes.
ReprojectFeatureResults is a wrapper used to reproject GeometryAttributes
to a user supplied CoordinateReferenceSystem from the original
CoordinateReferenceSystem supplied by the original FeatureResults.
Example Use:
ReprojectFeatureResults results =
new ReprojectFeatureResults( originalResults, reprojectCS );
CoordinateReferenceSystem originalCS =
originalResults.getFeatureType().getDefaultGeometry().getCoordinateSystem();
CoordinateReferenceSystem newCS =
results.getFeatureType().getDefaultGeometry().getCoordinateSystem();
assertEquals( reprojectCS, newCS );
author: aaime author: $Author: jive $ (last modification) version: $Id: ReprojectFeatureResults.java 28366 2007-12-14 11:46:16Z aaime $ TODO: handle the case where there is more than one geometry and the other geometries have a different CS than the default geometry |
transform | MathTransform transform(Code) | | |
getBounds | public ReferencedEnvelope getBounds()(Code) | | This method computes reprojected bounds the hard way, but computing them
feature by feature. This method could be faster if computed the
reprojected bounds by reprojecting the original feature bounds a Shape
object, thus getting the true shape of the reprojected envelope, and
then computing the minumum and maximum coordinates of that new shape.
The result would not a true representation of the new bounds, but it
would be guaranteed to be larger that the true representation.
See Also: org.geotools.data.FeatureResults.getBounds |
getOrigin | public FeatureCollection getOrigin()(Code) | | Returns the feature results wrapped by this reprojecting feature results
|
size | public int size()(Code) | | See Also: org.geotools.data.FeatureResults.getCount |
|
|