Skip to content

Data download #62

Description

@fox-craft

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

  1. Download Dialog that allows user to choose a format CSV, SHapefile or KML.
  2. Download logic

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions