Modify

Opened 12 years ago

Closed 12 years ago

#9231 closed defect (invalid)

Bounds object doesn't allow integers

Reported by: iandees Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

In my mbtiles plugin I parse the bounding box of the layer using the org.openstreetmap.josm.data.imagery.ImageryInfo$ImageryBounds class. In one of the mbtiles files, the bounds is defined as the string "-180,-85.05112877980659,180,85.05112877980659". Using the ImageryBounds string constructor, I get "Illegal latitude value '-180'":

java.lang.IllegalArgumentException: Illegal latitude value '-180'
	at org.openstreetmap.josm.data.Bounds.initLat(Bounds.java:206)
	at org.openstreetmap.josm.data.Bounds.<init>(Bounds.java:197)
	at org.openstreetmap.josm.data.Bounds.<init>(Bounds.java:171)
	at org.openstreetmap.josm.data.Bounds.<init>(Bounds.java:167)
	at org.openstreetmap.josm.data.imagery.ImageryInfo$ImageryBounds.<init>(ImageryInfo.java:63)

Attachments (0)

Change History (1)

comment:1 by iandees, 12 years ago

Resolution: invalid
Status: newclosed

Woops, the ImageryBounds class is parsing with MINLAT_MINLON_MAXLAT_MAXLON when it should be LEFT_BOTTOM_RIGHT_TOP in this case.

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.