[mapserver-users] WFS namespace URI problem

Balázs Bámer bamerbalazs at gmail.com
Sun Dec 13 11:07:27 PST 2009


Hi All,

I try to serve WFS from Oracle Spatial data source under Mapserver
5.4.2 WMS runs fine, WFS compilation requirements are fulfilled:
./configure --with-oci
--with-oraclespatial=/usr/local/instantclient_11_1  --with-proj
--with-threads --with-gdal --with-ogr  --with-jpeg --with-png=/usr/lib
--with-php=/usr/include/php5 --with-wmsclient --with-wfsclient
--with-fastcgi=/usr --with-wfs

The following GetFeature request complains about namespace URI problems:
http://att-it.homelinux.net:22080/cgi-bin/ms-5.4.2/blokknez.fcgi?service=wfs&version=1.0.0&request=getfeature&maxfeatures=1&typename=blokknezegeto:blokk2009
or
http://att-it.homelinux.net:22080/cgi-bin/ms-5.4.2/blokknez.fcgi?service=wfs&version=1.0.0&request=getfeature&maxfeatures=1&typename=blokk2009

What is the problem?
Thank you in advance, best regards: Balázs Bámer

Here is the interesting part (three other layers cut) of my mapfile:

MAP

NAME BLOKKNEZ
STATUS ON
SIZE 650 500
# xmin ymin xmax ymax?
EXTENT 420000 40000 950000 370000
UNITS METERS
PROJECTION
  "init=epsg:23700"
END
SHAPEPATH "."
IMAGECOLOR 200 200 200
IMAGETYPE JPEG
FONTSET fonts.txt
DEBUG 5
#CONFIG "MS_ERRORFILE" "/var/log/mapserver-5.4.2/error.txt"
CONFIG "ON_MISSING_DATA" "LOG"

WEB
  MINSCALEDENOM 10000
  MAXSCALEDENOM 1000000
  IMAGEPATH "/tmp"
  IMAGEURL "/tmp"
  LOG "/var/log/mapserver-5.4.2/ms_error.txt"
  METADATA
    "wms_title" "Blokkhatar nezegeto"
    "wfs_title" "Blokkhatar nezegeto"
    "wms_onlineresource"
"http://att-it.homelinux.net:22080/cgi-bin/ms-5.4.2/blokknez.fcgi?"
    "wfs_onlineresource"
"http://att-it.homelinux.net:22080/cgi-bin/ms-5.4.2/blokknez.fcgi?"
    "wms_srs" "EPSG:23700"
    "wfs_srs" "EPSG:23700"
  END
END

OUTPUTFORMAT
  NAME png32
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGBA
  EXTENSION "png"
END

LAYER
  PROCESSING "CLOSE_CONNECTION=DEFER"
  NAME blokk2009
  METADATA
    "DESCRIPTION" "blokk2009"
    "wms_title" "blokk2009"
    "wfs_title" "blokk2009"
    "wfs_include_items" "all"
    "gml_include_items" "all"
    "gml_featureid" "tfotvbaz"
    "wfs_extent" '426400 43800 937400 362900'
    "wfs_featureid" "tfotvbaz"
    "wfs_maxfeatures" '1000'
    "wfs_encoding" 'UTF-8'
    "wfs_namespace_prefix" 'blokknezegeto'
    "wfs_namespace_uri" 'http://att-it.homelinux.net/blokknezegeto/blokk2009'
  END
  PROJECTION
    "init=epsg:23700"
  END
  TYPE POLYGON
  MINSCALEDENOM 999
  MAXSCALEDENOM 200001
  STATUS ON
  CONNECTIONTYPE oraclespatial
  CONNECTION "blokkhatar/bh2357WETU@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.8.52)(PORT=1521)))(CONNECT_DATA=(SID=oragis)))"
  DATA "bgeom from (SELECT bgeom,bloaz,bpter/10000.0 as
bpterha,tfotvbaz FROM tfotvb where tolda =
to_Date('20090303','YYYYMMDD')) using unique tfotvbaz SRID 23700"
  CLASS
    NAME "blokk2009"
    STYLE
      OUTLINECOLOR 55 55 255
    END
  END
  DUMP TRUE
  TEMPLATE "template.html"
  DEBUG 5
END # layer blokk2009

END # Map File



More information about the MapServer-users mailing list