Skip to content

Commit 36e96e6

Browse files
committed
add ogrinfo test
1 parent d357301 commit 36e96e6

File tree

1 file changed

+68
-1
lines changed

1 file changed

+68
-1
lines changed

en/ogc/wfs_server.txt

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:Contact: jmckenna at gatewaygeomatics.com
1212
:Author: Even Rouault
1313
:Contact: even.rouault at mines-paris.org
14-
:Last Updated: 2025-04-14
14+
:Last Updated: 2025-11-09
1515

1616
.. contents::
1717
:depth: 2
@@ -213,6 +213,8 @@ the comments for the required parameters.
213213
"gml_include_items" "all" ## Optional (serves all attributes for layer)
214214
"gml_featureid" "ID" ## REQUIRED
215215
"gml_types" "auto" ## Optional (automatically populate the type for the attributes)
216+
"gml_geometries" "geom" ## Recommended (give new name for geometry elements)
217+
"gml_geom_type" "polygon" ## Recommended (specify the geometry type for the layer)
216218
"wfs_enable_request" "*"
217219
"wfs_use_default_extent_for_getfeature" "false" ## Optional (improves performance of OGR layers)
218220
END
@@ -369,6 +371,71 @@ few pointers:
369371
- `Deegree`_ provides a WFS client.
370372

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

373440
Support for GET and POST Requests
374441
*********************************

0 commit comments

Comments
 (0)