esturdivant-usgs / science-base-automation

Automating large USGS ScienceBase data releases
4 stars 2 forks source link

CSVs are included within Shapefile extensions. #69

Open esturdivant-usgs opened 5 years ago

esturdivant-usgs commented 5 years ago

Right now, the process grabs all the files within a folder and uploads them together using sb.upload_files_and_upsert_item(). The CSV is probably included because it has the same filename as the shapefile and it is uploaded at the same time.

image

To get around this, I could try uploading the CSVs in a separate call to upload_files_and_upsert_item() (or some other function?)...

esturdivant-usgs commented 5 years ago

However, this might be a good situation since it means that the CSV will get zipped up and downloaded with the shapefile.