[mapserver-users] WFS gml:null

Milo van der Linden mlinden at zeelandnet.nl
Mon Feb 18 07:23:32 PST 2008


Thank you Bart for the response.

I tried BBOX'n my request.

I tried both:
-  SRS=epsg:4326&bbox=-180,-90,-180,-90
and
- -  SRS=epsg:28992&bbox=0,300000,300000,600000

But none of that did the trick..


Bart van den Eijnden (OSGIS) schreef:
> 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 <mlinden at zeelandnet.nl>
> Naar: mapserver-users <mapserver-users at lists.osgeo.org>
> 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&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&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=percelen&amp;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 '..mapdatardapercelen_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
>>  
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>     
>
>
>
>
>   




More information about the MapServer-users mailing list