2025-11-14 18:58:42 +00:00
tile_buffer = 64
[ webserver ]
port = ":9090"
[ cache ]
type = "file" # cache type
basepath = "/tmp/tegola" # cache specific config
[ [ providers ] ]
2026-02-17 21:37:57 +00:00
name = "nidus"
2025-11-14 18:58:42 +00:00
type = "mvt_postgis" # the type of data provider. currently only supports postgis
2026-01-22 05:22:37 +00:00
uri = "postgres://tegola:@localhost:/nidus-sync?host=/var/run/postgresql&sslmode=disable" # PostGIS connection string (required)
2025-11-14 18:58:42 +00:00
srid = 4326 # The default srid for this provider. If not provided it will be WebMercator (3857)
2026-02-17 21:37:57 +00:00
[ [ providers . layers ] ]
2026-03-05 18:57:33 +00:00
name = "address"
2026-02-17 21:37:57 +00:00
geometry_fieldname = "geometry"
2026-03-05 18:57:33 +00:00
geometry_type = "point"
2026-02-17 21:37:57 +00:00
id_fieldname = "id"
2026-03-07 03:01:59 +00:00
sql = "SELECT ST_AsMVTGeom(location, !BBOX!) AS geometry, id, unit, number_, street, postal_code FROM address WHERE location && !BBOX!"
2026-02-17 21:37:57 +00:00
2026-03-20 20:19:45 +00:00
[ [ providers . layers ] ]
name = "feature-pool"
geometry_fieldname = "location"
geometry_type = "point"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(f.location, !BBOX!) AS location, fp.condition AS condition, f.id AS id, 'pool' AS type, a.number_ AS address_number, a.street AS address_street, a.locality AS address_locality, a.region AS address_region, a.country AS address_country, a.postal_code AS address_postal_code FROM feature f INNER JOIN feature_pool fp ON f.id = fp.feature_id INNER JOIN site s ON s.id = f.site_id INNER JOIN address a ON a.id = s.address_id WHERE f.location && !BBOX! !PARAM_FEATURE_ORGANIZATION_ID!"
2026-02-17 21:37:57 +00:00
[ [ providers . layers ] ]
name = "fileupload-pool"
geometry_fieldname = "geometry"
geometry_type = "point"
id_fieldname = "id"
2026-03-05 18:57:33 +00:00
sql = "SELECT ST_AsMVTGeom(geom, !BBOX!) AS geometry, condition, id, is_new, is_in_district FROM fileupload.pool WHERE geom && !BBOX! !PARAM_CSV_FILE!"
2026-02-17 21:37:57 +00:00
2025-11-14 18:58:42 +00:00
[ [ providers . layers ] ]
2026-01-22 05:22:37 +00:00
name = "mosquito_source"
geometry_fieldname = "geometry"
geometry_type = "polygon"
id_fieldname = "id"
2026-02-17 21:37:57 +00:00
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id, cell, count_, resolution FROM h3_aggregation WHERE type_ = 'MosquitoSource' AND geometry && !BBOX! !PARAM_ORGANIZATION_ID!"
2025-11-14 18:58:42 +00:00
2026-03-05 18:57:33 +00:00
[ [ providers . layers ] ]
name = "parcel"
geometry_fieldname = "geometry"
geometry_type = "multipolygon"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, apn, description, id FROM parcel WHERE geometry && !BBOX!"
[ [ providers . layers ] ]
name = "service-area-bounds"
geometry_fieldname = "geometry"
geometry_type = "polygon"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(service_area_geometry, !BBOX!) AS geometry, id FROM organization WHERE service_area_geometry && !BBOX! !PARAM_ID!"
2025-11-14 18:58:42 +00:00
[ [ providers . layers ] ]
2026-01-22 05:22:37 +00:00
name = "service_request"
geometry_fieldname = "geometry"
2025-11-14 18:58:42 +00:00
geometry_type = "polygon"
2026-01-22 05:22:37 +00:00
id_fieldname = "id"
2026-02-17 21:37:57 +00:00
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id, cell, count_, resolution FROM h3_aggregation WHERE type_ = 'ServiceRequest' AND geometry && !BBOX! !PARAM_ORGANIZATION_ID!"
2025-11-14 18:58:42 +00:00
2026-03-20 20:19:45 +00:00
[ [ providers . layers ] ]
name = "signal-point"
geometry_fieldname = "location"
geometry_type = "point"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(location, !BBOX!) AS location, id, type_, created FROM signal WHERE GeometryType(location) = 'POINT' AND location && !BBOX! !PARAM_ORGANIZATION_ID!"
2025-11-15 21:34:05 +00:00
[ [ providers . layers ] ]
2026-01-22 05:22:37 +00:00
name = "trap"
geometry_fieldname = "geometry"
2025-11-15 21:34:05 +00:00
geometry_type = "polygon"
2026-01-22 05:22:37 +00:00
id_fieldname = "id"
2026-02-17 21:37:57 +00:00
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id, cell, count_, resolution FROM h3_aggregation WHERE type_ = 'Trap' AND geometry && !BBOX! !PARAM_ORGANIZATION_ID!"
2025-11-15 21:34:05 +00:00
[ [ providers ] ]
2026-02-17 21:37:57 +00:00
name = "rmo"
2025-11-15 21:34:05 +00:00
type = "mvt_postgis" # the type of data provider. currently only supports postgis
2026-01-07 03:24:26 +00:00
uri = "postgres://tegola:@localhost:/nidus-sync?host=/var/run/postgresql&sslmode=disable" # PostGIS connection string (required)
2025-11-15 21:34:05 +00:00
srid = 4326 # The default srid for this provider. If not provided it will be WebMercator (3857)
2026-01-22 05:22:37 +00:00
[ [ providers . layers ] ]
name = "report_location"
geometry_fieldname = "location"
geometry_type = "point"
2025-11-15 21:34:05 +00:00
id_fieldname = "id"
2026-03-20 20:19:45 +00:00
sql = "SELECT address_raw, created, id, ST_AsMVTGeom(location, !BBOX!) AS location, public_id, report_type AS type, status FROM publicreport.report WHERE location && !BBOX!"
2025-11-15 21:34:05 +00:00
2026-02-06 18:05:12 +00:00
[ [ providers . layers ] ]
name = "nuisance_location"
geometry_fieldname = "location"
geometry_type = "point"
id_fieldname = "id"
2026-03-20 20:19:45 +00:00
sql = "SELECT address_raw, created, id, ST_AsMVTGeom(location, !BBOX!) AS location, public_id, status FROM publicreport.report WHERE report_type = 'nuisance' AND location && !BBOX!"
2026-02-06 18:05:12 +00:00
[ [ providers . layers ] ]
2026-03-11 15:51:49 +00:00
name = "water_location"
2026-02-06 18:05:12 +00:00
geometry_fieldname = "location"
geometry_type = "point"
id_fieldname = "id"
2026-03-20 20:19:45 +00:00
sql = "SELECT address_raw, created, id, ST_AsMVTGeom(location, !BBOX!) AS location, public_id, status FROM publicreport.report WHERE report_type = 'water' AND location && !BBOX!"
2026-02-06 18:05:12 +00:00
2026-02-17 21:37:57 +00:00
[ [ maps ] ]
name = "rmo"
center = [ -119.175 , 36.24 , 11.0 ]
[ [ maps . layers ] ]
provider_layer = "rmo.nuisance_location"
#min_zoom = 5
#max_zoom = 20
[ [ maps . layers ] ]
2026-03-11 15:51:49 +00:00
provider_layer = "rmo.water_location"
2026-02-17 21:37:57 +00:00
#min_zoom = 5
#max_zoom = 20
[ [ maps . layers ] ]
provider_layer = "rmo.report_location"
#min_zoom = 5
#max_zoom = 20
2025-11-14 18:58:42 +00:00
[ [ maps ] ]
2026-01-22 05:22:37 +00:00
name = "nidus"
center = [ -119.175 , 36.24 , 11.0 ] # set the center of the map so the user is auto navigated to visalia
2025-11-14 18:58:42 +00:00
[ [ maps . layers ] ]
2026-03-05 18:57:33 +00:00
provider_layer = "nidus.address"
2025-11-14 18:58:42 +00:00
2026-03-20 20:19:45 +00:00
[ [ maps . layers ] ]
provider_layer = "nidus.feature-pool"
2025-11-14 18:58:42 +00:00
[ [ maps . layers ] ]
2026-03-05 18:57:33 +00:00
provider_layer = "nidus.fileupload-pool"
2025-11-14 18:58:42 +00:00
[ [ maps . layers ] ]
2026-03-05 18:57:33 +00:00
provider_layer = "nidus.mosquito_source"
2025-11-15 21:34:05 +00:00
[ [ maps . layers ] ]
2026-03-05 18:57:33 +00:00
provider_layer = "nidus.parcel"
[ [ maps . layers ] ]
provider_layer = "nidus.service_request"
2025-11-16 21:25:11 +00:00
2026-02-06 18:05:12 +00:00
[ [ maps . layers ] ]
2026-02-17 21:37:57 +00:00
provider_layer = "nidus.service-area-bounds"
2026-02-06 18:05:12 +00:00
2026-03-20 20:19:45 +00:00
[ [ maps . layers ] ]
provider_layer = "nidus.signal-point"
2026-03-05 18:57:33 +00:00
[ [ maps . layers ] ]
provider_layer = "nidus.trap"
2026-02-17 21:37:57 +00:00
[ [ maps . params ] ]
name = "csv_file"
token = "!PARAM_CSV_FILE!"
type = "int"
sql = "AND csv_file = ?"
default_sql = " "
[ [ maps . params ] ]
name = "id"
token = "!PARAM_ID!"
type = "int"
sql = "AND id = ?"
default_sql = " "
[ [ maps . params ] ]
name = "organization_id"
token = "!PARAM_ORGANIZATION_ID!"
type = "int"
sql = "AND organization_id = ?"
default_sql = " "
2026-02-06 18:05:12 +00:00
2026-03-20 20:19:45 +00:00
[ [ maps . params ] ]
name = "feature_organization_id"
token = "!PARAM_FEATURE_ORGANIZATION_ID!"
type = "int"
sql = "AND f.organization_id = ?"
default_sql = " "
2026-03-05 18:57:33 +00:00
[ [ maps . params ] ]
name = "file_organization_id"
token = "!PARAM_FILE_ORGANIZATION_ID!"
type = "int"
sql = "AND file.organization_id = ?"
default_sql = " "