[mapserver-dev] WFS 1.1 axis order

Yves Jacolin yves.jacolin at camptocamp.com
Wed Dec 7 06:17:44 EST 2011


@Thomas: my apologies for the 1 Mo email sent before. :/

Hello,

here some information:

* I am using MapServer 6.0.1:
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE

* data is available if needed (800 ko in tar.gz)
* MapFile that doesn't work : mapfile_notworking.map
* MapFile which is working: mapfile_working.map

Diff is:

14c14                                                                                                                                                                                                                                                                          
<       "wfs_srs" "EPSG:4326 EPSG:27572"                                                                                                                                                                                                                                       
---
>       "wfs_srs" "EPSG:27572 EPSG:4326"
41c41
<         "init=epsg:4326"
---
>         "init=epsg:27572"

If I define "init=epsg:27572" to the POI layer (which is wrong) and switch epsg 
code for wfs_srs parameter I get the correct data.

If I change only the value of wfs_srs from mapfile_notworking.map nothing is 
working. 

If I change only the layer projection from mapfile_notworking.map I get strange 
data (a kind of grid of point).

Hope it helps.

Thanks,

Y.


Le vendredi 25 novembre 2011 14:52:12, thomas bonfort a écrit :
> Yves,
> please post both mapfiles, and state which mapserver version(s) you are
> using.
> 
> --
> thomas
> 
> On Fri, Nov 25, 2011 at 14:36, Yves Jacolin <yves.jacolin at camptocamp.com> 
wrote:
> > Hello,
> > 
> > It seems I have an issue with "WFS 1.1 axis order". If I try with a
> > mapfile (let's call it mapfile1) this command line:
> > host?version=1.1.0&SERVICE=WFS&REQUEST=GetFeature&BBOX=-65,-33,59,63&TYPE
> > NAME=layername
> > host?version=1.0.0&SERVICE=WFS&REQUEST=GetFeature&BBOX=-65,-33,59,63&TYP
> > ENAME=layername
> > 
> > I get two gml files with x,y coordinates fliped (hope this is the good
> > word). For 1.0.0 I get lat,lon for 1.1.0 I get y,x.
> > 
> > If I try with anoter mapfile (let's call it mapfile2 with different
> > layer) I don't get this behaviour.
> > 
> > I read the migration guide carefully but I don't find any idea the
> > difference between this two mapfile.
> > 
> > Thanks,
> > 
> > Y.
> > --
> > Responsable Formation et Support
> > Camptocamp France SAS
> > Savoie Technolac, BP 352
> > 73377 Le Bourget du Lac, Cedex
> > 
> > Tel (France) : +33 4 79 26 57 98
> > Tel (Suisse) : +41 21 619 1031
> > Mob. : +33 6 18 75 42 21
> > Fax : 04 79 70 15 81
> > Mail : yves.jacolin at camptocamp.com
> > http://www.camptocamp.com
> > _______________________________________________
> > mapserver-dev mailing list
> > mapserver-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-dev

-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : +41 21 619 1031
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
MAP 
  NAME WFS_server
  STATUS ON 
  EXTENT -180 -90 180 90    
  UNITS DD
      
  WEB  
    # IMAGEPATH et IMAGEURL servent pour les SLD (IMAGEURL apparement ne sert à rien, pointe sur IMAGEPATH)
    IMAGEPATH "/var/www/client-maintenance2010/htdocs/yjacolin/client/debug_client.log"
    IMAGEURL "http://monhost.camptocamp.com/cgi-bin/wmstest2?"
    METADATA
      "wfs_title" "client WFS"
      "wfs_onlineresource" "http://monhost.camptocamp.com/cgi-bin/wmstest2?"
      "wfs_srs" "EPSG:4326 EPSG:27572"
      "ows_enable_request" "*"
      "wfs_formats" "GML"
    END
  END
    
  PROJECTION
    "init=epsg:4326"
  END
  
  OUTPUTFORMAT
    NAME "OGRGML"
    DRIVER "OGR/GML"
    FORMATOPTION "STORAGE=filesystem"
    FORMATOPTION "FORM=multipart"
    FORMATOPTION "FILENAME=result.gml"
  END
  
  LAYER
      NAME "poi"
      TYPE POINT
      EXTENT -180 -90 180 90
      STATUS OFF
      DUMP TRUE ## REQUIRED
      DATA points_4326
  
      PROJECTION
        "init=epsg:4326"
      END
    
      METADATA
          "wfs_title" "poi" ## REQUIRED
          "wfs_name" "poi" 
          "wfs_srs" "EPSG:4326"
          "gml_featureid"     "osm_id"
          "gml_include_items" "all"
      END
  END
END
-------------- next part --------------
MAP
  NAME WFS_server
  STATUS ON
  EXTENT -180 -90 180 90
  UNITS DD

  WEB
    # IMAGEPATH et IMAGEURL servent pour les SLD (IMAGEURL apparement ne sert à rien, pointe sur IMAGEPATH)
    IMAGEPATH "/var/www/client-maintenance2010/htdocs/yjacolin/client/debug_client.log"
    IMAGEURL "http://monhost.camptocamp.com/cgi-bin/wmstest2?"
    METADATA
      "wfs_title" "client WFS"
      "wfs_onlineresource" "http://monhost.camptocamp.com/cgi-bin/wmstest2?"
      "wfs_srs" "EPSG:27572 EPSG:4326"
      "ows_enable_request" "*"
      "wfs_formats" "GML"
    END
  END

  PROJECTION
    "init=epsg:4326"
  END

  OUTPUTFORMAT
    NAME "OGRGML"
    DRIVER "OGR/GML"
    FORMATOPTION "STORAGE=filesystem"
    FORMATOPTION "FORM=multipart"
    FORMATOPTION "FILENAME=result.gml"
  END

  LAYER
      NAME "poi"
      TYPE POINT
      EXTENT -180 -90 180 90
      STATUS OFF
      DUMP TRUE ## REQUIRED
      DATA points_4326

      PROJECTION
        "init=epsg:27572"
      END

      METADATA
          "wfs_title" "poi" ## REQUIRED
          "wfs_name" "poi"
          "wfs_srs" "EPSG:4326"
          "gml_featureid"     "osm_id"
          "gml_include_items" "all"
      END
  END
END


More information about the mapserver-dev mailing list