We need to allow users to download subsets of data based on their filter parameters.
We will integrate the GeoServer capability that allows us to download data against a service in various formats that we can allow a user to choose such as SHP, GeoJSON, KML, Excel, or CSV.
The data levels a downloadable will be discussed so that we can design the process efficiently.
Guide: https://docs.geoserver.org/main/en/user/services/wfs/outputformats.html
Summary is to download different format we need to change the outpuFormat of the WFS service from application/json to that of the format selected by the user
Shapefile -> outputFormat=shape-zip
CSV -> csv
KML -> KML
Example download url for Shapefile (SHP) http://4.221.32.87:8080/geoserver/vector/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=vector%3Adownload_v&maxFeatures=100&outputFormat=shape-zip
Two parts
- Download Dialog that allows user to choose a format CSV, SHapefile or KML.
- Download logic
We need to allow users to download subsets of data based on their filter parameters.
We will integrate the GeoServer capability that allows us to download data against a service in various formats that we can allow a user to choose such as SHP, GeoJSON, KML, Excel, or CSV.
The data levels a downloadable will be discussed so that we can design the process efficiently.
Guide: https://docs.geoserver.org/main/en/user/services/wfs/outputformats.html
Summary is to download different format we need to change the outpuFormat of the WFS service from application/json to that of the format selected by the user
Shapefile ->
outputFormat=shape-zipCSV ->
csvKML -> KML
Example download url for Shapefile (SHP) http://4.221.32.87:8080/geoserver/vector/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=vector%3Adownload_v&maxFeatures=100&outputFormat=shape-zip
Two parts