Skip to content

Commit

Permalink
Update metashape.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HowcanoeWang committed May 5, 2023
1 parent f131da7 commit 01d847e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyidp/metashape.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def back2raw_crs(self, points_xyz, ignore=None, log=False):
if self.crs is None:
warnings.warn("Have not specify the CRS of output DOM/DSM/PCD, may get wrong backward projection results, please specify it by `ms.crs=dom.crs` or `ms.crs=pyproj.CRS.from_epsg(...)` ")

if self.crs.name in ['Local Coordinates', 'Local Coordinates (m)']:
if self.crs is not None and self.crs.name in ['Local Coordinates', 'Local Coordinates (m)']:
local_coord = self._world2local(points_xyz)
else:
local_coord = self._world2local(self._crs2world(points_xyz))
Expand Down

0 comments on commit 01d847e

Please sign in to comment.