Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail if no extent #28

Open
pvgenuchten opened this issue Dec 16, 2024 · 0 comments
Open

fail if no extent #28

pvgenuchten opened this issue Dec 16, 2024 · 0 comments

Comments

@pvgenuchten
Copy link
Owner

File "/usr/local/lib/python3.12/dist-packages/geodatacrawler/schemas/iso19139/main.j2", line 77, in top-level template code
    {% if record['identification']['extents'].get('spatial') not in [None,''] %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/jinja2/environment.py", line 487, in getattr
    return getattr(obj, attribute)
           ^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'extents'

Failed to create metadata: portals/Africa/explorer.digitalearth.africa/portals/Africa/explorer.digitalearth.africa/dea_pc_s2_annual.xml/iso19139 'dict object' has no attribute 'extents' Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/geodatacrawler/metadata.py", line 208, in processPath
    xml_string = render_j2_template(md, template_dir=os.path.join(schemaPath,profile))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant