-
Notifications
You must be signed in to change notification settings - Fork 46
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
More options on get_eurostat_geospatial()
#189
Comments
Great - the easiest could be if you can make a Pull Request. Seems appropriate to me. |
The PR is ready now, you can check it here. I checked on appveyor (OK), however I got an error on travis:
So I just checked on a test branch removing I just want you to be aware, probably if you trigger now a fake build on this repo´s travis you'll likely to get the same message than I got. Let me know what you think, regards |
Great, thanks! I will wait until tomorrow to see if there are any comments before I merge. |
PR accepted so this issue can be closed. I am working on more contributions related with GISCO data, I'll better open new issues for better tracking. Many thanks to devs and maintainers |
Thanksss! |
Sorry to reopen this issue. I have spotted some soft improvements and fixes on this:
PR on the way, regards |
I love the capability of downloading shapes from GISCO, but there are a couple of features that I miss on the
get_eurostat_geospatial()
function:Currently, only
epsg=4326
is downloaded:eurostat/R/get_eurostat_geospatial.R
Line 170 in 6e10b30
It is fine since it can be projected but GISCO also distributes another projection (
3035
,3857
) that are more suitable. I suggest to add a new parameter to the function (sf
package usescrs
like onst_transform
) with a default value to4326
to ensure backwards compatibility.NUTS 2021 is already available in GISCO. I am not sure on this one since NUTS2021 hasn't been officially released, but since is available it might be a good idea to have the chance of working with it in advance.
eurostat/R/get_eurostat_geospatial.R
Lines 69 to 71 in 6e10b30
As an example, this line works fine just including
2021
as the year:eurostat/R/get_eurostat_geospatial.R
Line 160 in 6e10b30
http://ec.europa.eu/eurostat/cache/GISCO/distribution/v2/nuts/geojson/NUTS_RG_60M_2021_4326_LEVL_0.geojson
Both enhancements are quick to implement in my opinion (happy to help with them).
I have another suggestions regarding the accessibility to another GISCO data (countries, boundaries, labels, LAU, Urban Audits… see full GISCO API) but they would imply a deeper review of the source code, so I may open a specific issue on that.
Regards
The text was updated successfully, but these errors were encountered: