< docs

WKT parse & stringify

This example uses $.geo.WKT.stringify to turn your drawn GeoJSON objects into WKT. The Parse button uses $.geo.WKT.parse to read valid WKT from the text box and add shapes to the map.

POINT (-71.070554128125 42.36859979580157)
LINESTRING (-71.570554128125 42.36859979580157, -71.63097893281248 42.47605758571917, -71.3645604757813 42.50036207893463)
POLYGON ((-71.070554128125 42.36859979580157, -71.13097893281248 42.47605758571917, -70.8645604757813 42.50036207893463))
MULTIPOINT (-71.070554128125 42.36859979580157, -71.13097893281248 42.47605758571917, -70.8645604757813 42.50036207893463)
MULTIPOINT ((-71.070554128125 42.36859979580157),(-71.13097893281248 42.47605758571917),(-70.8645604757813 42.50036207893463))
MULTILINESTRING ((-71.070554128125 42.36859979580157, -71.13097893281248 42.47605758571917, -70.8645604757813 42.50036207893463))
MULTILINESTRING ((-71.070554128125 42.36859979580157, -71.13097893281248 42.47605758571917), (-70.13097893281248 42.47605758571917, -70.8645604757813 42.50036207893463))
MULTIPOLYGON (((-71.070554128125 42.36859979580157, -71.13097893281248 42.47605758571917, -70.8645604757813 42.50036207893463)))
GEOMETRYCOLLECTION (POINT (-71.070554128125 42.36859979580157),LINESTRING (-71.570554128125 42.36859979580157, -71.63097893281248 42.47605758571917, -71.3645604757813 42.50036207893463),POLYGON ((-71.070554128125 42.86859979580157, -71.13097893281248 42.97605758571917, -70.8645604757813 43.00036207893463)))