Modify

Opened 7 years ago

Last modified 6 years ago

#16082 new defect

Strange artifacts when warping imagery at South/North Pole

Reported by: Don-vip Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: template_report projection warping stereographic antarctic south pole polar Cc: bastiK, wiktorn

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Enable projection EPSG:3031 (WGS 84 / Antarctic Polar Stereographic)
  2. Add Bing layer
  3. Move to South Pole
  4. Drag the map around (no change of zoom)

What is the expected result?

Correct imagery displayed.

What happens instead?

Strange artifacts when warping, see below:







Build-Date:2018-03-11 18:28:30
Revision:13515
Is-Local-Build:true

Identification: JOSM/1.5 (13515 SVN en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1709 (16299)
Memory Usage: 1302 MB / 3634 MB (348 MB allocated, but free)
Java version: 1.8.0_162-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080, \Display1 1920x1080, \Display2 1280x1024
Maximum Screen Size: 1920x1080
VM arguments: [-Dfile.encoding=UTF-8]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (33668)
+ download_along (34081)
+ ejml (32680)
+ geotools (33958)
+ josm-recorder (3.0.2)
+ jts (32699)
+ opendata (34072)
+ utilsplugin2 (33991)
+ wikipedia (34079)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<The maximum bbox size is 0.25, and your request was too large. Either request a smaller area, or use planet.osm>
- E: Bad Request - <html>The OSM server 'api.openstreetmap.org' reported a bad request.<br><br>The area you tried to download is too big or your request was too large.<br>Either request a smaller area or use an export file provided by the OSM community.</html>
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<The maximum bbox size is 0.25, and your request was too large. Either request a smaller area, or use planet.osm>
- E: Bad Request - <html>The OSM server 'api.openstreetmap.org' reported a bad request.<br><br>The area you tried to download is too big or your request was too large.<br>Either request a smaller area or use an export file provided by the OSM community.</html>
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet

Attachments (6)

sp1.png (977.4 KB ) - added by Don-vip 7 years ago.
sp2.png (992.1 KB ) - added by Don-vip 7 years ago.
sp3.png (863.1 KB ) - added by Don-vip 7 years ago.
sp4.png (1.0 MB ) - added by Don-vip 7 years ago.
sp5.png (1.0 MB ) - added by Don-vip 7 years ago.
sp6.png (23.4 KB ) - added by Don-vip 7 years ago.

Change History (24)

by Don-vip, 7 years ago

Attachment: sp1.png added

by Don-vip, 7 years ago

Attachment: sp2.png added

by Don-vip, 7 years ago

Attachment: sp3.png added

by Don-vip, 7 years ago

Attachment: sp4.png added

by Don-vip, 7 years ago

Attachment: sp5.png added

by Don-vip, 7 years ago

Attachment: sp6.png added

comment:1 by Don-vip, 7 years ago

Description: modified (diff)

comment:2 by Don-vip, 7 years ago

Description: modified (diff)

comment:3 by Don-vip, 7 years ago

Description: modified (diff)

comment:4 by stoecker, 7 years ago

Has Bing data higher than 85deg? Normal TMS ends at 85.

comment:5 by Don-vip, 7 years ago

I don't think so, I wasn't surprised to see a black circle at first. But there are really strange artifacts I don't understand (the circle can become bigger, up to fill the full screen).

comment:6 by Don-vip, 7 years ago

or: we have an actual proof the Earth is flat :D

in reply to:  6 comment:7 by stoecker, 7 years ago

Replying to Don-vip:

or: we have an actual proof the Earth is flat :D

You mean all the GNSS software including 3D positioning algorithms I write at work is bullshit ;-) I hope not.

Last edited 7 years ago by stoecker (previous) (diff)

comment:8 by bastiK, 7 years ago

Hi, this is kind of what I was experiencing also, while experimenting with these projections. The algorithm has to pick a zoom level and if I recall correctly, it simply takes the center of the screen as reference. Given a certain zoom level, as you approach the pole, the tiles get smaller and smaller and you have to stop at some point. So the size of the black circle depends on the location of the screen center and it may appear erratic.

The algorithm was not designed with extreme scale difference on screen in mind. Certainly this isn't great, but I wasn't sure how to improve the situation.

comment:9 by Don-vip, 7 years ago

Summary: Strange artifacts when warping imagery at South PoleStrange artifacts when warping imagery at South/North Pole

comment:10 by Don-vip, 7 years ago

Similar artifacts at North pole: ticket:16129#comment:23

Last edited 7 years ago by Don-vip (previous) (diff)

comment:11 by stoecker, 7 years ago

Did you try with high precision calculations for test?

E.g. BigDecimal or something alike?

That's probably not for production, but at least for test purposes it may help.

After some zooming in and out I got totally distorted images. That reminds me of the days when first implementing projections. There we had similar effects which I mainly solved by adding upper and lower bounds for zooming (which was a workaround and no fix).

comment:12 by Don-vip, 7 years ago

I only tried to understand the reprojection code and failed to :)

comment:13 by stoecker, 6 years ago

Ticket #17093 has been marked as a duplicate of this ticket.

comment:14 by c933103@…, 6 years ago

It not just affect bing imagery, almost all imagery (as far as I tested) have this effect, even if you add an OSM layer and it is still the same (OSM should have certain level of support place to the south of 85 degre)

comment:15 by anonymous, 6 years ago

comment:16 by c933103@…, 6 years ago

Also, note that https://i.imgur.com/pQJ6srg.png the screenshot include a snapshot of navigating around 180 degree meridian in Fiji (See bottom left for coordinate and top left for zoom level), and for all the mapping service selected on the top right, none of them can be displayed correctly here when using either UTM 1S/60S or WGS84. However the display become normal in UTM projection once you move the 180 degree meridian away from the view, no matter toward the east or the west.

comment:17 by Don-vip, 6 years ago

Keywords: polar added

comment:18 by Don-vip, 6 years ago

Ticket #17387 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Don-vip.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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