Shp download
✓ Published0🌍 Public
RRCura
Last edited May 19, 2014
Created on May 19, 2014
This example demonstrates a Shiny app feature that lets users download the current map view as a Shapefile and CSV. It shows how an interactive R-based mapping interface can package its underlying geographic data for external use. The code defines a `downloadHandler` that cleans up old temporary files, uses `writeOGR` from the `rgdal` library to create the Shapefile, writes a CSV with `write.csv`, and compresses everything into a ZIP archive with the `zip` function. The handler dynamically generates the download by referencing the `getGeoContent()` object, which contains both spatial and attribute data.
AI-generated description