SRS - layer with two valid EPSGcodes

Ed McNierney ed at TOPOZONE.COM
Tue Dec 6 06:18:16 PST 2005


Stefanie -

Don't confuse the description of the source projection of the layer with
the client's request for the layer.

In MapServer you use the PROJECTION object inside a LAYER to inform
MapServer of the native projection used in the coordinates of the data
layer itself (the shapefile coordinates, for example).

Using a WMS request to that server, you can request a map be generated
using (a) a specified series of data layers and (b) output in a
particular projection, specified by EPSG code.

You wrote "if the datum is changed, the mesh should still fit to the
original coordinates and should not be reprojected".  I don't think
that's quite correct.  When you say "datum is changed" I assume you mean
that the WMS client requests an output map using a different datum,
correct?  If that is the case, then the original coordinates MUST be
reprojected - for every layer in your map.  The output map image should
still have the grid lines correctly aligned, since both the grid lines
and the map layers underneath them have been reprojected to the same
output projection and datum.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Stefanie Weykam
Sent: Tuesday, December 06, 2005 8:06 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] SRS - layer with two valid EPSGcodes

Yes, but this does not avoid reprojection of the layer if the client
chooses the other ellipsoid, does it? As an arctefact the grid lines
would be shifted several hundred meters in both directions.

So, what is the best way to handle this -perhaps unusual- situation?
- offering only one of these EPSG codes in order to force the client to
use the first datum?
- duplicate the layer and offer each in a different projection?? (I do
not really favour this one)
- any other suggestion??

st.

-----Mensaje original-----
De: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL]
Enviado el: martes, 06 de diciembre de 2005 11:22
Para: MAPSERVER-USERS at LISTS.UMN.EDU; sweykam at TELELINE.ES
Asunto: Re: [UMN_MAPSERVER-USERS] SRS - layer with two valid EPSGcodes


AFAIK you just advertize using wms_srs METADATA (space delimited list).

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Stefanie Weykam <sweykam at TELELINE.ES> 12/6/2005 10:41 AM >>>
> Hi list members,
>
I have a polygon layer, a mesh witch fits to exact coordinates on the
UTM grid.
If the datum is changed, the mesh should still fit to the original
coordinates and should not be reprojected.

I guess, I could work around this in our own application, but how do I
advertise this layer with several valid EPSG codes to clients?

> Thanks in advance,
> Stefanie
>



More information about the MapServer-users mailing list