Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all geometry into PostGIS #5

Open
ivangayton opened this issue Sep 22, 2022 · 1 comment
Open

Get all geometry into PostGIS #5

ivangayton opened this issue Sep 22, 2022 · 1 comment
Assignees

Comments

@ivangayton
Copy link
Owner

PostGIS is more powerful than pygdal (or at least simpler, but also more powerful in the sense that from PostGIS you can use gdal/ogr commands but not vice versa).

We have the database called fmtm with user fmtm, but now we need to get GeoJSON files into it, and manipulate them from Python.

@timlamec
Copy link
Collaborator

This is the simplest way to do it on the shell
ogr2ogr -f "PostgreSQL" PG:"dbname=fmtm user=fmtm" "file path"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants