conveyal / r5

Developed to power Conveyal's web-based interface for scenario planning and land-use/transport accessibility analysis, R5 is our routing engine for multimodal (transit/bike/walk/car) networks with a particular focus on public transit
https://conveyal.com/learn
MIT License
272 stars 71 forks source link

Support uploading Shapefiles as a single .zip #903

Open trevorgerhardt opened 8 months ago

trevorgerhardt commented 8 months ago

Users often have Shapefiles in packaged in a zip. If we additionally allow them to upload the zip, that would save them from needing to unzip and multi-select the individual files.

Additionally, we have had a user report that their IT network blocks some of the sidecar files from being uploaded and therefore they are unable to create opportunity datasets.

We should prioritize supporting this there, but also be consistent across the application.

An alternative solution is to add support for GeoJSON (which is desirable anyway), then convert their Shapefile in the browser before uploading.

abyrd commented 8 months ago

If possible we'll want to support ZIP on all uploads, because we support single-file formats like GeoJSON and CSV that can benefit heavily from basic compression (see related #747). Ideally we can reuse the code to detect a ZIP file, unpack it in a temporary location, and then return the name/path of the expanded file(s) for processing.