fillna(0) workaround for artifacts without coordinates #5
Labels
code adjacent
Not necessarily a coding problem, but has implications for code
database
Related to database design or queries
leiap.spatial
Related to leiap.spatial
When importing artifacts from the database, 10 of them did not have corresponding survey points. This raises a couple of questions:
For now, I have added a
.fillna(0)
to the Eastings and Northings in theleiap.spatial.find_geo_field()
function. This allows the spatial join (gpd.sjoin()
) to proceed without throwing an error, but it will cause headaches later if you try to map these artifacts, so it is not ideal behavior.For the record, these are the artifacts:
The text was updated successfully, but these errors were encountered: