Re: [mapserver-users] WFS returning empty features
List, Thanks to Bart van den Eijnden the problem is solved. I used a using unique clause on a column which was unique, but not integer. So I now create my postgis tables with a CREAT TABLE WITH OIDS and I use a using unique oid clause in the DATA statement. As often, details do matter. Thanks for all the responses and efforts. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
I compared your not working mapfile with one i'm using that is working. Some suggestions: - add in you map/web/metadata a wfs_extent - add a EXTENT to your layer Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 16:29:24 +0200 Subject: Re: [mapserver-users] WFS returning empty features List, To help on debugging I've forced an error in the postgis connection te see the actual query. This is: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from NL.IMRO.0026.SVBBU-0001x WHERE (geoidn='geoidNL.IMRO.0026.SVBBU-0001') and (tc_vlak_geometry setSRID( 'BOX3D(140016 460631,166758 490080)'::BOX3D,28992) )' I've also got rid off all destracting details so I've ended up with the mapfile on the end of this message. MArco MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 140016 460631 166758 490080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001-test.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001-test.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak PROJECTION init=epsg:28992 END METADATA ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items geoidn,idealisatie #gml_featureid geoidn wfs_featureidgeoidn wfs_extent140016 460631 166758 490080 END STATUS on TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS returning empty features
Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Roy, Jukka, List, I've tried adding extents to each layer: no succes I've gml_include_items all gml_featureid geoidn in the layer metadata MArco Here is a snippet of the mapfile: MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 155016 467631 156758 470080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak GROUP geoidNL.IMRO.0026.SVBBU-0001 PROJECTION init=epsg:28992 END EXTENT 155016 467631 156758 470080 METADATA ows_group_title geoidNL.IMRO.0026.SVBBU-0001 ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items all gml_featureid geoidn END STATUS off TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' OPACITY 30 TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END Rahkonen Jukka schreef: Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Bart, Thanks, Tried to widen that. No luck .. Is the request ok (i try in the browser)? : http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.mapSERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTYPENAME=geoidNL.IMRO.0026.SVBBU-0001_vlak it returns: wfs:FeatureCollection 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://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.mapSERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENAME=geoidNL.IMRO.0026.SVBBU-0001_vlakOUTPUTFORMAT=XMLSCHEMA; gml:boundedBy gml:Box srsName=EPSG:28992 gml:coordinates 155065.29,467655.922000 156442.422000,470040.75 /gml:coordinates /gml:Box /gml:boundedBy /wfs:FeatureCollection On closer inspection uDig does something strange. On zoom to layer it zooms to the wrong area (but shows no features there either). MArco bart...@osgis.nl schreef: Try and widen your MAP-EXTENT. Best regards, Bart Roy, Jukka, List, I've tried adding extents to each layer: no succes I've gml_include_items all gml_featureid geoidn in the layer metadata MArco Here is a snippet of the mapfile: MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 155016 467631 156758 470080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak GROUP geoidNL.IMRO.0026.SVBBU-0001 PROJECTION init=epsg:28992 END EXTENT 155016 467631 156758 470080 METADATA ows_group_title geoidNL.IMRO.0026.SVBBU-0001 ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items all gml_featureid geoidn END STATUS off TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' OPACITY 30 TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END Rahkonen Jukka schreef: Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Hmm, running out of ideas :-) What if you remove your FILTER tag or add brackets to it? FILTER (geoidn='geoidNL.IMRO.0026.SVBBU-0001') Best regards, Bart Bart, Thanks, Tried to widen that. No luck .. Is the request ok (i try in the browser)? : http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.mapSERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTYPENAME=geoidNL.IMRO.0026.SVBBU-0001_vlak it returns: wfs:FeatureCollection 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://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.mapSERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENAME=geoidNL.IMRO.0026.SVBBU-0001_vlakOUTPUTFORMAT=XMLSCHEMA; gml:boundedBy gml:Box srsName=EPSG:28992 gml:coordinates 155065.29,467655.922000 156442.422000,470040.75 /gml:coordinates /gml:Box /gml:boundedBy /wfs:FeatureCollection On closer inspection uDig does something strange. On zoom to layer it zooms to the wrong area (but shows no features there either). MArco bart...@osgis.nl schreef: Try and widen your MAP-EXTENT. Best regards, Bart Roy, Jukka, List, I've tried adding extents to each layer: no succes I've gml_include_items all gml_featureid geoidn in the layer metadata MArco Here is a snippet of the mapfile: MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 155016 467631 156758 470080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak GROUP geoidNL.IMRO.0026.SVBBU-0001 PROJECTION init=epsg:28992 END EXTENT 155016 467631 156758 470080 METADATA ows_group_title geoidNL.IMRO.0026.SVBBU-0001 ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items all gml_featureid geoidn END STATUS off TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' OPACITY 30 TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END Rahkonen Jukka schreef: Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Try and widen your MAP-EXTENT. Best regards, Bart Roy, Jukka, List, I've tried adding extents to each layer: no succes I've gml_include_items all gml_featureid geoidn in the layer metadata MArco Here is a snippet of the mapfile: MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 155016 467631 156758 470080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak GROUP geoidNL.IMRO.0026.SVBBU-0001 PROJECTION init=epsg:28992 END EXTENT 155016 467631 156758 470080 METADATA ows_group_title geoidNL.IMRO.0026.SVBBU-0001 ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items all gml_featureid geoidn END STATUS off TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' OPACITY 30 TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END Rahkonen Jukka schreef: Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Do as Roy says. Calculate (with a postgis query) the extent of ALL the features for the given layer. Use this extent to set the wms_extent (do not know if I name it correctly, no access to my development machine at this moment). This will help mapserver find objects. What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Milo van der Linden a href=http://somafm.com/;img src=http://somafm.com/linktous/450x25sfm1.gif; alt=SomaFM border=0 width=450 height=25 /a ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Mlinden, Thanks, did set the wfs_extent as I expected you to have suggested that . No succes. Widened als Bart suggested, No succes. It's doing something as the bounding box changes. MArco mlin...@zeelandnet.nl schreef: Do as Roy says. Calculate (with a postgis query) the extent of ALL the features for the given layer. Use this extent to set the wms_extent (do not know if I name it correctly, no access to my development machine at this moment). This will help mapserver find objects. What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Milo van der Linden a href=http://somafm.com/;img src=http://somafm.com/linktous/450x25sfm1.gif; alt=SomaFM border=0 width=450 height=25 /a ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
Guillaume, Tried that. I did a selection on the columns. No features, but stranger still, uDig sees all the columns. That shouldn't be possible. Might there be a problem with the grouping of the layers which is somehow connected. In the WMS the layers get grouped as specified, in the WFS they don't. MArco Guillaume Sueur schreef: Hi, Just an idea cause your layer looks ok : try to specify your columns names in the gml_include_items thing. and check it out hope it helps Guillaume DeDuikertjes a écrit : Roy, Jukka, List, I've tried adding extents to each layer: no succes I've gml_include_items all gml_featureid geoidn in the layer metadata MArco Here is a snippet of the mapfile: MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 155016 467631 156758 470080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak GROUP geoidNL.IMRO.0026.SVBBU-0001 PROJECTION init=epsg:28992 END EXTENT 155016 467631 156758 470080 METADATA ows_group_title geoidNL.IMRO.0026.SVBBU-0001 ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items all gml_featureid geoidn END STATUS off TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' OPACITY 30 TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END Rahkonen Jukka schreef: Hi, Do you have something in gml_include_items in the layer metadata? -Jukka Rahkonen- DeDuikertjes wrote: Roy, List, i'm using MapServer version 5.1-dev I've set the map extent. I did not set layer extents. Is that necessary? MArco Roy Braam schreef: What version of mapserver are you using? Have you set the map extent and layer extents? Roy _ From: DeDuikertjes [mailto:deduikert...@xs4all.nl] To: mapserver-users@lists.osgeo.org Sent: Wed, 24 Jun 2009 15:12:29 +0200 Subject: [mapserver-users] WFS returning empty features Dear List, I've mapserver all set up. The mapfile is working and produces a nice and working WMS. The WFS is giving me troubles. It returns a valid capabilities document with no warnings A getfeature request returns GML, with the bounds defined, but otherwise with NO features. This for a layer which draws perfectly well in the WMS. uDig sees all colums (attributes) of the layer, but every column is empty. I've not a clue what I am doing wrong. any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS returning empty features
List, To help on debugging I've forced an error in the postgis connection te see the actual query. This is: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from NL.IMRO.0026.SVBBU-0001x WHERE (geoidn='geoidNL.IMRO.0026.SVBBU-0001') and (tc_vlak_geometry setSRID( 'BOX3D(140016 460631,166758 490080)'::BOX3D,28992) )' I've also got rid off all destracting details so I've ended up with the mapfile on the end of this message. MArco MAP NAME NL.IMRO.0026.SVBBU-0001 IMAGETYPE png UNITS METERS EXTENT 140016 460631 166758 490080 PROJECTION init=epsg:28992 END WEB METADATA ows_title NL.IMRO.0026.SVBBU-0001 wms_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001-test.map; wfs_onlineresource http://tercera-go.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/80.101.100.35_check/NL.IMRO.0026.SVBBU-0001/wkt/NL.IMRO.0026.SVBBU-0001-test.map; wfs_srs EPSG:28992 wms_srs EPSG:28992 END END LAYER name geoidNL.IMRO.0026.SVBBU-0001_vlak PROJECTION init=epsg:28992 END METADATA ows_title geoidNL.IMRO.0026.SVBBU-0001_vlak gml_include_items geoidn,idealisatie #gml_featureid geoidn wfs_featureidgeoidn wfs_extent140016 460631 166758 490080 END STATUS on TYPE polygon DUMP true CONNECTIONTYPE postgis CONNECTION host=localhost user=tc_check dbname=80.101.100.35 DATA 'tc_vlak_geometry from NL.IMRO.0026.SVBBU-0001 using unique geoidn using srid=28992' FILTER geoidn='geoidNL.IMRO.0026.SVBBU-0001' TEMPLATE dummy.html CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users