[mapserver-users] WFS getfeature returns nothing if layer srs is 4326

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Sep 18 09:08:15 PDT 2014


I have a mapfile in srs 3857, using mapserv 6.1 (dev version)
In this mapfile I have 
2 layers with srs 4326
1 layer with 900913
1 layer with 32198

Since 6.0 we can have several srs in a WFS I think
All layers Data source is a postgis table


GetFeatures request don't work for the 2 layers in 4326. See The 
getCapabilities returns bad value for WGS84BoundingBox
- <FeatureType>
  <Name>cardiologie</Name> 
  <Title>cardiologie</Title> 
  <DefaultSRS>urn:ogc:def:crs:EPSG::3857</DefaultSRS> 
- <OutputFormats>
  <Format>text/xml; subtype=gml/3.1.1</Format> 
  </OutputFormats>
- <ows:WGS84BoundingBox dimensions="2">
  <ows:LowerCorner>-25000000 -25000000</ows:LowerCorner> 
  <ows:UpperCorner>25000000 25000000</ows:UpperCorner> 
  </ows:WGS84BoundingBox>
  </FeatureType>

Compares with a layer in 32198. See valid values for WGS84BoundingBox
  - <FeatureType>
  <Name>chsld</Name> 
  <Title>chsld</Title> 
  <DefaultSRS>urn:ogc:def:crs:EPSG::3857</DefaultSRS> 
- <OutputFormats>
  <Format>text/xml; subtype=gml/3.1.1</Format> 
  </OutputFormats>
- <ows:WGS84BoundingBox dimensions="2">
  <ows:LowerCorner>-178.714246078922 -66.3067843156478</ows:LowerCorner> 
  <ows:UpperCorner>179.855210132046 -35.1587587019759</ows:UpperCorner> 
  </ows:WGS84BoundingBox>
  </FeatureType>

I created a geometry column in 32198 for these 2 layers, and the 
everything work
Any idea on the issue here? Why coordinates are invalid when using 4326?
thank
steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140918/33c635dd/attachment.htm>


More information about the MapServer-users mailing list