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