[Mapserver-users] WFS Question (empty output?)

Bernd Huber ThrorII at web.de
Tue Jan 27 07:05:42 PST 2004


Hello,

I am trying to build a WFS Service.
I am testing it by integrating it into a Client-Mapfile.
There is no Error Message, but the WFS Layer is not displayed.

A GML File is created in the temp-Directory:
(http___rockslide_cgi_bin_mapserv4_mapserv_exe_map_h__bhuber_www_wfs_serv1_map_SERVICE_WFS_VERSION_1_0_0_TYPENAME_flaechen_REQUEST_GetFeature_BBOX_3416131_016000_5460597_889890_3450017_016000_5487702_393890.tmp.gml)

<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns="http://www.ttt.org/myns"
   xmlns:myns="http://www.ttt.org/myns"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/wfs http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd/wfs/1.0.0/WFS-basic.xsd 
                       http://www.ttt.org/myns http://rockslide/cgi-bin/mapserv4/mapserv.exe?map=h:\bhuber\www\wfs_serv1.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=flaechen">
</wfs:FeatureCollection>


Any ideas how I get this to work properly?



(I am using the precompiled Win32-binaries of Mapserver 4.0)

The Mapfile of the WFS Server looks like this:

NAME Planung
EXTENT 3412053 5426930 3468373 5510792
UNITS METERS
SHAPEPATH "h:\bhuber\www\data"

WEB
  METADATA
      "wfs_title"                  "WMS Demo Regionalplan Rheinpfalz"
      "wfs_onlineresource"   "http://rockslide/cgi-bin/mapserv4/mapserv.exe?map=h:\bhuber\www\wfs_serv1.map"
      "wfs_srs"                   "EPSG:31467"
      "ows_schemas_location"      "http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd"
      "wfs_geometry_element_name" "flaechen"
  END
END


PROJECTION
"init=epsg:31467"
END


LAYER 
  #PROJECTION
  # "init=epsg:31467"
  #END
  METADATA
      "wfs_title"                  "Flaeche"
      "wfs_srs"                   "EPSG:31467"
  END

  DUMP true

  NAME "Regionsflaeche"
  DATA regionsflaeche
  STATUS default
  TYPE POLYGON

  CLASS
    COLOR 255 255 217
  END 
END

LAYER 
  #PROJECTION
  # "init=epsg:31467"
  #END
  METADATA
      "wfs_title"                  "Wald"
      "wfs_srs"                   "EPSG:31467"
  END
  
  DUMP true
  
  NAME "Wald"
  DATA wald
  STATUS default
  TYPE POLYGON
  CLASS
    NAME 'Wald'
    COLOR 220 250 204
  END 
END

END


---------------------------------------


Client-Mapfile:

[..]

LAYER
  NAME Hintergrund
  TYPE POLYGON
  STATUS default
  CONNECTIONTYPE WFS
  CONNECTION "http://rockslide/cgi-bin/mapserv4/mapserv.exe?map=h:\bhuber\www\wfs_serv1.map&SERVICE=WFS&VERSION=1.0.0&TYPENAME=flaechen"

  METADATA
    "wfs_connectiontimeout" "20"
    "wfs_latlonboundingbox" "7 48 9 50"
  END

  PROJECTION
    "init=epsg:31467"
  END

  CLASS
   COLOR 0 200 0
  END



______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php




More information about the MapServer-users mailing list