MySqlConnector


MySqlGeometry.FromWkb method

Constructs a MySqlGeometry from a SRID and Well-known Binary bytes.

public static MySqlGeometry FromWkb(int srid, ReadOnlySpan<byte> wkb)
parameterdescription
sridThe SRID (Spatial Reference System ID).
wkbThe Well-known Binary serialization of the geometry.

Return Value

A new MySqlGeometry containing the specified geometry.

See Also