Modify

Opened 8 months ago

Last modified 7 months 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 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 8 months ago.
sp2.png (992.1 KB) - added by Don-vip 8 months ago.
sp3.png (863.1 KB) - added by Don-vip 8 months ago.
sp4.png (1.0 MB) - added by Don-vip 8 months ago.
sp5.png (1.0 MB) - added by Don-vip 8 months ago.
sp6.png (23.4 KB) - added by Don-vip 8 months ago.

Change History (18)

Changed 8 months ago by Don-vip

Attachment: sp1.png added

Changed 8 months ago by Don-vip

Attachment: sp2.png added

Changed 8 months ago by Don-vip

Attachment: sp3.png added

Changed 8 months ago by Don-vip

Attachment: sp4.png added

Changed 8 months ago by Don-vip

Attachment: sp5.png added

Changed 8 months ago by Don-vip

Attachment: sp6.png added

comment:1 Changed 8 months ago by Don-vip

Description: modified (diff)

comment:2 Changed 8 months ago by Don-vip

Description: modified (diff)

comment:3 Changed 8 months ago by Don-vip

Description: modified (diff)

comment:4 Changed 8 months ago by stoecker

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

comment:5 Changed 8 months ago by Don-vip

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 Changed 8 months ago by Don-vip

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

comment:7 in reply to:  6 Changed 8 months ago by stoecker

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 8 months ago by stoecker (previous) (diff)

comment:8 Changed 8 months ago by bastiK

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 Changed 8 months ago by Don-vip

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

comment:10 Changed 8 months ago by Don-vip

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

Last edited 8 months ago by Don-vip (previous) (diff)

comment:11 Changed 7 months ago by stoecker

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 Changed 7 months ago by Don-vip

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

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.