Opened 14 years ago

Last modified 14 years ago

#3459 new defect

Got weird map when use MapServer WMS to reproject data (with global extent) from EPSG:4326 to projections like World Sinusoidal/Mollweide/...

Reported by: yaxingwei Owned by: warmerdam
Priority: high Milestone:
Component: WMS Server Version: unspecified
Severity: normal Keywords: WMS, projection, error
Cc:

Description

I have set up a MapServer WMS for several global scale spatial data. The original crs for these data is WGS84 (EPSG:4326). I got weird maps when I requested this WMS using projections like EPSG:54008 (World Sinusoidal) and EPSG:54009 (World Mollweide). Those maps created by this WMS looks like a mess in north pole and south pole areas, as shown in the attached screenshots. You can also test this WMS by clicking the two links below.

Request map from WMS using Sinusoidal projection: http://webmap.ornl.gov/ogcbroker/wms?LAYERS=10004_1&TRANSPARENT=true&FORMAT=image%2Fpng&BANDS=1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A54008&bbox=-20015077.371192962%2C-10007538.685596481%2C20015077.371192962%2C10007538.685596481&width=720&height=360

Request map from WMS using Mollweide projection: http://webmap.ornl.gov/ogcbroker/wms?LAYERS=10004_1&TRANSPARENT=true&FORMAT=image%2Fpng&BANDS=1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A54009&bbox=-18040095.696120452%2C-9020047.848060226%2C18040095.696120452%2C9020047.848060226&width=720&height=360

This problem happened for several versions of MapServer, including the current version (5.6.3)

Thank you.

Attachments (3)

modis_sinusoidal.png (30.4 KB ) - added by yaxingwei 14 years ago.
map in sinusoidal projection
modis_mollweide.png (31.8 KB ) - added by yaxingwei 14 years ago.
map in mollweide projection
10004_1_wms_webmap.map (2.9 KB ) - added by yaxingwei 14 years ago.
mapfile for the raster data with projection problem

Download all attachments as: .zip

Change History (5)

by yaxingwei, 14 years ago

Attachment: modis_sinusoidal.png added

map in sinusoidal projection

by yaxingwei, 14 years ago

Attachment: modis_mollweide.png added

map in mollweide projection

comment:1 by warmerdam, 14 years ago

Owner: changed from mapserverbugs to warmerdam
Priority: highesthigh

Yaxing Wei,

Can you provide the mapfile and supporting data for this? It appears that you are using vector source data, and some polygons are getting badly twisted near the pole but it is difficult to tell.

comment:2 by yaxingwei, 14 years ago

Hi,

I'm not using vector source data. It is a GeoTIFF raster data. Actually, this problem does not exist for vector data, as you can see from here: http://webmap.ornl.gov/cgi-bin/mapserv.exe?map=D:/CONFIG/MAPFILE/baselayers.map&LAYERS=world&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A54008&BBOX=-20015077.371192,-10007538.685596,20015077.371192,10007538.685596&WIDTH=720&HEIGHT=360

The above map looks good. So this is only a problem for raster data.

Attached please find the mapfile for the GeoTIFF raster data with problems. Thank you.

by yaxingwei, 14 years ago

Attachment: 10004_1_wms_webmap.map added

mapfile for the raster data with projection problem

Note: See TracTickets for help on using tickets.