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):
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))
Supports Markdown
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