Skip to content

Commit

Permalink
rm-qgis
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 25, 2024
1 parent 6963dd6 commit 2cee977
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions geoportal/c2cgeoportal_geoportal/scripts/create_demo_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def main() -> None:
ogc_server_mapserver.name = "mapserver"
ogc_server_mapserver.url = "config://mapserver/mapserv_proxy/mapserver"

ogc_server_qgisserver = OGCServer(
name="qgisserver", url="config://qgisserver/mapserv_proxy?map=/etc/qgisserver/qgis.qgs"
)
session.add(ogc_server_qgisserver)
# ogc_server_qgisserver = OGCServer(
# name="qgisserver", url="config://qgisserver/mapserv_proxy?map=/etc/qgisserver/qgis.qgs"
# )
# session.add(ogc_server_qgisserver)

layer_borders = LayerWMS("Borders", "borders")
layer_borders.interfaces = interfaces
Expand All @@ -74,18 +74,18 @@ def main() -> None:
layer_density.interfaces = interfaces
layer_density.ogc_server = ogc_server_mapserver

layer_points = LayerWMS("Points", "points")
layer_points.interfaces = interfaces
layer_points.ogc_server = ogc_server_qgisserver
# layer_points = LayerWMS("Points", "points")
# layer_points.interfaces = interfaces
# layer_points.ogc_server = ogc_server_qgisserver

group_mapserver = LayerGroup("MapServer")
group_mapserver.children = [layer_borders, layer_density]

group_qgisserver = LayerGroup("QGISServer")
group_qgisserver.children = [layer_points]
# group_qgisserver = LayerGroup("QGISServer")
# group_qgisserver.children = [layer_points]

theme = Theme("Demo")
theme.children = [group_mapserver, group_qgisserver]
theme.children = [group_mapserver] # , group_qgisserver]
theme.interfaces = interfaces

session.add(theme)
Expand Down

0 comments on commit 2cee977

Please sign in to comment.