Compare commits

..

No commits in common. '29dcb89c17440596e22d76404845478dc51d41dd' and '904db76694014d8e9732d94216d5e4edfa0d5df2' have entirely different histories.

@ -1,4 +1,4 @@
set PYTHON="C:\Program Files\QGIS 3.22.5\bin\python-qgis-ltr.bat" set PYTHON="C:\Program Files\QGIS 3.20.3\bin\python-qgis.bat"
%PYTHON% export.py %PYTHON% export.py

@ -61,13 +61,6 @@ def unique_attributes(layer):
map_layers = project.mapLayers().items() map_layers = project.mapLayers().items()
layers = [v for k, v in map_layers if re.search(r'\d{4}', v.name())] layers = [v for k, v in map_layers if re.search(r'\d{4}', v.name())]
try:
next(layers[0].getFeatures())
except StopIteration:
msg = 'No hazard lines found. Check shapefile data.'
raise ValueError(msg)
# Get all EP values and profile types from first hazard line layer # Get all EP values and profile types from first hazard line layer
eps, types, years = unique_attributes(layers[0]) eps, types, years = unique_attributes(layers[0])

Loading…
Cancel
Save