You can use either the POLYGON or the MULTIPOLYGON type, but make sure the outer container ring is listed first followed by the inner hole rings. The orientations of the inner rings are not important since holes are explicit in the syntax.
X & Y are space separated, coordinates are comma separated, and ring extents are limited by parentheses and separated by commas. Polygons (outer ring plus any inner rings) are also limited by parentheses.
Finally, inner rings cannot cross each other, nor can they cross the outer ring.
发布评论
评论(1)
您可以使用 POLYGON 或 MULTIPOLYGON 类型,但请确保首先列出外容器环,然后列出内孔环。内环的方向并不重要,因为孔在语法中是明确的。
X& Y 以空格分隔,坐标以逗号分隔,环范围以括号限制并以逗号分隔。多边形(外环加上任何内环)也由括号限制。
最后,内环不能相互交叉,也不能与外环交叉。
示例:
多边形 ((10 10, 110 10, 110 110, 10 110), (20 20, 20 30, 30 30, 30 20), (40 20, 40 30, 50 30, 50 20))
多多边形 (((10 10, 110 10, 110 110, 10 110), (20 20, 20 30, 30 30, 30 20), (40 20, 40 30, 50 30, 50 20)))
You can use either the POLYGON or the MULTIPOLYGON type, but make sure the outer container ring is listed first followed by the inner hole rings. The orientations of the inner rings are not important since holes are explicit in the syntax.
X & Y are space separated, coordinates are comma separated, and ring extents are limited by parentheses and separated by commas. Polygons (outer ring plus any inner rings) are also limited by parentheses.
Finally, inner rings cannot cross each other, nor can they cross the outer ring.
Examples:
POLYGON ((10 10, 110 10, 110 110, 10 110), (20 20, 20 30, 30 30, 30 20), (40 20, 40 30, 50 30, 50 20))
MULTIPOLYGON (((10 10, 110 10, 110 110, 10 110), (20 20, 20 30, 30 30, 30 20), (40 20, 40 30, 50 30, 50 20)))