Monday, November 28, 2005

wkt syntax (howto)

Geometry types and their text representations


Geometry typeWKT representationComment
pointPOINT EMPTYempty point
pointPOINT ( 10.05 10.28 )point
pointPOINT Z( 10.05 10.28 2.51 )point with Z coordinate
pointPOINT M( 10.05 10.28 4.72 )point with M coordinate
pointPOINT ZM( 10.05 10.28 2.51 4.72 )point with Z coordinate and M coordinate
linestringLINESTRING EMPTYempty linestring
polygonPOLYGON (( 10 10, 10 20,20 20, 20 15, 10 10))polygon
multipointMULTIPOINT Z(10 10 2, 20 20 3)multipoint with Z coordinates
multilinestringMULTILINESTRING M(( 310 30 1, 40 30 20, 50 20 10 )( 10 10 0, 20 20 1))multilinestring with M coordinates
multipolygonMULTIPOLYGON ZM((( 1 1 1 1, 1 2 3 4, 2 2 5 6, 2 1 7 8, 1 1 1 1 )))multipolygon with Z coordinates and M coordinates

No comments: