Skip to content

Cannot convert float NaN to integer #1

@mdales

Description

@mdales

Trying to generate a map using:

>>> mesh = topogmesh.mesh_from_shape_file(
    shp_path='/maps/mwd24/hogakusten.geojson', 
    tif_paths=['/home/mwd24/lifetest/elevation_wgs84_bigtiff.tif'],
    base_height=5, 
    scale=0.1
)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mwd24/dev/topogmesh/topogmesh/mesh_generator.py", line 177, in mesh_from_shape_file
    height_map[~mask] = np.nan
    ~~~~~~~~~~^^^^^^^
ValueError: cannot convert float NaN to integer

I think you should have access to both the files there @FinleyStirk06

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions