Mysql uses the WKB function to create Geometry (ry) Values

Source: Internet
Author: User

Mysql uses the WKB function to create Geometry (ry) Values

MySQL provides many functions that use BLOB containing WKT expressions or optional Spatial Reference System ID (SRID) as input parameters. They return corresponding geometric objects.

GeomFromWKB () accepts WKB of any geometric type as its 1st parameter. Type-related constructors are also provided in the implementation scheme to construct the geometric values of each geometric type.

GeomCollFromWKB (wkb [, srid]), GeometryCollectionFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the GEOMETRYCOLLECTION value.

GeomFromWKB (wkb [, srid]), GeometryFromWKB (wkb [, srid])

WKB and SRID are used to construct geometric values of any type.

LineFromWKB (wkb [, srid]), LineStringFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the LINESTRING value.

MLineFromWKB (wkb [, srid]), MultiLineStringFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the MULTILINESTRING value.

MPointFromWKB (wkb [, srid]), MultiPointFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the MULTIPOINT value.

MPolyFromWKB (wkb [, srid]), MultiPolygonFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the MULTIPOLYGON value.

PointFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the POINT value.

PolyFromWKB (wkb [, srid]), PolygonFromWKB (wkb [, srid])

Use its WKB representation and SRID to construct the POLYGON value.

OpenGIS specifications also introduce the optional functions used to construct Polygon or MultiPolygon values. These values are based on the WKB expressions of the ring and closed LineString value sets. These values can be intersection. MySQL has not implemented the following functions:

BdMPolyFromWKB (wkb, srid)

Construct the MultiPolygon value from the MultiLineString value in the WKB format that contains any set of closed LineString values.

BdPolyFromWKB (wkb, srid)

The Polygon value is constructed from the MultiLineString value in the WKB format that contains any set of closed LineString values.

Note: For more exciting articles, please follow the help houseProgramming TutorialTopic.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.