Modify

Opened 12 years ago

Closed 12 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)

9565.png (365.7 KB ) - added by Don-vip 12 years ago.
that's a huge circle
2014-01-10_223913_scr.png (216.6 KB ) - added by malenki 12 years ago.
rectangular part of a longer-than-equator-circle

Download all attachments as: .zip

Change History (6)

by Don-vip, 12 years ago

Attachment: 9565.png added

that's a huge circle

by malenki, 12 years ago

Attachment: 2014-01-10_223913_scr.png added

rectangular part of a longer-than-equator-circle

comment:1 by Don-vip, 12 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 Don-vip, 12 years ago

Milestone: 14.01

comment:3 by Don-vip, 12 years ago

In 6669/josm:

see #9565 - don't consider infinite coordinates as valid

comment:4 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 6672/josm:

fix #9565 - "create circle" creates enormous circles of ways with three nodes

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.