Shapefile downloads #183433
Replies: 2 comments
-
|
Common Causes & Fixes
💻 Recommended Code (Using sf) //Use the full path with forward slashes //Visualize to check |
Beta Was this translation helpful? Give feedback.
-
|
This usually happens because a shapefile is made up of multiple files, not just one. All of them need to be extracted from the zip and kept together in the same folder, otherwise R won’t be able to read it. Also double-check the file path you’re using. Small typos or pointing to the wrong directory can trigger these errors. For loading the data, sf::st_read() is the most reliable option. If it still fails, try opening the shapefile in QGIS. If it doesn’t open there either, the file is probably corrupted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
When I try to upload a shapefile for visualizations on r, I always get an error saying that the file doesn't exit or The source could be corrupt or not supported. What do i do?
Beta Was this translation helpful? Give feedback.
All reactions