IGeometry.AsText
Contents
[
Hide
]AsText()
Translates this geometry to its Well-Known Text representation.
public string AsText()
Return Value
Well-Known Text representation of this geometry.
Remarks
Output of this method is in Iso WKT variant.
See Also
- interface IGeometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
AsText(WktVariant)
Translates this geometry to its Well-Known Text representation.
public string AsText(WktVariant variant)
Parameter | Type | Description |
---|---|---|
variant | WktVariant | Well-Known Text variant to use. |
Return Value
Well-Known Text representation of this geometry.
Exceptions
exception | condition |
---|---|
NotSupportedException | The geometry is not supported by requested WKT variant. The following geometries are supported only by Iso WKT variant: CircularString CompoundCurve CurvePolygon MultiCurve MultiSurface All other geometries are supported by any WKT variant. |
ArgumentOutOfRangeException | variant is not a valid WktVariant . |
See Also
- enum WktVariant
- interface IGeometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
AsText(WktVariant, NumericFormat)
Translates this geometry to its Well-Known Text representation.
public string AsText(WktVariant variant, NumericFormat format)
Parameter | Type | Description |
---|---|---|
variant | WktVariant | Well-Known Text variant to use. |
format | NumericFormat | Coordinate format for conversion to string. See the NumericFormat to get it. |
Return Value
Well-Known Text representation of this geometry.
Exceptions
exception | condition |
---|---|
NotSupportedException | Geometry can not be represented in requested WKT variant. Currently this happens when HasCurveGeometry of geometry is true and WKT variant is SimpleFeatureAccessOutdated. |
ArgumentOutOfRangeException | variant is not a valid WktVariant . |
See Also
- enum WktVariant
- class NumericFormat
- interface IGeometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS