{"id":994,"date":"2009-10-17T14:42:56","date_gmt":"2009-10-17T14:42:56","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=994"},"modified":"2024-01-24T14:54:23","modified_gmt":"2024-01-24T05:54:23","slug":"wktwell-known-text-geometry","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=994","title":{"rendered":"[GIS] WKT(Well-Known Text) Geometry"},"content":{"rendered":"<p>WKT\ub294 \uc9c0\ub3c4, \uacf5\uac04 \uac1d\uccb4\uc758 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c(Spatial Reference System) \uadf8\ub9ac\uace0 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c \uac04\uc758 \ubcc0\ud658\uc744 \ud45c\ud604\ud558\uae30 \uc704\ud55c \ud14d\uc2a4\ud2b8 \ub9c8\ud06c\uc5c5 \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \uc27d\uac8c \ub9d0\ud574 \uc9c0\ub3c4 \uc0c1\uc758 \ud615\uc0c1\uc744 \uad6c\uc131\ud558\ub294 \uc88c\ud45c\ub4e4\uc5d0 \ub300\ud55c \ud14d\uc2a4\ud2b8\uc785\ub2c8\ub2e4. \uc774\uc640 \uc720\uc0ac\ud55c WKB(Well-Known Binary)\ub77c\uace0 \uc54c\ub824\uc9c4 \ubc14\uc774\ub108\ub9ac \ud615\uc2dd\uc774 PostGIS \ub4f1\uacfc \uac19\uc740 \ub370\uc774\ud130 \ubca0\uc774\uc2a4\uc5d0 \ub3d9\uc77c\ud55c \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\uace0 \ubcc0\ud658\ub418\ub294\ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud3ec\ub9f7\uc740 OGC(Open Geospatial Consortium)\uc5d0 \uc758\ud574 \uc81c\uc815\ub429\ub2c8\ub2e4.<\/p>\n<p><strong><span style=\"font-size: medium;\">\uae30\ud558\ud559\uc801 \uc624\ube0c\uc81d\ud2b8(geometric objects)<br \/>\n<\/span><\/strong><br \/>\nWKT\ub85c \ud45c\ud604\ud560 \uc218 \uc788\ub294 \uae30\ud558\ud559\uc801 \uc624\ube0c\uc81d\ud2b8\ub294 \ud3ec\uc778\ud2b8(Point), \uc120(Line), \ud3f4\ub9ac\uace4(Polygon), TIN \uadf8\ub9ac\uace0 \ub2e4\uac01\ud615(Polyhedrons)\uc785\ub2c8\ub2e4. \uba40\ud2f0 \uc9c0\uc624\uba54\ud2b8\ub9ac\ub294 \ud558\ub098\uc758 \uc624\ube0c\uc81d\ud2b8\uc5d0\uc11c \ub3d9\uc77c\ud55c \ucc28\uc6d0\uc758 \ud55c\uac1c \uc774\uc0c1\uc758 \uc9c0\uc624\uba54\ud2b8\ub9ac\ub97c \ud45c\ud604\ud558\ub294\ub370 \uc774\uc6a9\ub418\uba70 \ub2e4\ub978 \ucc28\uc6d0\uc758 \uc9c0\uc624\uba54\ud2b8\ub9ac\ub4e4\uc740 \uc9c0\uc624\uba54\ud2b8\ub9ac \uceec\ub809\uc158(geometry collection)\uc5d0 \uc800\uc7a5\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc9c0\uc624\uba54\ud2b8\ub9ac\uc758 \uc88c\ud45c\ub294 2D(x, y) \uadf8\ub9ac\uace0 3D(x, y, z) \uadf8\ub9ac\uace0 4D(x, y, z, m)\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5b4\ub5a0\ud55c \uc88c\ud45c\ub3c4 \uac00\uc9c0\uace0 \uc788\uc9c0 \uc54a\uc740 \ube48 \uc9c0\uc624\uba54\ud2b8\ub9ac\ub294 \ud0c0\uc785 \uc774\ub984\uacfc \ud568\uaed8 EMPTY \uc2ec\ubc8c\uc744 \uc0ac\uc6a9\ud574 \uba85\uc2dc\ub429\ub2c8\ub2e4. \ub2e4\uc74c\uc740 WKT\uc5d0 \ub300\ud55c \uba87\uac00\uc9c0 \uc9c0\uc624\uba54\ud2b8\ub9ac \uc608\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\n1) POINT(6 10)\r\n2) LINESTRING(3 4,10 50,20 25)\r\n3) POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2))\r\n4) MULTIPOINT((3.5 5.6),(4.8 10.5))\r\n5) MULTILINESTRING((3 4,10 50,20 25),(-5 -8,-10 -8,-15 -4))\r\n6) 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,3 3)))\r\n7) GEOMETRYCOLLECTION(POINT(4 6),LINESTRING(4 6,7 10))\r\n8) POINT ZM (1 1 5 60)\r\n9) POINT M (1 1 80)\r\n10) POINT EMPTY\r\n11) MULTIPOLYGON EMPTY<\/pre>\n<p>1\ubc88\uc740 \ud3ec\uc778\ud2b8 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc774\uba70, 2\ubc88\uc740 \ud3f4\ub9ac\ub77c\uc778 \uc9c0\uc624\uba54\ud2b8\ub9ac, 3\ubc88\uc740 \ud3f4\ub9ac\uace4 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc785\ub2c8\ub2e4. \uadf8\ub9ac\uace0 4\ubc88, 5\ubc88, 6\ubc88\uc740 \uba40\ud2f0 \ud3ec\uc778\ud2b8, \uba40\ud2f0 \ud3f4\ub9ac\ub77c\uc778, \uba40\ud2f0 \ud3f4\ub9ac\uace4 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc785\ub2c8\ub2e4. 7\ubc88\uc740 \ub2e4\uc591\ud55c \ud615\ud0dc\uc758 \uc9c0\uc624\uba54\ud2b8\ub9ac \ud0c0\uc785\uc758 \ubcf5\ud569 \ud0c0\uc785\uc785\ub2c8\ub2e4. 8\ubc88\uc740 Z\uac12\uacfc M\uac12\uc744 \uac00\uc9c4 \ud3ec\uc774\ud2b8 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc774\uba70 9\ubc88\uc740 M \uac12\uc744 \uac00\uc9c0\ub294 \ud3ec\uc778\ud2b8 \uc9c0\uc624\uba54\ud2b8\uc785\ub2c8\ub2e4. \ub9c8\uc9c0\ub9c9 10\ubc88\uacfc 12\ubc88\uc740 \uc88c\ud45c\uac00 \uc5c6\ub294 \ube48(Empty) \uc9c0\uc624\uba54\ud2b8\ub9ac\uc785\ub2c8\ub2e4.<\/p>\n<p>\ucd94\uac00\uc801\uc73c\ub85c \ub2e4\ub978 \uc608\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nPOINT (0 0)\r\nPOINT EMPTY\r\nLINESTRING (0 0, 0 1, 1 2)\r\nLINESTRING EMPTY\r\nPOLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))\r\nPOLYGON ((0 0, 4 0, 4 4, 0 4, 0 0), (1 1, 1 2, 2 2, 2 1, 1 1))\r\nPOLYGON EMPTY\r\nMULTIPOINT ((0 0), (1 1))\r\nMULTILINESTRING ((0 0, 1 1), (2 2, 3 3))\r\nMULTIPOLYGON (((1 1, 1 3, 3 3, 3 1, 1 1)), ((4 3, 6 3, 6 1, 4 1, 4 3)))\r\nGEOMETRYCOLLECTION (MULTIPOINT((0 0), (1 1)), POINT(3 4), LINESTRING(2 3, 3 4))\r\n<\/pre>\n<p><strong><span style=\"font-size: medium;\">\uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c(spatial reference systems)<\/span><\/strong><\/p>\n<p>\n\uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud55c WKT \ubb38\uc790\uc5f4\uc740 \uce21\uc9c0\ud559 \ub370\uc774\ud140(geodetic datum), \uc88c\ud45c \uccb4\uacc4 \uadf8\ub9ac\uace0 \uacf5\uac04 \uc624\ube0c\uc81d\ud2b8\uc5d0 \ub300\ud55c \uc9c0\ub3c4 \ud22c\uc601 \uc815\ubcf4\ub97c \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud55c WKT\ub294 \ub9ce\uc740 GIS \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 ESRI\ub294 shapefile\uc758 *.prj \ud30c\uc77c\uc5d0\uc11c WKT\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud55c WKT\uc758 \ud55c\uac00\uc9c0 \uc608\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\nCOMPD_CS[\"OSGB36 \/ British National Grid + ODN\",\r\n\u00a0 \u00a0 PROJCS[\"OSGB 1936 \/ British National Grid\",\r\n\u00a0 \u00a0 \u00a0 \u00a0 GEOGCS[\"OSGB 1936\",\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 DATUM[\"OSGB_1936\",\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 SPHEROID[\"Airy 1830\",6377563.396,299.3249646,\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0AUTHORITY[\"EPSG\",\"7001\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 TOWGS84[375,-111,431,0,0,0,0],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 AUTHORITY<code>[[\"EPSG\",\"6277\"]]<\/code>,\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 UNIT[\"DMSH\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9108\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 AXIS[\"Lat\",NORTH],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 AXIS[\"Long\",EAST],\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 AUTHORITY<code>[[\"EPSG\",\"4277\"]]<\/code>,\r\n\u00a0 \u00a0 \u00a0 \u00a0 PROJECTION[\"Transverse_Mercator\"],\r\n\u00a0 \u00a0 \u00a0 \u00a0 PARAMETER[\"latitude_of_origin\",49],\r\n\u00a0 \u00a0 \u00a0 \u00a0 PARAMETER[\"central_meridian\",-2],\r\n\u00a0 \u00a0 \u00a0 \u00a0 PARAMETER[\"scale_factor\",0.999601272],\r\n\u00a0 \u00a0 \u00a0 \u00a0 PARAMETER[\"false_easting\",400000],\r\n\u00a0 \u00a0 \u00a0 \u00a0 PARAMETER[\"false_northing\",-100000],\r\n\u00a0 \u00a0 \u00a0 \u00a0 UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 AXIS[\"E\",EAST],\r\n\u00a0 \u00a0 \u00a0 \u00a0 AXIS[\"N\",NORTH],\r\n\u00a0 \u00a0 \u00a0 \u00a0 AUTHORITY<code>[[\"EPSG\",\"27700\"]]<\/code>,\r\n\u00a0 \u00a0 VERT_CS[\"Newlyn\",\r\n\u00a0 \u00a0 \u00a0 \u00a0 VERT_DATUM[\"Ordnance Datum Newlyn\",2005,AUTHORITY[\"EPSG\",\"5101\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],\r\n\u00a0 \u00a0 \u00a0 \u00a0 AXIS[\"Up\",UP],\r\n\u00a0 \u00a0 \u00a0 \u00a0 AUTHORITY<code>[[\"EPSG\",\"5701\"]]<\/code>,\r\n\u00a0 \u00a0 AUTHORITY<code>[[\"EPSG\",\"7405\"]]<\/code><\/pre>\n<p><strong><span style=\"font-size: medium;\">\ubcc0\ud658(transformations)<\/span><\/strong><\/p>\n<p>WKT \ud3ec\ub9f7\uc740 \ubcc0\ud658 \ubc29\ubc95\uacfc \ub450\uac1c\uc758 \uc11c\ub85c \ub2e4\ub978 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c \uac04\uc758 \uc88c\ud45c \ubcc0\ud658\uc5d0 \uc0ac\uc6a9\ub418\ub294 \ud30c\ub77c\uba54\ud130\ub97c \uae30\uc220\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc544\ub798\ub294 \uc774\ub7ec\ud55c \ubcc0\ud658\uc5d0 \ub300\ud55c WKT\uc758 \ud55c\uac00\uc9c0 \uc608\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\nPARAM_MT[\"Mercator_2SP\", \r\n\u00a0 \u00a0 PARAMETER[\"semi_major\",6370997.0], \r\n\u00a0 \u00a0 PARAMETER[\"semi_minor\",6370997.0], \r\n\u00a0 \u00a0 PARAMETER[\"central_meridian\",180.0], \r\n\u00a0 \u00a0 PARAMETER[\"false_easting\",-500000.0], \r\n\u00a0 \u00a0 PARAMETER[\"false_northing\",-1000000.0], \r\n\u00a0 \u00a0 PARAMETER[[\"standard parallel 1\",60.0]]\r\nPARAM_MT[\"Affine\",\r\n\u00a0 \u00a0 PARAMETER[\"num_row\",3],\r\n\u00a0 \u00a0 PARAMETER[\"num_col\",3],\r\n\u00a0 \u00a0 PARAMETER[\"elt_0_1\",1],\r\n\u00a0 \u00a0 PARAMETER[\"elt_0_2\",2],\r\n\u00a0 \u00a0 PARAMETER[[\"elt 1 2\",3]]<\/pre>\n<p>WKT\ub97c \uc9c0\uc6d0\ud558\ub294 RDBMS\ub85c\ub294 PostGIS \ubaa8\ub4c8 1.3\uc744 \uac00\uc9c4 Postgresql, Oracle 9i, 10g, 11g \uadf8\ub9ac\uace0 mySQL 4.1,\uacf5\uac04 \ub370\uc774\ud130\ube14\ub808\uc774\ub4dc \ubaa8\ub4c8\uc744 \uac00\uc9c4 Informix 9, 10, 11 \uadf8\ub9ac\uace0 MS SQL Server 2008\uacfc SpatialLite \ub4f1\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc740 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Well-known_text\">http:\/\/en.wikipedia.org\/wiki\/Well-known_text<\/a>\uc758 \ub0b4\uc6a9\uc744 \ub3c5\uc790\uac00 \uc880 \ub354 \uc77d\uae30 \uc27d\ub3c4\ub85d \ub0b4\uc6a9\uc744 \ubcf4\uc644\ud55c \uae00\uc784\uc744 \ubc1d\ud799\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WKT\ub294 \uc9c0\ub3c4, \uacf5\uac04 \uac1d\uccb4\uc758 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c(Spatial Reference System) \uadf8\ub9ac\uace0 \uacf5\uac04 \ucc38\uc870 \uc2dc\uc2a4\ud15c \uac04\uc758 \ubcc0\ud658\uc744 \ud45c\ud604\ud558\uae30 \uc704\ud55c \ud14d\uc2a4\ud2b8 \ub9c8\ud06c\uc5c5 \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \uc27d\uac8c \ub9d0\ud574 \uc9c0\ub3c4 \uc0c1\uc758 \ud615\uc0c1\uc744 \uad6c\uc131\ud558\ub294 \uc88c\ud45c\ub4e4\uc5d0 \ub300\ud55c \ud14d\uc2a4\ud2b8\uc785\ub2c8\ub2e4. \uc774\uc640 \uc720\uc0ac\ud55c WKB(Well-Known Binary)\ub77c\uace0 \uc54c\ub824\uc9c4 \ubc14\uc774\ub108\ub9ac \ud615\uc2dd\uc774 PostGIS \ub4f1\uacfc \uac19\uc740 \ub370\uc774\ud130 \ubca0\uc774\uc2a4\uc5d0 \ub3d9\uc77c\ud55c \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\uace0 \ubcc0\ud658\ub418\ub294\ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud3ec\ub9f7\uc740 OGC(Open Geospatial Consortium)\uc5d0 \uc758\ud574 \uc81c\uc815\ub429\ub2c8\ub2e4. \uae30\ud558\ud559\uc801 \uc624\ube0c\uc81d\ud2b8(geometric objects) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=994\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[GIS] WKT(Well-Known Text) Geometry&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[5],"class_list":["post-994","post","type-post","status-publish","format-standard","hentry","category-gisdev","tag-gis"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=994"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":14490,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions\/14490"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}