What happens if you add a BBOX filter to your request? You probably need to
specify the coordinates in the SRS of your LAYER.

The BBOX filter defaults to the Map's Extent which could be why it's
returning 0 features since of the projection difference.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Milo van der Linden <[EMAIL PROTECTED]>
Naar: mapserver-users <[email protected]>
Onderwerp: [mapserver-users] WFS gml:null
Datum: 18/02/08 10:39

> 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&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=getFeature&amp;TYPENAME=percelen
> 
> it returns
> 
> &lt;?xml version='1.0' encoding=&quot;ISO-8859-1&quot; ?&gt;
> &lt;wfs:FeatureCollection
>    xmlns:ms=&quot;http://mapserver.gis.umn.edu/mapserver&quot;
>    xmlns:wfs=&quot;http://www.opengis.net/wfs&quot;
>    xmlns:gml=&quot;http://www.opengis.net/gml&quot;
>    xmlns:ogc=&quot;http://www.opengis.net/ogc&quot;
>    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
>    xsi:schemaLocation=&quot;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&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=percelen&amp;amp;OUTPUTFORMAT=XMLSCHEMA&quot;&gt;
>    &lt;gml:boundedBy&gt;
>       &lt;gml:null&gt;missing&lt;/gml:null&gt;
>    &lt;/gml:boundedBy&gt;
> &lt;/wfs:FeatureCollection&gt;
> 
> 
> 
> 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 '..mapdatardapercelen_laag_poly_merged.shp'
>     METADATA
>       &quot;ows_title&quot; &quot;percelen&quot;
>       &quot;ows_srs&quot; &quot;EPSG:28992&quot;
>       &quot;gml_featureid&quot; &quot;id&quot; ##REQUIRED
>       &quot;wms_feature_info_mime_type&quot;  &quot;text/html&quot;
>       &quot;ows_feature_info_mime_type&quot;  &quot;text/html&quot;
>     &quot;wms_include_items&quot; 
> &quot;NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA&quot;
>     &quot;gml_include_items&quot; 
> &quot;NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA&quot;
>     &quot;gml_NEWFIELD2_alias&quot; &quot;Kadastraleaanduiding&quot;
>     &quot;gml_NEWFIELD3_alias&quot; &quot;Adres&quot;
>     &quot;gml_NEWFIELD1_alias&quot; &quot;Eigenaar&quot;
>     &quot;gml_HECTARES_alias&quot; &quot;Oppervlakte(Ha)&quot;
>     &quot;gml_AREA_alias&quot; &quot;Oppervlakte(m)&quot;
>     &quot;gml_PERIMETER_alias&quot; &quot;Omtrek(m)&quot;
>     END
>     STATUS ON
>     #TRANSPARENCY 100
>     PROJECTION
>      &quot;init=epsg:28992&quot;
>     END
>     CLASS
>        NAME ''
>        STYLE
>          SYMBOL 0
>          SIZE 6
>          OUTLINECOLOR 180 208 208
>          #COLOR 180 208 208
>        END
>     END
>   END
>  
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to