@@ -369,6 +369,77 @@ few pointers:
369369- `Deegree`_ provides a WFS client.
370370
371371- `uDig`_ can add layers from WMS/WFS servers.
372+
373+ Test with an ogrinfo command
374+ ****************************
375+
376+ You can use GDAL's `WFS driver <https://gdal.org/en/stable/drivers/vector/wfs.html>`__
377+ and the `ogrinfo utility <https://gdal.org/en/stable/programs/ogrinfo.html>`__
378+ to analyze your WFS service.
379+
380+ For example, here is a command to examine the `continents` WFS layer:
381+
382+ ::
383+
384+ ogrinfo WFS:"https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities" continents
385+
386+ Which should return something like:
387+
388+ ::
389+
390+ INFO: Open of `WFS:https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities'
391+ using driver `WFS' successful.
392+ Metadata:
393+ TITLE=WFS Demo Server for MapServer
394+ ABSTRACT=This demonstration server showcases MapServer (www.mapserver.org) and its OGC support
395+ PROVIDER_NAME=GatewayGeo
396+
397+ Layer name: ms:continents
398+ Metadata:
399+ TITLE=World continents
400+ Geometry: Curve Polygon
401+ Feature Count: 27458
402+ Extent: (-180.000000, -90.000000) - (180.000000, 83.627419)
403+ Layer SRS WKT:
404+ GEOGCRS["WGS 84",
405+ ENSEMBLE["World Geodetic System 1984 ensemble",
406+ MEMBER["World Geodetic System 1984 (Transit)"],
407+ MEMBER["World Geodetic System 1984 (G730)"],
408+ MEMBER["World Geodetic System 1984 (G873)"],
409+ MEMBER["World Geodetic System 1984 (G1150)"],
410+ MEMBER["World Geodetic System 1984 (G1674)"],
411+ MEMBER["World Geodetic System 1984 (G1762)"],
412+ MEMBER["World Geodetic System 1984 (G2139)"],
413+ MEMBER["World Geodetic System 1984 (G2296)"],
414+ ELLIPSOID["WGS 84",6378137,298.257223563,
415+ LENGTHUNIT["metre",1]],
416+ ENSEMBLEACCURACY[2.0]],
417+ PRIMEM["Greenwich",0,
418+ ANGLEUNIT["degree",0.0174532925199433]],
419+ CS[ellipsoidal,2],
420+ AXIS["geodetic latitude (Lat)",north,
421+ ORDER[1],
422+ ANGLEUNIT["degree",0.0174532925199433]],
423+ AXIS["geodetic longitude (Lon)",east,
424+ ORDER[2],
425+ ANGLEUNIT["degree",0.0174532925199433]],
426+ USAGE[
427+ SCOPE["Horizontal component of 3D system."],
428+ AREA["World."],
429+ BBOX[-90,-180,90,180]],
430+ ID["EPSG",4326]]
431+ Data axis to CRS axis mapping: 2,1
432+ Supported SRS: EPSG:4326, EPSG:4269, EPSG:3978, EPSG:3857
433+ Geometry Column = geom
434+ gml_id: String (0.0) NOT NULL
435+ NA2DESC: String (0.0)
436+ NA3DESC: String (0.0)
437+
438+ .. TIP::
439+ If you notice "Geometry: Unknown (any)" in the ogrinfo response, you
440+ should set the "gml_geometries" and "gml_geom_type" properties in
441+ the LAYER.METADATA of your WFS server mapfile, as in the example
442+ mapfile above.
372443
373444Support for GET and POST Requests
374445*********************************
0 commit comments