使用多边形形状文件从大陆海岸线上删除岛屿 - GeoPandas
我想从澳大利亚海岸线上删除所有断开的岛屿。我已经将该国作为一个Shapefile导入,可以使用硬编码边界删除区域。但是,在整个海岸线上追踪以去除所有断开的岛屿的效率是低效的。使用地理杂志有更快的方法吗?
import geoplot as gplt
import geopandas as gpd
Oz = gpd.read_file('OZ.shp')
#polygon = Polygon([(140, -40), (150, -40), (150, -45), (140,-45)])
#Oz_clip = gpd.clip(Oz, polygon)
I want to remove all disconnected islands from the Australian coastline. I've imported the country as a Shapefile and can remove regions using a hard-coded boundary. But it would be inefficient to trace around the entire coastline to remove all disconnected islands. Is there quicker method using GeoPandas?
import geoplot as gplt
import geopandas as gpd
Oz = gpd.read_file('OZ.shp')
#polygon = Polygon([(140, -40), (150, -40), (150, -45), (140,-45)])
#Oz_clip = gpd.clip(Oz, polygon)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进行最大面积多边形
head()
或面积超过阈值的多边形head()
or polygons with area over a threshold