Skip to content

Instantly share code, notes, and snippets.

@spara
Created November 11, 2011 15:45
Show Gist options
  • Save spara/1358317 to your computer and use it in GitHub Desktop.
Save spara/1358317 to your computer and use it in GitHub Desktop.
Examples of Well Known Text for simple feature types
Point: Point (10 10)
LineString: LineString ( 10 10, 20 20, 30 40)
Polygon: Polygon ((10 10, 10 20, 20 20, 20 15, 10 10))
Multipoint: MultiPoint ((10 10), (20 20))
MultiLineString: MultiLineString ((10 10, 20 20), (15 15, 30 15))
MultiPolygon: MultiPolygon (((10 10, 10 20, 20 20, 20 15, 10 10)),((60 60, 70 70, 80 60, 60 60 )))
GeomCollection: GeometryCollection(POINT (10 10),POINT (30 30),LINESTRING (15 15, 20 20))
Polyhedron: Polyhedron Z(((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)),((0 0 1, 1 0 1, 1 1 1, 0 1 1. 0 0 1)))

Tin: Tin Z (((0 0 0, 0 0 1, 0 1 0, 0 0 0)),((0 0 0, 0 1 0, 1 0 0, 0 0 0)),((0 0 0, 1 0 0, 0 0 1, 0 0 0)),((1 0 0, 0 1 0, 0 0 1, 1 0 0)),)
Point: Point Z (10 10 5)
Point: Point ZM (10 10 5 40)
Point: Point M (10 10 40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment