Close a spatial line into a polygon using a shapefile

好久不见. 提交于 2019-12-11 06:53:35

问题


I have a SpatialLinesDataFrame that was produced from a contour of marine environmental data. The contour is not closed where it meets land. I would like to close the contour so that I can calculate the area within the contour. I have a shapefile for the coastline.

So, I would like to use the coastline shapefile to close the contour lines.

Edit: Here's an image illustrating what I am trying to do. The black line is the contour and the red is the coastline. I want the area enclosed by the black areas.

来源:https://stackoverflow.com/questions/38089748/close-a-spatial-line-into-a-polygon-using-a-shapefile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!