[gdal-dev] wfs 1.1.0 via mapserver and ogr

Jachym Cepicky jachym.cepicky at gmail.com
Fri Jun 10 20:40:07 EDT 2011


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

-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wfs.wfs
Type: application/octet-stream
Size: 9061 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110611/a774f049/wfs.obj


More information about the gdal-dev mailing list