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

Explore ogr2ogr command line tool #19

Open
kzollove opened this issue Jul 1, 2023 · 2 comments
Open

Explore ogr2ogr command line tool #19

kzollove opened this issue Jul 1, 2023 · 2 comments

Comments

@kzollove
Copy link
Collaborator

kzollove commented Jul 1, 2023

Could this replace some R functionality? Where would this happen?

One potential entry point would be using ogr2ogr to load into postgis. The benefits of this would likely only be noticed with datasets that are never brought into R memory.

Currently, data is:

  1. downloaded to local machine
  2. imported to R
  3. transformed using geom_spec or attr_spec
  4. loaded to postgis with Rpostgis

If steps 2 and 3 could be changed (transformation happens using command line tools only), then data would never have to be loaded into R, potentially dramatically improving efficiency.

Consider trying to recreate a data source using sed, awk, and ogr2ogr for transformations. Is there a noticeable or valuable difference in load efficiency?

@kzollove
Copy link
Collaborator Author

kzollove commented Jul 1, 2023

ogr2ogr has option -sql allowing user to execute sql on file: https://gdal.org/programs/ogr2ogr.html#cmdoption-ogr2ogr-sql

@kzollove
Copy link
Collaborator Author

This could be a good option for replacing the current *_specs @rtmill

@kzollove kzollove transferred this issue from OHDSI/GIS Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 💡 Idea
Development

No branches or pull requests

1 participant