[mapserver-users] MapServer as WMS
Jukka.Rahkonen at mmmtike.fi
Thu Nov 11 08:36:41 EST 2010
Let's hope this is correct information. MAP-WEB-METADATA-"wms_srs" is listing the projections which are supported for the whole service. Individual layers may give more projections if they are given in LAYER-METADATA.
If there is not wms_extent set on LAYER metadata Mapserver is trying to calculate it for you on-the-fly. At least older versions did not do that for tileindex layers, and with some database sources querying the extents may be slow and especially with Oracle very slow, so giving extents in the metadata may be a good idea.
BBOX in the WMS GetMap is always in the output projection so yes, you need to have some conversion in your planned system.
Finally, you will need some code of your own ot to use a ready made client for making WIDTH and HEIGHT proportional to BBOX. WMS is accepting anything and projects the output to fit the request.
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Hildebrand
Lähetetty: 9. marraskuuta 2010 20:09
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] MapServer as WMS
I am trying to configure MapServer as a WMS service and would like some clarity on projection information. I have several layers in differing projections but would like the final output to be in Transverse Mercator. For each layer I have defined the "wms_srs" and "wms_extent" tags. In the top-level map file do I now define the "wms_srs" tag as a list of projections which are defined in the layers or is there a wildcard specification I can use? Furthermore, I want to be able to specify the bounding box in lat/lon rather than Transverse Mercator coordinates, the desired output projection. I suppose I need to have a CGI script call a projection utility to return the bounding box coordinates projected to Transverse Mercator and then pass those to mapserv. On a related note, how do I set the output WIDTH and HEIGHT to be proportional to the BBOX?
David V. Hildebrand
Agriculture Financial Services Corporation
www.afsc.ca <about:www.afsc.ca> <http://www.afsc.ca <http://www.afsc.ca/> >
This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users