Skip to content

A extractor for DataGrip to export geojson file by sql query directly.

License

Notifications You must be signed in to change notification settings

wandergis/DataGrip-GeoJSON-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DataGrip-GeoJSON-extractor

A extractor for DataGrip to export geojson file by sql query directly.

SELECT row_to_json(fc)
FROM (SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features
      FROM (SELECT 'Feature'                      As type
                 , ST_AsGeoJSON(lg.geom, 4)::json As geometry
                 , row_to_json((SELECT l
                                FROM (SELECT loc_id, loc_name) As l
          ))                                      As properties
            FROM locations As lg) As f) As fc;

About

A extractor for DataGrip to export geojson file by sql query directly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages