ncssar / sartopo_python

Python calls for the caltopo / sartopo API
GNU General Public License v3.0
14 stars 2 forks source link

crop also splits the cropped line on crossovers #29

Closed caver456 closed 2 years ago

caver456 commented 3 years ago

We don't want to split the line on crossovers. Real search tracks probably will have crossovers, but we want just one line.

image

caver456 commented 3 years ago

Just to clarify, testing confirms that this fracturing on crossovers is the result of the Shapely intersection operation. Should it be that way? Who knows. But, we want to see just one line (per contiguous cropped segment).

caver456 commented 3 years ago

opened a gis.stackexhange question:

https://gis.stackexchange.com/questions/403121/python-shapely-crop-clip-using-intersection-cropped-line-is-split-at-self-i