Geometry.FromBinary
Contents
[
Hide
]FromBinary(byte[])
Creates a geometry from its Well-Known Binary representation.
public static IGeometry FromBinary(byte[] wkb)
Parameter | Type | Description |
---|---|---|
wkb | Byte[] | Well-Known Binary 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 Binary. |
See Also
- interface IGeometry
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
FromBinary(byte[], SpatialReferenceSystem)
Creates a geometry from its Well-Known Binary representation.
public static IGeometry FromBinary(byte[] wkb, SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
wkb | Byte[] | Well-Known Binary 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 Binary. |
Remarks
If there are extra bytes after the geometry a FormatException exception is thrown.
See Also
- interface IGeometry
- class SpatialReferenceSystem
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS