Well-known text

Well-known text

Well-known text (WKT) is a text markup language for representing vector geometry objects on a map, spatial reference systems of spatial objects and transformations between spatial reference systems. A binary equivalent, known as well-known binary (WKB) is used to transfer and store the same information on databases, such as PostGIS. The formats are regulated by the Open Geospatial Consortium (OGC) and described in their Simple Feature Access and Coordinate Transformation Service specifications.

Geometric Objects

Geometric objects that can be represented with WKT are: points, lines, polygons, TINs and Polyhedrons. Multi geometries are available to represent more than one geometry of the same dimension in a single object, and geometries of different dimensions can be stored in a geometry collection.

Coordinates for geometries may be 2D (x, y), 3D (x, y, z), 4D (x, y, z, m) with a m value that is part of a linear reference system or 2D with a m value (x, y, m). Three dimensional geometries are designated by a Z after the geometry type and geometries with a linear reference system have a M after the geometry type. Empty geometries which contain no coordinates can be specified by using the symbol EMPTY after the type name.

WKT geometries are used throughout OGC specifications and are present in applications that implement these specifications. For example, PostGIS contains functions that can convert geometries to and from a WKT representation, making them human readable.

The following are some example geometric WKT strings.

POINT(6 10) LINESTRING(3 4,10 50,20 25) POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2)) MULTIPOINT(3.5 5.6,4.8 10.5) MULTILINESTRING((3 4,10 50,20 25),(-5 -8,-10 -8,-15 -4)) MULTIPOLYGON(((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2)),((3 3,6 2,6 4,3 3))) GEOMETRYCOLLECTION(POINT(4 6),LINESTRING(4 6,7 10)) POINT ZM (1 1 5 60) POINT M (1 1 80) POINT EMPTY MULTIPOLYGON EMPTY

patial Reference Systems

A WKT string for a spatial reference system describes the geodetic datum, geoid, coordinate system, and map projection of the spatial objects.

Well-known text is used extensively throughout many GIS programs. ESRI uses WKT in the shapefile *.prj file.

The following is an example of a spatial reference system WKT string.

COMPD_CS ["OSGB36 / British National Grid + ODN", PROJCS ["OSGB 1936 / British National Grid", GEOGCS ["OSGB 1936", DATUM ["OSGB_1936", SPHEROID ["Airy 1830",6377563.396,299.3249646,AUTHORITY ["EPSG","7001"] , TOWGS84 [375,-111,431,0,0,0,0] , AUTHORITY"EPSG","6277", PRIMEM ["Greenwich",0,AUTHORITY ["EPSG","8901"] , UNIT ["DMSH",0.0174532925199433,AUTHORITY ["EPSG","9108"] , AXIS ["Lat",NORTH] , AXIS ["Long",EAST] , AUTHORITY"EPSG","4277", PROJECTION ["Transverse_Mercator"] , PARAMETER ["latitude_of_origin",49] , PARAMETER ["central_meridian",-2] , PARAMETER ["scale_factor",0.999601272] , PARAMETER ["false_easting",400000] , PARAMETER ["false_northing",-100000] , UNIT ["metre",1,AUTHORITY ["EPSG","9001"] , AXIS ["E",EAST] , AXIS ["N",NORTH] , AUTHORITY"EPSG","27700", VERT_CS ["Newlyn", VERT_DATUM ["Ordnance Datum Newlyn",2005,AUTHORITY ["EPSG","5101"] , UNIT ["metre",1,AUTHORITY ["EPSG","9001"] , AXIS ["Up",UP] , AUTHORITY"EPSG","5701", AUTHORITY"EPSG","7405"

Transformations

A WKT format is defined to describe the transformation methods and parameters used to convert coordinates between two different spatial reference systems.

Below are two examples of WKT transformation descriptions.

PARAM_MT ["Mercator_2SP", PARAMETER ["semi_major",6370997.0] , PARAMETER ["semi_minor",6370997.0] , PARAMETER ["central_meridian",180.0] , PARAMETER ["false_easting",-500000.0] , PARAMETER ["false_northing",-1000000.0] , PARAMETER"standard parallel 1",60.0

PARAM_MT ["Affine", PARAMETER ["num_row",3] , PARAMETER ["num_col",3] , PARAMETER ["elt_0_1",1] , PARAMETER ["elt_0_2",2] , PARAMETER"elt 1 2",3

ee also

*Geography Markup Language

External links

* [http://www.opengeospatial.org/standards/ct Coordinate Transformation Service] Specification
* [http://www.opengeospatial.org/standards/sfa Simple Feature Access] Specification
* [http://www.gdal.org/ogr/osr_tutorial.html OGR projection tutorial]
* [http://geoapi.sourceforge.net/2.0/javadoc/org/opengis/referencing/doc-files/WKT.html Spatial reference system well-known text format]
* [http://dev.mysql.com/doc/refman/5.0/en/gis-wkb-format.html WKB format]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Well Known Text — Simple Feature Access ist eine Spezifikation des Open Geospatial Consortium, welche eine allgemein gültige Architektur für geografische Daten und deren Geometrien definiert. Die Spezifikation beschreibt einerseits die Speicherung und den Zugriff… …   Deutsch Wikipedia

  • Well Known Text — Este artículo o sección sobre geografía necesita ser wikificado con un formato acorde a las convenciones de estilo. Por favor, edítalo para que las cumpla. Mientras tanto, no elimines este aviso puesto el 23 de julio de 2008. También puedes… …   Wikipedia Español

  • Well Known Binary — Simple Feature Access ist eine Spezifikation des Open Geospatial Consortium, welche eine allgemein gültige Architektur für geografische Daten und deren Geometrien definiert. Die Spezifikation beschreibt einerseits die Speicherung und den Zugriff… …   Deutsch Wikipedia

  • List of well-known fatwas — A fatwa ( ar. فتوى), is a legal pronouncement in Islam, issued by a religious law specialist on a specific issue. See the article fatwa for more information on what a fatwa is.Fatwa regarding theology* al Azhar Shia Fatwa on July 6, 1959:: The… …   Wikipedia

  • Text Editor and Corrector — TECO (pronounced /tee koh/; originally an acronym for [paper] Tape Editor and COrrector , but later Text Editor and COrrector ) is a text editor originally developed at the Massachusetts Institute of Technology (MIT) in the 1960s, after which it… …   Wikipedia

  • Text Encoding Initiative — The Text Encoding Initiative (TEI) is a consortium of institutions and research projects which collectively maintains and develops a standard for the representation of texts in digital form. Originally sponsored by three scholarly societies, the… …   Wikipedia

  • Text messaging — Texter redirects here. For the American surname, see Texter (surname). Txt msg redirects here. For the TV series, see Pop Up Video. A user typing a text message on an LG enV (VX9900) Text messaging, or texting, refers to the exchange of brief… …   Wikipedia

  • Well-Tempered Clavier — The Well Tempered Clavier ( Das Wohltemperirte Clavier in the original old German spelling) [In the German of Bach s time the Clavier was a generic name meaning keyboard instrument, most typically the harpsichord or clavichord mdash; but not… …   Wikipedia

  • Text box — A text box, text field or text entry box is a common element of graphical user interface of computer programs, as well as the corresponding type of widget used when programming GUIs. A text box s purpose is to allow the user to input text… …   Wikipedia

  • Known-plaintext attack — The known plaintext attack (KPA) is an attack model for cryptanalysis where the attacker has samples of both the plaintext (called a crib), and its encrypted version (ciphertext). These can be used to reveal further secret information such as… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”