Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
6e70d16d
Commit
6e70d16d
authored
Oct 22, 2018
by
Daniel Scheffler
Committed by
Daniel Scheffler
Oct 22, 2018
Browse files
Revised previous commit.
parent
df225463
Pipeline
#3225
failed with stages
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arosics/Tie_Point_Grid.py
View file @
6e70d16d
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment