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

Missing polygons when accessing ArcGIS REST service #24

Open
ajjdan opened this issue Jan 15, 2021 · 0 comments
Open

Missing polygons when accessing ArcGIS REST service #24

ajjdan opened this issue Jan 15, 2021 · 0 comments

Comments

@ajjdan
Copy link

ajjdan commented Jan 15, 2021

Hello and thanks for this nice package!
I wanted to use it to access a specific ArcGIS REST server to get a polygon shapefile: ArcGIS REST

The polygons present in this server can be seen in this map: Map of Polygons

I used this code to download the third layer in the FeatureServer. I runs without error.

url <-"https://services.arcgis.com/XG15cJAlne2vxtgt/ArcGIS/rest/services/CRC_Community_Layers_May_2017/FeatureServer/3" community_sf <- esri2sf(url, crs = 3857)

The resulting sf object has missing features. I exported it using the following code:
st_write(community_sf, paste0(path_to_files,"eligible_communities_2017_3"), driver = "ESRI Shapefile", append = FALSE )

And loaded it into QGIS in which I accessed the same layer trough that all the polygons were present. Any idea why this is happening?

communities

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

1 participant