Created
December 2, 2016 14:06
-
-
Save adriantre/c06a039831cb0f71ca47ffb783d6e24e to your computer and use it in GitHub Desktop.
Klipp rundt trondheim
This file contains 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
delete from table where id not in | |
( | |
select id from table where ST_Contains( | |
ST_MakePolygon( | |
ST_GeomFromText('LINESTRING(10.4588 63.4419, 10.4588 63.4018, 10.3496 63.4018, 10.3496 63.4419, 10.4588 63.4419)',4326) | |
), | |
geometryfield | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment