This project is developed using the SeaSketch Geoprocessing Framework to create geoprocessing functions, report clients, and UI components.
- Design Fields to quantify the benefits and costs of green infrastructure practices and associate them with point, line, and polygon features for sketching.
- Dashboards to visualize progress towards meeting community stormwater capture goals while meeting budgets.
- Scenarios allowing sketching of alternative green infrastructure approaches.
- Study Areas to compare the benefits of green infrastructure scenarios across scales from sites to watersheds.
- Overview
- Setup
- Developing a Geoprocessing Function
- Creating a Report Client
- Creating a UI Component
- Publishing
- Mapping the Geoprocessing Report Client on SeaSketch Dashboard
- User Sketch
The project includes the following key features:
- Geoprocessing functions to perform spatial analysis.
- Report clients to fetch and display results on the SeaSketch platform.
- UI components to organize and present the results in a user-friendly way.
- Node.js (v14 or later)
- npm (v6 or later)
- SeaSketch Geoprocessing Framework
-
Clone the repository:
git clone <repository-url> cd green-stormwater-infrastructure
-
Install dependencies:
npm install
-
Create a new geoprocessing function:
npm run create:function
Follow the prompts to provide the function name, description, and other details.
-
Implement the function logic in
src/functions/<your-function-name>.ts
-
Test the function using the provided smoke test or by running:
npm test
-
Create a new report client:
npm run create:client
Provide the client name, description, and associated geoprocessing function.
-
Implement the report client in
src/clients/<your-client-name>.tsx
-
Update project configuration in
project/geoprocessing.json
to include the new client
-
Create a new card component in
src/components/<your-card-name>.tsx
. -
Organize cards in a page component
- Build and deploy the project:
npm run build npm run deploy
- Go to https://www.seasketch.org/admin/sketching
- Under Geoprocessing tab, enter the service endpoint and choose the report client
- Sketch using the sketch class that has geoprocessing function linked to it
- Right click on the sketch and view report