An open API service indexing awesome lists of open source software.

https://github.com/bertt/wfsdump

CLI tool dumps WFS data to PostGIS table
https://github.com/bertt/wfsdump

Last synced: 5 months ago
JSON representation

CLI tool dumps WFS data to PostGIS table

Awesome Lists containing this project

README

          

# wfsdump

## Usage

![image](https://github.com/user-attachments/assets/09ebd759-519d-425c-bc20-141c2af47212)

```
Description:
CLI tool for dump WFS data to PostGIS table

Usage:
wfsdump [options]

Arguments:
WFS service
WFS layer name

Options:
-?, -h, --help Show help and usage information
--version Show version information
--connection Connection string [default: Host=localhost;Username=postgres;Password=postgres;Database=postgres]
--output output table [default: public.wfs_dump]
--columns output columns geometry,attributes (csv) [default: geom,attributes]
--jobs Number of parallel jobs [default: 2]
--bbox bbox (space separated) [default: -179|-85|179|85]
--z Tile Z [default: 14]
--epsg EPSG [default: 4326]
```

Create output table sample:

```
CREATE TABLE public.wfs_dump (
geom GEOMETRY,
attributes jsonb
);
```

## XYZ Tiling

The WFS is requested using XYZ tiles. The list of tiles is generated from the bbox parameter (default: -179|-85|179|85 in EPSG:4326) and the Z level (default 14).

See for XYZ tiles visualisation https://docs.maptiler.com/google-maps-coordinates-tile-bounds-projection/

See for bbox definition http://bboxfinder.com/

## Projections

By default, EPSG code 4326 is used for requesting the WFS and storing the geometries.

If another EPSG code is specified, the EPSG code is used to request the WFS service (for the bounding box and output SRSNAME) and store
the geometries.

Note: The bbox should always be defined in EPSG:4326.

## GUI tool

See project wfs.ui for functional cross platform GUI application.

image

## Sample

```
./wfsdump https://ahocevar.com/geoserver/wfs ne:ne_10m_admin_0_countries --z 1 --jobs 1
```

Other WFS services are not tested (yet)

## Releases

See https://github.com/bertt/wfsdump/tags for releases, zipped executables are available for Linux/Windows/Mac

## History

25-08-28: Release 0.2 alpha 16, adding EPSG output code

25-03-13: Release 0.2, adding error handling

25-03-12: Initial version 0.1