Skip to content

Commit

Permalink
fix boundary line and outdoor style
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Apr 20, 2017
1 parent 2a595f2 commit b245277
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OSTranslatorII/styler.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,17 @@ def populate_locations(self):
self.osmm_style_name = "standard"

qml_base = base_url + '/master/Schema%20version%209/Stylesheets/QGIS%20stylesheets%20(QML)/'
qml_mode = "-" + self.osmm_style_name + '.qml'

sql_base = base_url + '/master/Schema%20version%209/SQL/PostGIS/Array/'
sql_mode = '_createtable_array.sql'

for t in self.styleSupportedTopoTables:
if t == "boundaryline" and self.osmm_style_name == "outdoor":
# boundaryLine does not have outdoor style at all
qml_mode = "-standard.qml"
else:
qml_mode = "-" + self.osmm_style_name + '.qml'

self.qmlLocations[t] = qml_base + t + qml_mode
self.sqlLocations[t] = sql_base + t + sql_mode

Expand Down

0 comments on commit b245277

Please sign in to comment.