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)
Note:
See TracTickets
for help on using tickets.
Woops, the ImageryBounds class is parsing with MINLAT_MINLON_MAXLAT_MAXLON when it should be LEFT_BOTTOM_RIGHT_TOP in this case.