Geometry.FromText
Contents
[
Hide
]FromText(string)
Creates a geometry from its Well-Known Text representation.
public static IGeometry FromText(string wkt)
Parameter | Type | Description |
---|---|---|
wkt | String | Well-Known Text representation of a geometry. |
Return Value
A geometry represented by the argument.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Argument is null. |
NotSupportedException | Argument represents a geometry of not supported type. |
FormatException | Argument is not a valid Well-Known Text. |
See Also
- interface IGeometry
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
FromText(string, SpatialReferenceSystem)
Creates a geometry from its Well-Known Text representation.
public static IGeometry FromText(string wkt, SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
wkt | String | Well-Known Text representation of a geometry. |
spatialReferenceSystem | SpatialReferenceSystem | Spatial Reference System to be assigned to the geometry. |
Return Value
A geometry represented by the argument.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Argument is null. |
NotSupportedException | Argument represents a geometry of not supported type. |
FormatException | Argument is not a valid Well-Known Text. |
See Also
- interface IGeometry
- class SpatialReferenceSystem
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS