[MS4W-Users] How to mention multiple projections in MapServer MAPFILE?
Mark Volz
MarkVolz at co.lyon.mn.us
Fri Jan 3 09:03:11 EST 2014
Shiva,
Mapserver can take data from multiple layers and project each layer. However you need to specify the projection of your map, and the projection that your incoming layers use. I do not think Mapserver will automatically read a .prj file.
Here is how you can take data from three projections and make a final map in UTM 48:
MAP
#make mapserver produce a final map in UTM 48
PROJECTION
"init=epsg:26915"
END PROJECTION
...
LAYER
#source data in UTM 47
PROJECTION
"init=epsg:26947"
END PROJECTION
...
END LAYER
LAYER
#source data in UTM 48
PROJECTION
"init=epsg:26948"
END PROJECTION
...
END LAYER
LAYER
#source data in UTM 49
PROJECTION
"init=epsg:26949"
END PROJECTION
...
END LAYER
END MAP
Mark Volz, GISP
GIS Specialist
> -----Original Message-----
> From: ms4w-users-bounces at lists.maptools.org [mailto:ms4w-users-
> bounces at lists.maptools.org] On Behalf Of shiva.sk4
> Sent: Friday, January 03, 2014 7:11 AM
> To: ms4w-users at lists.maptools.org
> Subject: Re: [MS4W-Users] How to mention multiple projections in
> MapServer MAPFILE?
>
> Can we specify multiple projections (in this case 3) to indicate to mapserver
> that the map data may lie within these projection systems and in each
> individual layer definitions mention projection as *auto* so that it projects
> the data according to the *SRID* for each geometry record?
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/How-
> to-mention-multiple-projections-in-MapServer-MAPFILE-
> tp5096215p5096233.html
> Sent from the ms4w-users mailing list archive at Nabble.com.
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
More information about the MS4W-Users
mailing list