|
11 | 11 | :Contact: jmckenna at gatewaygeomatics.com |
12 | 12 | :Author: Even Rouault |
13 | 13 | :Contact: even.rouault at mines-paris.org |
14 | | -:Last Updated: 2025-04-14 |
| 14 | +:Last Updated: 2025-11-09 |
15 | 15 |
|
16 | 16 | .. contents:: |
17 | 17 | :depth: 2 |
@@ -213,6 +213,8 @@ the comments for the required parameters. |
213 | 213 | "gml_include_items" "all" ## Optional (serves all attributes for layer) |
214 | 214 | "gml_featureid" "ID" ## REQUIRED |
215 | 215 | "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) |
216 | 218 | "wfs_enable_request" "*" |
217 | 219 | "wfs_use_default_extent_for_getfeature" "false" ## Optional (improves performance of OGR layers) |
218 | 220 | END |
@@ -369,6 +371,71 @@ few pointers: |
369 | 371 | - `Deegree`_ provides a WFS client. |
370 | 372 |
|
371 | 373 | - `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) |
372 | 439 |
|
373 | 440 | Support for GET and POST Requests |
374 | 441 | ********************************* |
|
0 commit comments