Crossing the date line?

Gregor Mosheh gregor at HOSTGIS.COM
Tue Dec 5 10:58:47 EST 2006


Hi, all.

W're investigating how best to handle data which crosses the date line. I
see some very old postings about known bugs back in 2001, but couldn't
find anything recent. Perhaps y'all could fill me in on the modern
perspective?

We're looking at 3 cases:
- remote WMS
- vector (PostGIS)
- locally stored GeoTIFFs

How can we have Mapserver (better yet, PHP/Mapscript because that's what
we're using) gracefully handle data that's at opposite ends of the
-180/180 rectangle? We do not have the option of massaging the data,
moving the map features to the other end of the earth; the data has to
stay as-is.

Any thoughts? I found surprisingly little about this in Google and Clusty,
aside from mentions of "don't do that" in mapserv.js

One idea that has occurred to me, since we're using Mapscript, is to
detect urx<llx and then generate two images and paste the images together.
Yuck.

-- 
HostGIS
Cartographic development and hosting services
707-822-9355
http://www.HostGIS.com/



More information about the mapserver-users mailing list