diff options
author | Lukas Treyer <treyer@arch.ethz.ch> | 2014-08-29 14:24:49 +0400 |
---|---|---|
committer | Lukas Treyer <treyer@arch.ethz.ch> | 2014-08-29 14:24:49 +0400 |
commit | 97816cfd9d9471615d88819bd39c9975523ec892 (patch) | |
tree | cdf5544ea8829962d5ff7eda73f4769687529c78 /io_import_dxf/dxfimport | |
parent | 03bdb32829fe973efe33d16da81f54d26cd1c2c6 (diff) |
BUGFIXES:
- "Indication must be 'sperical' or 'planar'" error message if pyproj module is not available.
- GeoReference options (lat/lon) was disabled without pyproj
Diffstat (limited to 'io_import_dxf/dxfimport')
-rw-r--r-- | io_import_dxf/dxfimport/do.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py index 0e39c5a9..82fea417 100644 --- a/io_import_dxf/dxfimport/do.py +++ b/io_import_dxf/dxfimport/do.py @@ -80,12 +80,12 @@ class Indicator: euclidean = False def __init__(self, i): - if i == "spherical": + if i.upper() == "SPHERICAL": self.spherical = True - elif i == "euclidean": + elif i.upper() == "EUCLIDEAN": self.euclidean = True else: - raise AttributeError("Indication must be 'spherical' or 'planar'.") + raise AttributeError("Indication must be 'spherical' or 'euclidean'. Given: " + str(i)) class Do: |