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

etl_load for spatial data #55

Open
cZachJohnson opened this issue Sep 30, 2019 · 4 comments
Open

etl_load for spatial data #55

cZachJohnson opened this issue Sep 30, 2019 · 4 comments

Comments

@cZachJohnson
Copy link

cZachJohnson commented Sep 30, 2019

@beanumber have you applied this framework to spatial data? I noticed that the macleish uses spacial data but from my understanding it doesn't load the spatial data to the SQL database. I have made a few attempts to but I seem to run into an issue when it checks for csv.

@beanumber
Copy link
Owner

Correct, it does not work with spatial data. I think PostgreSQL supports spatial data, but I am not sure about the other implementations.

A way forward could certainly be to detect that the data is spatial in the transform phase, and then leverage any spatial support in dbplyr in the load phase.

@cZachJohnson
Copy link
Author

Okay so that would require writing both an etl_transform.package and the etl_load.package? I noticed there was a mention of templates for both of these, I was unable to find them when I ran the create_etl_package function? I appreciate the help and thank you for creating this package.

@beanumber
Copy link
Owner

Correct.

There is only a template for etl_extract() created by the function, because that is the only one that is always necessary. etl_transform.default() will move all CSVs from raw to load, and etl_load.default() will load all CSVs in load into eponymous tables in the database. If you need other behavior (which it sounds like you will), then you will have to write your own methods.

@cZachJohnson
Copy link
Author

Okay thank you for the help.

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

No branches or pull requests

2 participants