Dynamic Voronoi Example

March 6, 2020 ยท View on GitHub

Start by downloading the "fire hydrant data" as a shape file from the City of Vancouver open data site.

Load the data into your PostgreSQL/PostGIS database using shp2pgsql:

shp2pgsql -s 26910 -D -I water-hydrants.shp hydrants | psql postgisftw

Create the public.hydrants_delaunay() function in your database by loading the openlayer-function-click.sql file.

Restart your pg_tileserv or at least reload the front page to force a refresh of the catalogue information.

Load the openlayer-function-click.html file in your browser.