Skip to content

Reading kml files fails #14

@nhutter

Description

@nhutter

I tried to test fmesh and followed all steps from the Readme. However, the from_kml function is not able to read the kml files, both the ones I created with google earth as well as the ones provided with the respository like Baffin_Bay.kml. The files are opened, but features is not callable function but an empty list and I receive the following error message:

Traceback (most recent call last):
  File "/Users/nhutter/Documents/Research/fesom/tools/fmesh/fmesh.py", line 1094, in <module>
    main()
  File "/Users/nhutter/Documents/Research/fesom/tools/fmesh/fmesh.py", line 1080, in main
    result, regions, longitudes, latitudes = define_resolutions(settings)
  File "/Users/nhutter/Documents/Research/fesom/tools/fmesh/fmesh.py", line 685, in define_resolutions
    internal, outer = from_kml(reg["path"])
  File "/Users/nhutter/Documents/Research/fesom/tools/fmesh/fmesh.py", line 258, in from_kml
    for feature_0 in k.features():
TypeError: 'list' object is not callable

I installed a fresh condo environment for fmesh and fastkml version 1.1.0 was installed. Do you have an idea what could cause this error, potentially a version mismatch of the packages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions