IGeometry.AsBinary

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


AsBinary(WkbVariant)

Translates this geometry to its Well-Known Binary representation.

public byte[] AsBinary(WkbVariant variant)
ParameterTypeDescription
variantWkbVariantWell-Known Binary variant to use.

Return Value

Well-Known Binary representation of this geometry.

Exceptions

exceptioncondition
NotSupportedExceptionGeometry can not be represented in requested WKB variant. Currently this happens when HasCurveGeometry of geometry is true and WKB variant is SimpleFeatureAccessOutdated.
ArgumentOutOfRangeExceptionvariant is not a valid WkbVariant.

See Also