Skip to content

Simplifying geometries while preserving coverage topology #293

Answered by Maxxen
nshiab asked this question in Q&A
Discussion options

You must be logged in to vote

No problem! This is basically equivalent to using the aggregate version though:

SELECT st_coveragesimplify_agg(geom, 0.5) from st_read('https://raw.githubusercontent.com/nshiab/simple-data-analysis/refs/heads/main/test/geodata/files/CanadianProvincesAndTerritories.json');

As far as what is faster... not sure. This avoids creating a LIST (with ARRAY_AGG) to hold the input geometries, so should be more efficient in that sense, at the same time it might keep more untracked memory alive longer.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@nshiab
Comment options

Comment options

You must be logged in to vote
5 replies
@Maxxen
Comment options

@nshiab
Comment options

@nshiab
Comment options

@Maxxen
Comment options

@nshiab
Comment options

Comment options

You must be logged in to vote
3 replies
@nshiab
Comment options

@Maxxen
Comment options

Answer selected by nshiab
@nshiab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants