Skip to content

webgismd/lf-wms-wfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

lf-wms-wfs

leaftlet app with wms/wfs

Example see - https://webgismd.github.io/lf-wms-wfs/lfg/lfwmsi.html?l=WHSE_WATER_MANAGEMENT.GW_WATER_WELLS_LITHOLOGY_SP&s=1842&a=WELL_TAG_NUMBER&f=WELL_TAG_NUMBER%3D71003

or https://webgismd.github.io/lf-wms-wfs/lfg/lfwmsi.html?l=WHSE_BASEMAPPING.BCGS_2500_GRID&a=OBJECTID&f=OBJECTID%3D64688

or https://webgismd.github.io/lf-wms-wfs/lfg/lfwmsi.html?l=WHSE_CADASTRE.PMBC_PARCEL_FABRIC_POLY_FA_SVW&a=PLAN_ID&f=PLAN_ID%3D495161

Leaflet app that has URL parameters for WMS parameters (zoom to and identify functions available based on parameters given)

URL PARAMETERS:
WMS LAYER - l=WHSE_WATER_MANAGEMENT.GW_WATER_WELLS_LITHOLOGY_SP (layer name)
WMS LAYER STYLE - s=1842 (style name)
WMS LAYER ATTRIBUTE TO FILTER ON - a=WELL_TAG_NUMBER (attribute/field name)
WMS LAYER CQL_FILTER - f=WELL_TAG_NUMBER%3D71003 (encoded cql filter statement)

to find style name go to:
http://openmaps.gov.bc.ca/geo/pub/WHSE_WATER_MANAGEMENT.GW_WATER_WELLS_LITHOLOGY_SP/wms?SERVICE=WMS&REQUEST=Getcapabilities

to find attributes go to:
http://openmaps.gov.bc.ca/geo/pub/WHSE_WATER_MANAGEMENT.GW_WATER_WELLS_LITHOLOGY_SP/wfs?SERVICE=WFS&REQUEST=describefeaturetype

to get the first feature and the feature count of a layer in JSON:
http://openmaps.gov.bc.ca/geo/pub/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&outputFormat=json&typeName=WHSE_BASEMAPPING.GRID_HEX_CDN_25_SQKM_SP&count=1

references:
https://docs.geoserver.org/
https://docs.geoserver.org/latest/en/user/services/index.html#services
https://catalogue.data.gov.bc.ca/dataset/6164a2af-d3ac-4e92-8dbe-51a93bb5e24b
https://leafletjs.com/reference-1.6.0.html