Hi, Hi,
I try to load some data to MapServer (and display them as WMS) from WFS 1.1.0 server (also MapServer-based). >From various reasons, I defined the WFS layer as OGR layer type, with connection set to WFS definition file: LAYER CONNECTION "wfs.wfs" CONNECTIONTYPE OGR DATA "line" #EXTENT 12.735342 48.152419 17.141855 51.38089 METADATA "ows_abstract" "My abstract" "wfs_typename" "line" "wfs_version" "1.1.0" "wms_title" "Line" END # METADATA NAME "line" PROJECTION "+init=epsg:4326" END # PROJECTION STATUS ON TEMPLATE "foo" TILEITEM "location" TYPE LINE UNITS METERS CLASS STYLE ANGLE 0 COLOR 238 153 0 OFFSET 0 0 OUTLINECOLOR 134 81 0 SIZE 5 WIDTH 5 END # STYLE END # CLASS END # LAYER (wfs.wfs should be attached to this e-mail). When I try to display the data (using shp2img or standard WMS request), nothing is displayed, because of MapServer->OGR asks the WFS server with following request: http://localhost/cgi-bin/ows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=line&FILTER=<Filter xmlns:gml="http://www.opengis.net/gml"><BBOX><PropertyName>msGeometry</PropertyName><gml:Box><gml:coordinates>48.7275012197312094,12.9295317871890720 51.1769623652315175,18.1965700336475784</gml:coordinates></gml:Box></BBOX></Filter> This is WRONG because of the axes are inverted, the filter *should* look like 12.9295317871890720,48.7275012197312094 18.1965700336475784,51.1769623652315175 Then it works. My question is, where can/should I influence this behaviour? I tried several options in PROJECTION section of the MapFile (+axis=neu, ...) but nothing made the OGR driver to change the axes order. So it seems, that MapServer is creating the WFS 1.0.0 style filters with Easting-Northing also when the connection is defined as WFS 1.1.0 and gml Box is used in the filter, but Box does not exist in GML3 and Envelope should be used instead. (according to http://lists.osgeo.org/pipermail/gdal-dev/2011-June/029029.html) With WFS 1.0.0 it works perfectly (axes are in EAST-NORTH order). What to do, so that mapserver reades WFS 1.1.0 via OGR properly? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
wfs.wfs
Description: Binary data
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users