Opened 9 years ago
Closed 3 years ago
#732 closed defect (fixed)
BufferOp(0.0) makes the attached polygon "miss"!
Reported by: | jiangdaidai | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.9.1 |
Component: | Default | Version: | 3.4.2 |
Severity: | Significant | Keywords: | BufferOp |
Cc: |
Description
After doing BufferOp(0.0), the attached polygon turns out to be almost NON! I have observed the points and think there is non problems. I don't know why.
Attachments (1)
Change History (11)
by , 9 years ago
comment:1 by , 9 years ago
After doing BufferOp?(0.0), the attached polygon turns out to be almost NON! I have observed the points and think there is no problems. I don't know why.
comment:2 by , 9 years ago
I find the reason: my polygon self-intersectes and is_ccw(my polygon) makes the key unexpected performance. During the learning of GEOS, I think there may be one bug :
SegmentIntersector.cpp Line 114, according to the algorithm logical, int maxSegIndex=e0->getNumPoints()-1; --> int maxSegIndex=e0->getNumPoints()-2;
comment:3 by , 9 years ago
JTS is also subtracting 1 on that line. Martin, could you review ? BTW, where did the JTS code move ? The SourceForge SVN is not reachable anymore ?
comment:8 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:9 by , 3 years ago
Milestone: | 3.6.3 → 3.9.1 |
---|---|
Resolution: | wontfix |
Severity: | Critical → Significant |
Status: | closed → reopened |
This is the classic bow-tie buffer(0) failure. Fixed in JTS by https://github.com/locationtech/jts/pull/655
the points of the polygon