Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to set up a wms server using point data in a postgis (v 1.5.1, pgsql v 8.4) database and mapserver (v 1.5.1) (I know these are not the most current versions of anything, but my server is running debian stable, if neccesary, I'll upgrade them).

The data is a global data set, so the points are stored in lat/lon as postgis geography data type. I manage to display the data (using either arcmap 10 or Qgis 1.8 or directly in a web server) in lat,lon, but I would like to be able to serve the data in other projections as well. I have tried to set up LAEA north pole (EPSG 3408) as well. In the GetCapabilities, I get a part like this:

<Layer>
    <Name>xxxx</Name> 
    <Title>yyyy</Title> 
    <Abstract>zzzz</Abstract> 
    <CRS>EPSG:4326</CRS> 
    <CRS>EPSG:3408</CRS> 
    <EX_GeographicBoundingBox>
       <westBoundLongitude>-50</westBoundLongitude> 
       <eastBoundLongitude>90</eastBoundLongitude> 
       <southBoundLatitude>-50</southBoundLatitude> 
       <northBoundLatitude>90</northBoundLatitude> 
    </EX_GeographicBoundingBox>
    <BoundingBox CRS="EPSG:4326" minx="-50" miny="-50" maxx="90" maxy="90" /> 
</Layer>

I.e my two projections are listed, but I only get the bounding box for the original projection. SHould I also get the other one?

As far as I can see from the instructions I can find, I just need to list the projections I want to use in wms_srs in the METADATA section - in the layer, in the MAP or both places (I've put it both places, but I've also tried it in just the layer or MAP, with the same result)

share|improve this question
    
What specific mapserver product are you trying to configure? This doesn't look like a mapfile from the OSGEO MapServer project. –  DavidF Oct 12 '12 at 2:30
    
What is shown is a part of what is returned from a GetCapabilities query - not the mapfile... –  MortenSickel Oct 23 '12 at 8:29
    
It is still not clear to me what 'MapServer' product you are using. I am assuming that you have a typo above and that you are running MapServer 6.x, not 1.5.1. Correct? –  DavidF Oct 23 '12 at 17:17
    
I am using the OSgeo mapserver (mapserver.org) and, of cource the version number was a typo, sorry for that. I am using v 5.6.7 –  MortenSickel Oct 24 '12 at 7:16
add comment

1 Answer

According to the OGC WMS Spec, which I won't quote directly for fear of violating the license agreement...

In a WMS getCapabilities: - each shall have at least one - if a layer supports on-the-fly transormation to multiple CRS, the server implementation does not need to provide a element for CRS beyond the CRS of the original. I don't know if you can configure MapServer to explicitly advertise all potential .

OGC WMS Spec

You state that you want to serve the data in multiple CRS, but you don't say if it works or not. According to the WMS Spec, there is nothing wrong with your getCapabilities. Have you tried a getMap request to see what the data looks like? That would be the real test.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.