[MS4W-Users] How to mention multiple projections in MapServer MAPFILE?
Stephen Woodbridge
woodbri at swoodbridge.com
Fri Jan 3 09:25:38 EST 2014
Shiva,
To be explicit, mapserver does not support a layer where each geometry
has its own projection. You will need to separate the data into multiple
tables where all geometries in any given table are the same projection.
-Steve W
On 1/3/2014 9:03 AM, Mark Volz wrote:
> 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
> _______________________________________________
> 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