Last active
October 25, 2021 17:17
-
-
Save bitner/9d1c877517aae598d686a5ded8892144 to your computer and use it in GitHub Desktop.
smallsats_items.sql
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 | |
jsonb_build_object( | |
'id', items.id, | |
'datetime', items.datetime, | |
'collection', items.collection, | |
'geometry', public.st_asgeojson(items.geometry)::jsonb, | |
'properties', items.properties, | |
'assets', items.assets, | |
'links', items.links | |
) AS content | |
FROM items; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment