Comments (5)
That solved the issue!
(my-env) (base) pygeometa metadata import metar-wis1-xmlformat.xml --schema iso19139
contact:
pointOfContact:
address: 5830 University Research Court
city: College Park
country: USA
email: [email protected]
organization: National Weather Service
phone: 301-683-0756
postalcode: '20740'
url: https://www.weather.gov
distribution: {}
identification:
abstract: A statement for reporting surface or upper air observations that do not
conform to an established standard. These reports are in text form.
accessconstraints: otherRestrictions
dates:
publication: '2018-12-14'
revision: '2018-12-14'
extents:
spatial:
- bbox:
- -66
- 24
- -124
- 49
temporal:
- {}
keywords:
keywords-0:
keywords:
- Irregularly
type: temporal
keywords-1:
keywords:
- miscellanous
- upper air
- plain language
- text
type: theme
keywords-2:
keywords:
- Meteorological geographical features
type: null
keywords-3:
keywords:
- GlobalExchange
type: dataCentre
status: null
title: TEXT
topiccategory:
- climatologyMeteorologyAtmosphere
mcf:
version: '1.0'
metadata:
datestamp: '2018-12-14T14:33:07Z'
hierarchylevel: dataset
identifier: urn:x-wmo:md:int.wmo.wis::SXNE66KWAL
language: eng
Thanks a lot!
from pygeometa.
Hi @ShaneMill1 I'm unable to reproduce; pygeometa generates the MCF accordingly. Are you using pygeometa latest master branch?
from pygeometa.
@tomkralidis At the time of the creation of this issue, I had. I'll start fresh and attempt to reproduce the issue again today and follow up. Thanks!
from pygeometa.
@tomkralidis I ran this on a fresh ec2 instance so I know caching or anything like that isn't coming into play.
Same issue:
(my-env) (base) pygeometa metadata import metar-wis1-xmlformat.xml --schema iso19139
/home/ec2-user/my-env/lib/python3.9/site-packages/OWSLib-0.28.1-py3.9.egg/owslib/iso.py:120: FutureWarning: the .identification and .serviceidentification properties will merge into .identification being a list of properties. This is currently implemented in .identificationinfo. Please see https://github.com/geopython/OWSLib/issues/38 for more information
warnings.warn(
/home/ec2-user/my-env/lib/python3.9/site-packages/OWSLib-0.28.1-py3.9.egg/owslib/iso.py:596: FutureWarning: The .keywords and .keywords2 properties will merge into the .keywords property in the future, with .keywords becoming a list of MD_Keywords instances. This is currently implemented in .keywords2. Please see https://github.com/geopython/OWSLib/issues/301 for more information
warnings.warn(
/home/ec2-user/my-env/lib/python3.9/site-packages/OWSLib-0.28.1-py3.9.egg/owslib/iso.py:321: FutureWarning: The .keywords_object attribute will become .keywords proper in the next release. .keywords_object is a list of ibstances of the Keyword class. See for https://github.com/geopython/OWSLib/pull/765 more details.
warnings.warn(
Traceback (most recent call last):
File "/home/ec2-user/my-env/bin/pygeometa", line 33, in <module>
sys.exit(load_entry_point('pygeometa==0.13.1', 'console_scripts', 'pygeometa')())
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/ec2-user/my-env/lib/python3.9/site-packages/click-8.1.3-py3.9.egg/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ec2-user/my-env/lib/python3.9/site-packages/pygeometa-0.13.1-py3.9.egg/pygeometa/core.py", line 491, in import_
content = schema_object.import_(metadata_file.read())
File "/home/ec2-user/my-env/lib/python3.9/site-packages/pygeometa-0.13.1-py3.9.egg/pygeometa/schemas/iso19139/__init__.py", line 124, in import_
'type': value.type,
AttributeError: 'dict' object has no attribute 'type'
confirming the status of the git repo (most recent commit) local to my machine:
commit ec03d4acd86a5e1a4af6a8d6b8e9f5699f85905e (HEAD -> master, origin/master, origin/HEAD)
Merge: 027e096 a77d524
Author: Tom Kralidis <[email protected]>
Date: Thu Mar 16 07:06:38 2023 -0400
Merge pull request #215 from geopython/oaproc-providers
Environment:
(my-env) (base) uname -r
5.10.167-147.601.amzn2.x86_64
(my-env) (base) python --version
Python 3.9.12
from pygeometa.
Good catch Shane. Reproduced. This is fixed in OWSLib master branch, and will be available on next release.
In the meantime, can you update OWSLib per below:
pip3 install https://github.com/geopython/OWSLib/archive/master.zip
...and try again?
from pygeometa.
Related Issues (20)
- separate crs registration from resource extent HOT 1
- support spatial extent as description HOT 4
- roundtrip iso-mcf-iso lacks crs
- Add license restriction to iso19139 HOT 3
- Error in using Transform function to convert iso19139 to wmo-wcmp2 HOT 4
- owslib importer for ISO is missing the capture of some attributes during parsing HOT 3
- Pygeometa Does Not Automatically Populate Extent Metadata for WCMP2 Record from MCF HOT 2
- contacts and distributions as array? HOT 1
- conversion of sample yaml to stac throws error HOT 1
- import metadata not activated on demo.pygeoapi.io
- Add support for importing QGIS qmd files HOT 2
- get schemas method on metadata processing plugin pygeoapi HOT 1
- check thesaurus import from iso19139 HOT 2
- alternate relations then parentidentifier
- add schema.org schema
- attributes and dimensions alignment vs featuretypes
- failing test test metadata import HOT 1
- stac generation fails if mcf has no 'pointofcontact'
- crs has no prefix?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygeometa.