Sieves GeoPackage Polygon geometries.
The purpose of this application is to prerefine the (MULTI)POLYGON geometries in a geopackage used for vector tiles by filtering out geometries (based on the given resolution) smaller than the pixels that are generated from the given vectoriles. By doing this specific artifacts/errors regarding the rendering of vector tiles can be omitted, and less data needs to be processed.
go build .
go run . -s=[source GPKG] -t=[target GPKG] -r=[resolution for filtering] \
-p=[pagesize for writing to target GPKG] -replace [t/f for replacing \
instead of removing (optional)]
go test ./... -covermode=atomic
docker build -t pdok/sieve .
docker run --rm --name sieve -v `pwd`/example:/example pdok/sieve ./sieve \
-s=./example/example.gpkg -t=./example/example-processed.gpkg -r=50001 -p=10
With the docker example above processing the example.gpkg would result in
the following.

Code is inspired by the PostGis Sieve function from Mapbox.
Content type
Image
Digest
sha256:38ffa5627…
Size
372.6 MB
Last updated
about 1 year ago
docker pull pdok/sieve