<div dir="ltr">OK, <div>I think I understand it now. So I just need to define the list of available projections at the MAP level.</div><div>Then, MapServer will automatically take care of the reprojection.</div><div><br></div>
<div>I'll do this as a first step, and then I'll try the 'variable substitution' trick suggested by Martin in case the on-the-fly reprojection is too slow.</div><div><br></div><div>-Jiří</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 1:02 PM, Thomas Bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the list of available projections is defined for all layers of the<br>
mapfile, not at the individual <Layer> level. they are set with the<br>
wms_srs metadata entry.<br>
<div class="HOEnZb"><div class="h5"><br>
On 27/01/2014 11:57, Jiří Kadlec wrote:<br>
> Hi Thomas,<br>
> Thanks for explanation but it's still a bit unclear. I tried to study the<br>
> manual on <a href="http://mapserver.org/mapfile/projection.html" target="_blank">http://mapserver.org/mapfile/projection.html</a>.<br>
> Can I define two or more PROJECTION blocks for one LAYER?<br>
><br>
> What I'm trying to achieve is something like this: In the GetCapabilities<br>
> document, the client will see the list of supported projections for each<br>
> layer. Something like:<br>
><br>
> <Layer><br>
> <Name>cryosphere_atlas_north</Name><br>
> <Title>Atlas of the Cryosphere: Northern Hemisphere</Title><br>
> <SRS>EPSG:32661</SRS><SRS>EPSG:4326</SRS><SRS>EPSG:3408</SRS><SRS>EPSG:3410</SRS><SRS>EPSG:3411</SRS><SRS>EPSG:3413</SRS><SRS>EPSG:3571</SRS><br>

> ......<br>
><br>
> --Jiri<br>
><br>
><br>
> On Mon, Jan 27, 2014 at 12:48 PM, Thomas Bonfort<br>
> <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>>wrote:<br>
><br>
>> (please keep your messages on list)<br>
>><br>
>> yes, it will do that if proj support is built in. Just make sure you<br>
>> have defined a PROJECTION block at the LAYER level describing the<br>
>> projection of the underlying data.<br>
>><br>
>> --<br>
>> thomas<br>
>><br>
>> On 27/01/2014 11:45, Jiří Kadlec wrote:<br>
>>> Thank you for the clarification.<br>
>>> I have a related question:<br>
>>><br>
>>> Can MapServer do 'on-the-fly' reprojection of my WMS layer data on the<br>
>>> server?<br>
>>> Let's say I have a table 'lakes' with one geometry column in EPSG:4326.<br>
>> And<br>
>>> I want to make the same layer available in 3 other projections and I<br>
>> don't<br>
>>> mind the reprojection overhead.<br>
>>><br>
>>> Regards,<br>
>>> Jiri<br>
>>><br>
>>><br>
>>> On Mon, Jan 27, 2014 at 12:38 PM, Thomas Bonfort<br>
>>> <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>>wrote:<br>
>>><br>
>>>> AFAIK, creating 3 distinct layers is currently the only solution<br>
>>>> available, which has the inconvenience that the client must explicitely<br>
>>>> request the correct layer in order to avoid the overhead of<br>
>> reprojection.<br>
>>>> You can use INCLUDEs inside those layers in order to avoid duplicating<br>
>>>> the rest of the LAYER configuration (i.e. for everything except NAME,<br>
>>>> DATA, PROJECTION).<br>
>>>> The mechanism used for<br>
>>>> <a href="http://mapserver.org/fr/development/rfc/ms-rfc-86.html" target="_blank">http://mapserver.org/fr/development/rfc/ms-rfc-86.html</a> SCALETOKENs<br>
>> could<br>
>>>> probably be extended to include other runtime-replaceable tokens<br>
>>>> (notably projection id), but there would still be issues in that case as<br>
>>>> to how mapserver itself should be instructed whether to reproject the<br>
>>>> data or not.<br>
>>>><br>
>>>> --<br>
>>>> thomas<br>
>>>><br>
>>>> On 27/01/2014 11:28, Jiří Kadlec wrote:<br>
>>>>> Dear mapserver forum,<br>
>>>>><br>
>>>>> In my PostGIS database I have a table 'lakes' with 3 geometry columns:<br>
>>>>> the_geom4326, the_geom3857, the_geom3067<br>
>>>>> My goal is to make my 'lakes' layer available in the 3 different<br>
>>>>> projections: (EPSG:4326, EPSG:3857, EPSG:3067)<br>
>>>>><br>
>>>>> Is this possible in MapServer?<br>
>>>>><br>
>>>>> (then only way I managed so far is to serve the table as 3 different<br>
>>>>> layers, first layer in EPSG:4326, second layer in EPSG:3857, third<br>
>> layer<br>
>>>> in<br>
>>>>> EPSG:3067)<br>
>>>>><br>
>>>>><br>
>>>>> Thanks a lot for help,<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> mapserver-users mailing list<br>
>>>>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
>>>>><br>
>>>> _______________________________________________<br>
>>>> mapserver-users mailing list<br>
>>>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>><br>
><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jiří Kadlec<br>Research Assistant<br>Aalto university<br>Lahti, Finland<br>
</div>