Commit 6e70d16d authored by Daniel Scheffler's avatar Daniel Scheffler Committed by Daniel Scheffler
Browse files

Revised previous commit.

parent df225463
Pipeline #3225 failed with stages
in 2 minutes and 45 seconds
......@@ -294,7 +294,7 @@ class Tie_Point_Grid(object):
GDF = GeoDataFrame(index=range(len(geomPoints)), crs=crs,
columns=['geometry', 'POINT_ID', 'X_IM', 'Y_IM', 'X_UTM', 'Y_UTM'])
GDF['geometry'] = geomPoints
GDF['POINT_ID'] = np.array(range(len(geomPoints))).astype(np.object)
GDF['POINT_ID'] = range(len(geomPoints))
GDF.loc[:, ['X_IM', 'Y_IM']] = self.XY_points
GDF.loc[:, ['X_UTM', 'Y_UTM']] = self.XY_mapPoints
......@@ -374,6 +374,7 @@ class Tie_Point_Grid(object):
'Y_SHIFT_M', 'ABS_SHIFT', 'ANGLE', 'SSIM_BEFORE', 'SSIM_AFTER',
'SSIM_IMPROVED', 'RELIABILITY', 'LAST_ERR'])
GDF = GDF.astype(np.object) # must be equal to records.dtypes; We need np.object due to None values
GDF = GDF.merge(records, on='POINT_ID', how="inner")
GDF = GDF.fillna(int(self.outFillVal))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment