Created
December 26, 2019 18:10
-
-
Save dbaston/f9fb0ba9dbb7d3abef9ad0a934bcff88 to your computer and use it in GitHub Desktop.
Natural Earth oceans 2163
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select st_difference(st_expand(st_envelope(geom), 100), geom) from | |
(select st_unaryunion(st_transform(st_union(geom), 2163)::geometry(geometry, 2163)) as geom from ne_50m_land) sq; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
unary union is needed to fix invalidity in Antarctica after transform:

This is the only polygon that becomes invalid on transformation (at 50m, at least)