Skip to content

Instantly share code, notes, and snippets.

@akhenakh
Last active September 11, 2023 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhenakh/bca03087bc593cea99c2e4d3a19aa8a1 to your computer and use it in GitHub Desktop.
Save akhenakh/bca03087bc593cea99c2e4d3a19aa8a1 to your computer and use it in GitHub Desktop.
DBeaver and Spatialite
-- 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
@akhenakh
Copy link
Author

akhenakh commented Mar 6, 2023

Screenshot 2023-03-06 at 3 58 59 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment