Comments (4)
@geofbaum thanks for the report. I am unable to reproduce. The following works for me:
import yaml
from pygeometa.core import render_template
with open('sample.yml') as fh:
d = yaml.load(fh)
print(d['identification']['title_en'])
print(render_template(d, schema='iso19139'))
d['identification']['title_en'] = 'another title'
print(d['identification']['title_en'])
print(render_template(d, schema='iso19139'))
from pygeometa.
@tomkralidis Thanks for your reply, when I copy and paste your code into the same JupyterLab it works even with me subbing out 'another title' for the extracted title that I was attempting to use before. So there's something going on I assume somewhere with my code. I'll start adding each section that I want to change to your example code line by line and see where the issue is coming from and report back.
Thanks again.
from pygeometa.
Well I found it, and it's my error and my fault for not triple checking my code. I was passing a url value in the distribution section directly to a url section like d['distribution']['url']
and not to a section like d['distribution']['wms']['url']
. Sorry again @tomkralidis !
from pygeometa.
@geofbaum all good - thanks for following up and good luck!
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
- "AttributeError: 'dict' object has no attribute 'type'" when running pygeometa metadata import for iso19139 schema HOT 5
- 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.