Repository navigation
Automatically Densify simple polygons when creating centerlines - #7060
geographika wants to merge 2 commits into
Conversation
|
I think I actually had this in place early on with this work but teased things apart. I don’t recall why though. What you propose seems like a good idea. I was wondering the same thing though on number of points and value for densify. I thought I used some trivial test cases with a triangle and square early on. Really will need to test on this end. |
Co-authored-by: Even Rouault <[email protected]>
I thought you'd have considered this, and the arbitrary values are a worry. At first, I was trying to simply ignore/log the errors, but that seemed much harder to implement as the shape it processed during parsing, so the function can't simply log an error and return NULL. I ran into the issue whilst creating the MapServer tutorial - |
What constitutes a simple feature is more problematic. I'd think the we could figure out a densify value based on the distance between the points (there aren't that many of then - perhaps the shortest distance between points (or a fraction thereof). I do like the idea of auto densify though... |
|
I was hoping there were some criteria for which features would work in the GEOS codebase (I presume this is where the feature fails) but not many details from what I can find https://github.com/search?q=repo%3Alibgeos%2Fgeos++GEOSVoronoiDiagram&type=code |
|
Closed - see discussions at #7058 |
Automatically densify simple polygons before creating msGEOSVoronoiDiagram.
Possible fix for #7058.
The number of points and the value of 3 for msDensify are based on a test dataset. I'm not sure of general applicability.