[MS4W-Users] How to mention multiple projections in MapServer MAPFILE?
jukka.rahkonen at mmmtike.fi
Thu Jan 9 01:11:04 EST 2014
I would like to mention a small detail: the example will not work out-of-the-box because the fake code EPSG:900913 is not supported by default. If that code is needed user must edit file \ms4w\proj\nad\epsg and copy the EPSG:3857 lines with 900913 code.
Stephen Woodbridge wrote:
> On 1/8/2014 5:11 PM, Robert Sanson wrote:
>> Hi Stephen et al
>> This is very clear for when your underlying map layers are in
>> different projections. But can you list multiple projections in the
>> main Map section, such that Mapserver can serve data in more than one
>> projection? For example, one client might send a GetMap request for
>> data in UTM 48 (epsg:26915), another might ask for it in Spherical
>> Mercator (epsg:900913 or epsg:3857).
> Yes if you configure your mapfile for WMS then you can include something
ows_srs "EPSG:4326 EPSG:900913"
> You can list all the projections that you want your mapfile to serve on
> ows_srs. You should define the some projection ... end block in the MAP
> object and all layers that are not in the MAP object's projection should
> have a projection ... end block and it is probably smart to define all
> layers with a projection ... end block. The layer projection should
> ALWAYS define the projection the source data is in.
> -Steve W
> Many thanks,
>>>> Stephen Woodbridge <woodbri at swoodbridge.com> 4/01/2014 3:25
>>>> a.m. >>>
> 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:
>> 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:
>>> tp5096215p5096233.html Sent from the ms4w-users mailing list
>>> archive at Nabble.com.
>>> _______________________________________________ MS4W-Users
>>> mailing list MS4W-Users at lists.maptools.org
>> _______________________________________________ MS4W-Users mailing
>> list MS4W-Users at lists.maptools.org
> _______________________________________________ MS4W-Users mailing
> list MS4W-Users at lists.maptools.org
> This email and any attachments are confidential and intended solely
> for the addressee(s). If you are not the intended recipient, please
> notify us immediately and then delete this email from your system.
> This message has been scanned for Malware and Viruses by Websense
> Hosted Security. www.websense.com
MS4W-Users mailing list
MS4W-Users at lists.maptools.org
More information about the MS4W-Users