opengisch / qgis-swiss-locator

Swiss Geoadmin layer and feature search for QGIS 3
https://www.opengis.ch/2024/06/25/swiss-locator-plugin-3-0-is-here-with-exciting-features/
GNU General Public License v3.0
13 stars 4 forks source link

Fix exception when loading layer with custom CRS #64

Closed m-kuhn closed 1 year ago

m-kuhn commented 1 year ago

A CRS may be valid without having an authid

IndexError: list index out of range 
Traceback (most recent call last):
  File "python/plugins/swiss_locator/core/filters/swiss_locator_filter.py", line 193, in create_transforms
    self.crs = map_crs.authid().split(":")[1]
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range