diff options
author | cnd <cnd@gmx.ch> | 2016-06-28 13:59:36 +0300 |
---|---|---|
committer | cnd <cnd@gmx.ch> | 2016-06-28 13:59:36 +0300 |
commit | 1e324200855b7f9f7649856faf28581204fb499c (patch) | |
tree | c3ac0fe7f8ab6281e13159c86d3973734c1be5b7 /io_import_dxf | |
parent | 2b6a7563ac4db60d02c9530c4d1870ea8c3a6a0e (diff) |
switched lat / lon for projected coordinates using pyproj as suggested in T48652
Diffstat (limited to 'io_import_dxf')
-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 632a558e..e6eb45ea 100644 --- a/io_import_dxf/dxfimport/do.py +++ b/io_import_dxf/dxfimport/do.py @@ -147,7 +147,7 @@ class Do: cscn_lat = self.current_scene.get('latitude', 0) cscn_lon = self.current_scene.get('longitude', 0) cscn_alt = self.current_scene.get('altitude', 0) - add = Vector(transform(wgs84, self.pScene, cscn_lat, cscn_lon, cscn_alt)) + add = Vector(transform(wgs84, self.pScene, cscn_lon, cscn_lat, cscn_alt)) # projection newco = Vector(transform(self.pDXF, self.pScene, c1, c2, c3)) @@ -179,8 +179,8 @@ class Do: elif type(self.pScene) is not None: wgs84 = Proj(init="EPSG:4326") latlon = transform(self.pScene, wgs84, center[0], center[1], center[2]) - scene['latitude'] = latlon[0] - scene['longitude'] = latlon[1] + scene['longitude'] = latlon[0] + scene['latitude'] = latlon[1] scene['altitude'] = latlon[2] """ GEOMETRY DXF TYPES TO BLENDER CURVES FILTERS""" |