WKT Geometry Types
All seven geometry types
A WKT POLYGON represents a planar surface defined by 1 exterior linear boundary ring and 0 or more interior boundary rings (islands or holes). The first and last coordinate of every ring must match identically to close the polygon.
POLYGON ((x1 y1, x2 y2, x3 y3, ..., x1 y1), (hole_x1 hole_y1, ...))A WKT MULTIPOLYGON represents a collection of independent polygon surfaces (such as islands in an archipelago or disconnected cadastral parcels) grouped as a single spatial feature.
MULTIPOLYGON (((poly1_ext), (poly1_hole)), ((poly2_ext)))A WKT LINESTRING represents a continuous path composed of 1 or more connected linear segments defined by at least 2 coordinate points (e.g. roads, flight paths, pipeline routes, or GPS traces).
LINESTRING (x1 y1, x2 y2, x3 y3, ...)A WKT MULTILINESTRING represents a collection of linear paths grouped as one feature, commonly used for river networks with tributaries or disconnected road segments.
MULTILINESTRING ((line1_p1, line1_p2), (line2_p1, line2_p2))A WKT POINT represents a single 2D or 3D location in space. In standard GIS and PostGIS conventions (EPSG:4326), it is written with longitude (X) first and latitude (Y) second.
POINT (longitude latitude)A WKT MULTIPOINT represents a collection of individual points treated as a single feature (e.g. sensor clusters, address nodes, or scatter points).
MULTIPOINT ((x1 y1), (x2 y2), (x3 y3)) or MULTIPOINT (x1 y1, x2 y2)A WKT GEOMETRYCOLLECTION contains any arbitrary combination of 0 or more valid geometries (such as combining a POINT and a POLYGON into a single spatial entity).
GEOMETRYCOLLECTION (POINT(x y), LINESTRING(x1 y1, x2 y2), POLYGON((...)))