Thanks Jukka for your help
I wasn't asking a specific question but a general question. To make it short,
my real question was that "Does mapserver performs reliably in providing WFS
server so that we can rely on GML responses of WFS server?"
To explain my situation, i'm using data from MS101 demo. I'm making a query
client-side to get features where "NA2DESC = 'Canada'", as you can see in
following link:
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=continents&MAXFEATURES=100&Filter=<Filter><PropertyIsEqualTo><PropertyName>NA2DESC</PropertyName><Literal>Canada</Literal></PropertyIsEqualTo></Filter>
When i perform the same query in ArcGIS, i get more than 5000 records selected.
But, when i use above link, i get 23 records in received GML (which is blow
100 threshold) [ i use QGIS for viewing GML]
This is my mapfile :
MAP
NAME "MS101"
EXTENT -180 -90 180 90 # Geographic
SIZE 800 400
IMAGECOLOR 128 128 255
SHAPEPATH '../data'
FONTSET '../fonts/fonts.list'
IMAGETYPE png24
OUTPUTFORMAT
NAME "OGRGML"
DRIVER "OGR/GML"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=multipart"
FORMATOPTION "FILENAME=result.gml"
END
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
wfs_title "WFS101"
wfs_onlineresource
"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/wfs.map&"
wfs_srs "EPSG:4326"
wfs_enable_request "*"
wfs_maxfeatures "100"
END
END
LAYER # World polygon classified by continents begins here
NAME continents
DATA 'shapefile/Countries_area'
STATUS on
TYPE POLYGON
PROJECTION
"init=epsg:4326"
END
METADATA
wfs_title "continents"
#wms_enable_request "*"
gml_include_items "all"
gml_featureid "ID"
#gml_geometries "geom"
#gml_geom_type "polygon"
END
CLASSITEM 'NA3DESC'
LABELITEM 'NA3DESC'
CLASS
NAME 'Africa'
EXPRESSION 'Africa'
STYLE
COLOR 255 128 128
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 12
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'Antarctica'
EXPRESSION /Antarctic./ #'Antarctic Area'
STYLE
COLOR 128 255 128
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'Asia'
EXPRESSION 'Asia'
STYLE
COLOR 0 0 255
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION auto
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'Oceania'
EXPRESSION /Australia*/ #'Australian Area'
STYLE
COLOR 255 255 128
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'Europe'
EXPRESSION 'Europe'
STYLE
COLOR 255 128 255
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'North America'
EXPRESSION 'North America'
STYLE
COLOR 128 255 255
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
CLASS
NAME 'South America'
EXPRESSION 'South America'
STYLE
COLOR 255 192 96
END
LABEL
COLOR 64 64 64
OUTLINECOLOR 212 212 212
TYPE TRUETYPE
FONT vera_sans-bold-italic
SIZE 10
ANTIALIAS TRUE
POSITION CC
PARTIALS FALSE
MINDISTANCE 250
BUFFER 4
END
END
END # World polygon classified by continents ends here
Any help would be really appreciated.
Regards.
________________________________
From: Rahkonen Jukka <[email protected]>
To: 'Saka Royban' <[email protected]>; 'MapServer'
<[email protected]>
Sent: Monday, April 29, 2013 3:20 PM
Subject: Re: [mapserver-users] WFS in MapServer?
No, it may just be that your question is a bit hard to answer. Could you give
us a bit more information about your data, mapfile and WFS request you have
been using? Ogrinfo report about the datasource, layer definitions from the
mapfile and at least the extents from the map level are needed. A hand written
WFS url is most useful but if you can capture with Firebug or something what
Openlayers is really sending if will do as well. Set also DEBUG 5 and CONFIG
"CPL_DEBUG" "ON" into your layer setting in the mapfile and study what you get
into the ms_errorfile.
I do not believe that Mapserver WFS is 100% compliant but it may still be good
enough. Speed depends usually much more on how the data in the backend is
arranged than on the server.
Here you can get some OpenStreetMap poinst from a very weak server
http://hip.latuviitta.org/cgi-bin/ms_ows?service=wfs&version=1.0.0&request=getfeature&typename=osm_pisteet&maxfeatures=1000
and this will give you some areas
http://hip.latuviitta.org/cgi-bin/ms_ows?service=wfs&version=1.0.0&request=getfeature&typename=osm_alueet&maxfeatures=1000
There is also another member in the Mapserver family, TinyOWS, which has
cleared all the CITE tests for WFS and which can do also WFS-T. However, it
works only with PostGIS.
-Jukka Rahkonen-
Saka Royban wrote
Have i banned by mailing list users or admin?
________________________________
From:Saka Royban <[email protected]>
To: MapServer <[email protected]>
Sent: Saturday, April 27, 2013 5:46 PM
Subject: [mapserver-users] WFS in MapServer?
Hi all
As a newbie, i've got confused. I've set up a WFS server with mapserver and
then get some queries, Once by URL and another time by using OpenLayers. But
the result GML contains just part of data that it must. (I've set MaxFeatures
to 100 but GML contains less than 100 while there is more than 100 features in
compliance with my query)
Then i got to page 560 of mapserver documentation, which says some statistics
about WFS OGC test suites. So now, my question is that "Is MapServer doing
totally well in providing WFS? Is it in full compliance with OGC WFS
specification?" or we should not expectmuch from mapserver WFS server.
If not so, i'm looking for some real implementation of mapserver WMS and WFS to
see the speed and other things. Could u provide me some links?
Thanks in advance
_______________________________________________
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