Last active
September 11, 2023 16:18
-
-
Save akhenakh/bca03087bc593cea99c2e4d3a19aa8a1 to your computer and use it in GitHub Desktop.
DBeaver and Spatialite
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
-- load the extension (usually mod_spatialite) | |
select load_extension("/opt/homebrew/lib/mod_spatialite.dylib"); | |
-- display the current version to prove it's loaded | |
select spatialite_version(); | |
-- Transform the geometry to st_astext in your queries | |
select st_astext(GEOM) as geom from not_enabled_airspace; | |
-- or as binary | |
SELECT GLOBAL_ID, st_asbinary(GEOM) as geom from airspace; | |
-- Rigt click on one row -> View/Format -> Set "geom" transform -> Geometry |
Author
akhenakh
commented
Mar 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment