diff --git a/opendm/gcp.py b/opendm/gcp.py index 31f193166..98cfc7098 100644 --- a/opendm/gcp.py +++ b/opendm/gcp.py @@ -19,7 +19,8 @@ def read(self): # Strip eventual BOM characters contents = contents.replace('\ufeff', '') - + # Replace NaN with 0 + contents = contents.replace('NaN', '0') lines = list(map(str.strip, contents.split('\n'))) if lines: self.raw_srs = lines[0] # SRS @@ -241,4 +242,4 @@ def __str__(self): return "{} {} {} {} {} {} {}".format(self.x, self.y, self.z, self.px, self.py, self.filename, - self.extras).rstrip() \ No newline at end of file + self.extras).rstrip()