Opened 10 years ago
Closed 10 years ago
#9565 closed defect (fixed)
"create circle" creates enormous circles of ways with three nodes
Reported by: | malenki | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.01 |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Issue: as mentioned in the subject
Circles created from not closed ways with three nodes have a diameter several times bigger then the length of the origin way.
If you try this trick with an exactly straight way no matter how short the circle has a little more than equator length.
r6659
tested with empty ~/.josm
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (7u45-2.4.3-4)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Attachments (2)
Change History (6)
by , 10 years ago
by , 10 years ago
Attachment: | 2014-01-10_223913_scr.png added |
---|
rectangular part of a longer-than-equator-circle
comment:1 by , 10 years ago
Hahaha attempting to view advanced info of this monstruosity leads to a crash:
Build-Date: 2014-01-06 17:49:45 Revision: 6643 Is-Local-Build: true Identification: JOSM/1.5 (6643 SVN en) Windows 8 64-Bit Memory Usage: 320 MB / 1813 MB (50 MB allocated, but free) Java version: 1.7.0_45, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM VM arguments: [-Dfile.encoding=UTF-8] Dataset consistency test: [SEARCH NODES] {Node id=-1380 version=0 MV lat=-90.0,lon=9.963302272156221E10} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1379 version=0 MV lat=-90.0,lon=1.8239431458867548E11} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1384 version=0 MV lat=90.0,lon=9.963302272156223E10} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1383 version=0 MV lat=90.0,lon=1.6871730854448973E10} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1386 version=0 MV lat=-90.0,lon=2.166751641195519E11} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1385 version=0 MV lat=90.0,lon=1.8239431458867548E11} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1382 version=0 MV lat=-90.0,lon=-1.7409118676427483E10} not found using Dataset.searchNodes() [SEARCH NODES] {Node id=-1381 version=0 MV lat=-90.0,lon=1.6871730854448938E10} not found using Dataset.searchNodes() java.lang.NumberFormatException: Infinite or NaN at java.math.BigDecimal.<init>(Unknown Source) at org.openstreetmap.josm.tools.Geometry.getCentroid(Geometry.java:685) at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addSpecial(InspectPrimitiveDialog.java:245) at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addPrimitive(InspectPrimitiveDialog.java:158) at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataText(InspectPrimitiveDialog.java:113) at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataPanel(InspectPrimitiveDialog.java:99) at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.<init>(InspectPrimitiveDialog.java:76) at org.openstreetmap.josm.actions.InfoAction.actionPerformed(InfoAction.java:35)
comment:2 by , 10 years ago
Milestone: | → 14.01 |
---|
that's a huge circle