[mapserver-users] Polygons wrapping when projected into spherical mercator
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Dec 30 19:53:50 PST 2013
Hi all,
I'm having one of those brain dead moments. I've run into this in the
past but can't for the life of me figure out how I fixed then.
I have a polygons layer of the world countries in epsg:4326 and it
displays fine until I project it into spherical mercator them the
polygons that touch the date line get wrapper all wonky.
You can see the problem here:
http://imaptools.com:8080/demo/leaddog-tiles.html
shpdump data/world/world_Dissolve | head
Shapefile Type: Polygon # of Shapes: 275
File Bounds: ( -180.000, -90.000,0,0)
to ( 180.000, 83.633,0,0)
This works fine on my old Debian Lenny box but seems to have heart burn
when I upgraded the system.
How do I fix this?
Thanks,
-Steve W
Ubuntu 12.04
uname -a
Linux mappy 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
mapserv -v
MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
libproj-dev/precise uptodate 4.8.0-3~precise2
libproj0/precise uptodate 4.8.0-3~precise2
libapache2-mod-mapcache/precise uptodate 1.0.0-3~precise2
libmapcache/precise uptodate 1.0.0-3~precise2
mapcache-tools/precise uptodate 1.0.0-3~precise2
cgi-mapserver/precise uptodate 6.2.1-2~precise3
libmapserver/precise uptodate 6.2.1-2~precise3
mapserver-bin/precise uptodate 6.2.1-2~precise3
More information about the MapServer-users
mailing list