Geometry.AsBinary
Contents
[
Hide
]AsBinary()
Translates this geometry to its Well-Known Binary representation.
public byte[] AsBinary()
Return Value
Well-Known Binary representation of this geometry.
Remarks
Output of this method is in Iso WKB variant.
See Also
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
AsBinary(WkbVariant)
Translates this geometry to its Well-Known Binary representation.
public byte[] AsBinary(WkbVariant variant)
Parameter | Type | Description |
---|---|---|
variant | WkbVariant | Well-Known Binary variant to use. |
Return Value
Well-Known Binary representation of this geometry.
Exceptions
exception | condition |
---|---|
NotSupportedException | Geometry can not be represented in requested WKB variant. Currently this happens when HasCurveGeometry of geometry is true and WKB variant is SimpleFeatureAccessOutdated. |
ArgumentOutOfRangeException | variant is not a valid WkbVariant . |
See Also
- enum WkbVariant
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS