Ticket #14650: Avoid_IAE_when_converting_3-nodes_way_to_LinearRing.patch
| File Avoid_IAE_when_converting_3-nodes_way_to_LinearRing.patch, 822 bytes (added by , 7 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/jts/JTSConverter.java
IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8
90 90 CoordinateSequence coordSeq = convertNodesToCoordinateSequence(way.getNodes()); 91 91 92 92 // TODO: need to check tags to determine whether area or not 93 if (way.isClosed() ) {93 if (way.isClosed() && way.getNodesCount() >= 4) { 94 94 LinearRing ring = new LinearRing(coordSeq, getGeometryFactory()); 95 95 return new Polygon(ring, null, getGeometryFactory()); 96 96 } else {
