[mapserver-users] world vector shorelines shpfile - convert meters to DD in mapfile
Gregor at HostGIS
gregor at hostgis.com
Wed Dec 3 12:03:30 PST 2008
> The problem is that this shapefile uses units which are in meters, and
Two solutions:
a) Use a PROJECTION block like this, to tell MapServer to reproject the
data on the fly:
PROJECTION
"init=EPSG:123456"
END
b) Reproject the data into DD using ogr2ogr:
ogr2ogr -t_srs EPSG:4326 -s_srs EPSG:123456 dd.shp utm.shp
Note that reprojection on the fly isn't a fast operation, so if your
data is large or there's no need for it to be in meters (say, distance
measurements between coordinates) you may prefer Option B.
--
Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/
"Remember that no one cares if you can back up,
only if you can restore." - AMANDA
More information about the MapServer-users
mailing list