BNHM / reservemapper

Mapping Biodiversity data on our natural reserves
https://reservemapper.berkeley.edu
GNU General Public License v3.0
1 stars 6 forks source link

incorporate CPAD API #21

Closed mkoo closed 6 years ago

mkoo commented 6 years ago

https://gis.cnra.ca.gov/arcgis/rest/services/Boundaries

jdeck88 commented 6 years ago

CPAD interface (calls their backend API): http://www.calands.org/map

Boundaries can be fetched from CPAD using their API, like this:

curl http://www.mapcollaborator.org/cpad/search/by_agency -d "agency_type=State&agency_name=University of California"

note that this bundles multiple Univ. California reserves into a single WKT file, so this file will need to be parsed.

Can call reservemapper with this syntax:

http://reservemapper.berkeley.edu/{agency_type}/{agency_name}/{layer_name}

When a user calls with the above, the appropriate agency/name/layer_name is extracted from CPAD and displayed as the area of interest.... So, this task is enabling this syntax when calling reservemapper and zooming into the selected layer.

jdeck88 commented 6 years ago

This is complete.