geopython / pygeometa

pygeometa is a Python package to generate metadata for geospatial datasets
https://geopython.github.io/pygeometa
Other
104 stars 44 forks source link

iso19139 export throws error if extent is None #244

Closed pvgenuchten closed 5 months ago

pvgenuchten commented 5 months ago
File "/usr/local/lib/python3.12/dist-packages/geodatacrawler/schemas/iso19139/main.j2", line 84, in top-level template code
    <gco:CharacterString>urn:ogc:def:crs:EPSG:{{ rs.get('crs','') | e }}</gco:CharacterString>
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/jinja2/utils.py", line 83, in from_obj
    if hasattr(obj, "jinja_pass_arg"):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'None' has no attribute 'get'
pvgenuchten commented 5 months ago

sorry this is dedicated code