WKT:如何定义3环(== 2孔)的多边形? [英] WKT: how do you define Polygons with 3 rings (==2 holes)?

查看:444
本文介绍了WKT:如何定义3环(== 2孔)的多边形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此处找到了="http://portal.opengeospatial.org/files/829" rel ="nofollow noreferrer">此文档.我读了它,但我一直想知道如何在 WKT 中定义3个环的多边形?

I found in here this document. I read it but I keep wondering how to define a Polygon with 3 rings in WKT?

推荐答案

您可以使用POLYGON或MULTIPOLYGON类型,但请确保首先列出外部容器环,然后再列出内部孔环.内环的方向并不重要,因为在语法上孔是明确的.

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是空格分隔,坐标是逗号分隔,并且圆环范围受括号限制并由逗号分隔.多边形(外环加上任何内环)也受括号限制.

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.

示例:
多边形((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)))

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)))

这篇关于WKT:如何定义3环(== 2孔)的多边形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆