Closed macrouch closed 2 years ago
This is failing because the shapefile components (e.g. shx
, shp
, dbf
, etc) files exist in a directory within the ZIP file and not at the root.
glims_download_01774/
glims_download_01774/glims_polygons.shx
glims_download_01774/glims_polygons.shp
glims_download_01774/CITATIONS.txt
glims_download_01774/.DS_Store
glims_download_01774/glims_polygons.dbf
glims_download_01774/glims_polygons.prj
glims_download_01774/README.txt
For ogr2ogr
to understand the file type, it needs it to be at the root:
README.txt
glims_polygons.prj
glims_polygons.dbf
CITATIONS.txt
glims_polygons.shp
glims_polygons.shx
If you've noticed a change, you are correct. Before we were trying to guess where the shapefile may be inside the ZIP but now we rely solely on how the ogr2ogr
finds it. Below is a working version of the ZIP I recompressed without the directory.
@wavded ah ok, thanks for explaining that! Tried your updated shapefile and it works as expected
When trying to convert previously working .zip files (with either api /convert or website) I am getting this error:
Attached is the shapefile I attempted to convert ATL06_shapefile_Barnes_ice_cap.zip