Crs.FromFeature Method
FromFeature(Feature feature, ProjectionType projectionType)
Returns a new Coordinate Reference System, suitable for the bounding area of the given feature.Syntax
public static Crs FromFeature (
Feature feature,
ProjectionType projectionType
)
Parameters
The feature.
The desired type of projection used by the returned Coordinate Reference System.
Return Value
A Crs suitable for the bounding area of the given feature.
Remarks
This method is similar to FromArea, except that it uses the bounding area and Coordinate Reference System of the given feature instead of an explicit rectangle. See FromArea for more details.
The returned Coordinate Reference System will use the same geodetic datum as the given feature.
If the feature bounds can't be unprojected to one ore more longitude/latitude areas, an exception will be thrown.
Platforms
Windows, Linux, Android