<div dir="ltr">Hi Thomas,<div>Thanks for explanation but it's still a bit unclear. I tried to study the manual on <a href="http://mapserver.org/mapfile/projection.html">http://mapserver.org/mapfile/projection.html</a>.</div>
<div>Can I define two or more PROJECTION blocks for one LAYER?</div><div><br></div><div>What I'm trying to achieve is something like this: In the GetCapabilities document, the client will see the list of supported projections for each layer. Something like:</div>
<div><br></div><div><Layer></div><div><Name>cryosphere_atlas_north</Name></div><div><Title>Atlas of the Cryosphere: Northern Hemisphere</Title></div><div><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>
</div><div>......</div><div><br></div><div>--Jiri</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 12:48 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">(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>
<div class="HOEnZb"><div class="h5"><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. And<br>
> I want to make the same layer available in 3 other projections and I 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 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 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 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>
</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>