Skip to content

Commit

Permalink
Document multiple columns in info_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktSeidlSWM authored Oct 14, 2024
1 parent 88fc583 commit 395af68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/topics/Mapinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ If the `qwc-mapinfo-service` is enabled, queries can be configured in the servic
"db_url": "postgresql:///?service=qwc_geodb",
"info_sql": "SELECT type FROM qwc_geodb.ne_10m_admin_0_countries WHERE ST_contains(wkb_geometry, ST_SetSRID(ST_Point(:x, :y), :srid)) LIMIT 1",
"info_title": "Type"
},
{
"db_url": "postgresql:///?service=qwc_geodb",
"info_sql": "SELECT abbrev, postal, subregion FROM qwc_geodb.ne_10m_admin_0_countries WHERE ST_contains(wkb_geometry, ST_SetSRID(ST_Point(:x, :y), :srid)) LIMIT 1",
"info_title": ["Abbreviation", "Postal Code", "Subregion"]
}
]
}
Expand Down

0 comments on commit 395af68

Please sign in to comment.