[mapserver-users] WFS gml:null

Milo van der Linden mlinden at zeelandnet.nl
Mon Feb 18 04:38:29 PST 2008


Hello list!

I have been surfing the list all morning looking for a solution on why 
my mapserver is returning a gml:null.

Couldn't find any documentation.

The problem:

I do a WFS request on a mapfile that contains a esri shapefile. The 
layer I request has a different SRS than the main map.

http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen

it returns

<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:ogc="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
                       http://mapserver.gis.umn.edu/mapserver http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=percelen&OUTPUTFORMAT=XMLSCHEMA">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>



Here is my layer definition.

The problem is whatever I do, whether I set wfs_extent or not, it keeps 
returning gml:null

LAYER
    NAME 'percelen'
    TYPE POLYGON
    DEBUG ON
    TOLERANCE 1
    DUMP TRUE
    TEMPLATE 'ttt'
    DATA '..\mapdata\rda\percelen_laag_poly_merged.shp'
    METADATA
      "ows_title" "percelen"
      "ows_srs" "EPSG:28992"
      "gml_featureid" "id" ##REQUIRED
      "wms_feature_info_mime_type"  "text/html"
      "ows_feature_info_mime_type"  "text/html"
    "wms_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"
    "gml_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"
    "gml_NEWFIELD2_alias" "Kadastraleaanduiding"
    "gml_NEWFIELD3_alias" "Adres"
    "gml_NEWFIELD1_alias" "Eigenaar"
    "gml_HECTARES_alias" "Oppervlakte(Ha)"
    "gml_AREA_alias" "Oppervlakte(m)"
    "gml_PERIMETER_alias" "Omtrek(m)"
    END
    STATUS ON
    #TRANSPARENCY 100
    PROJECTION
     "init=epsg:28992"
    END
    CLASS
       NAME ''
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 180 208 208
         #COLOR 180 208 208
       END
    END
  END
 



More information about the MapServer-users mailing list