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