[Mapserver-users] projection - UTM and geographic

Frank Warmerdam warmerdam at pobox.com
Wed Mar 24 05:48:23 PST 2004


Steve McCrone wrote:
> I know this question hs been asked many times, but I can't seeme to find the
> solution.
> 
> I ahve a shape file that is in geographics (i.e. WGS84 lat/lon). I wish to
> display the shape file in UTM m. I tried putting the projection definition
> but the map does not show. My mouse coordinates (within jBox) are expressed
> in UTM m, but map is not dispalyed.
> 
> PROJECTION
>     "proj=utm"
>     "datum=WGS84"
>   END
> 
> I also have -
> 
> EXTENT 111000 592500 279600 711000
> UNITS METERS

Steve,

You need the UTM zone you are working in as well.

eg.
PROJECTION
   "proj=utm"
   "zone=11"
   "datum=WGS84"
END

Also, I assume you have a projection block on the layer describing it
as geographic, right?  Something like:

PROJECTION
   "proj=latlong"
   "datum=WGS84"
END

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the MapServer-users mailing list