Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a framework in the Explorer to use arbitrary polygon-based shapefiles as filters #26

Open
dshorthouse opened this issue Aug 14, 2014 · 0 comments
Labels

Comments

@dshorthouse
Copy link
Contributor

Polygons for the National Parks of Canada are available at http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/eb3757cc-d08b-5e62-9a44-3a8534ff3249.html. The dbf within contains two columns of data that can be used as options in a drop-down menu: name of park in English & name of park in French & the intersection of geoms (once imported into PostgreSQL/PostGIS) in the occurrence table would show points on the map that fall within that park's boundary(ies). This might be generalized to use any shapefile containing named polygons.

One idea is to use shp2pgsql to create UTF-8 tables from shp files and name them with consistent prefixes (shp_national_parks, shp_provincial_parks, shp_*, etc.) that are subsequently recognized by the model/controller as "filterable". Unless performance is an issue, the relevant columns within each filterable table could be used as select options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant