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

Integrate it in PgMetadata #1

Open
mdouchin opened this issue May 26, 2023 · 1 comment
Open

Integrate it in PgMetadata #1

mdouchin opened this issue May 26, 2023 · 1 comment

Comments

@mdouchin
Copy link

Thanks a lot for this work. Would you mind if we integrate it in the plugin ?

@jbdesbas
Copy link
Member

Sur no problem 😃 . I will be glad if this work can help. Be aware that some parts of code are specific to our current needs and may not fit for generic use :

Add WFS/WMS endpoint :

XMLELEMENT(NAME "gmd:distributionInfo",
XMLELEMENT(NAME "gmd:MD_Distribution",
XMLELEMENT(NAME "gmd:transferOptions",
XMLELEMENT(NAME "gmd:MD_DigitalTransferOptions", --Liens de la fiches + liens du geoserveur g2f
links.agg_lk,
XMLELEMENT(NAME "gmd:onLine", --WMS Geo2france
XMLELEMENT(NAME "gmd:CI_OnlineResource",
XMLELEMENT(NAME "gmd:linkage",
XMLELEMENT(NAME "gmd:URL",'https://www.geo2france.fr/geoserver/cen_hdf/ows')
),
XMLELEMENT(NAME "gmd:name",
XMLELEMENT(NAME "gco:CharacterString", 'cen_hdf:'||d.table_name)
),
XMLELEMENT(NAME "gmd:protocol",
XMLELEMENT(NAME "gco:CharacterString", 'OGC:WMS')
),
XMLELEMENT(NAME "gmd:description",
XMLELEMENT(NAME "gco:CharacterString", d.abstract)
)
)
),
XMLELEMENT(NAME "gmd:onLine", --WFS Geo2france
XMLELEMENT(NAME "gmd:CI_OnlineResource",
XMLELEMENT(NAME "gmd:linkage",
XMLELEMENT(NAME "gmd:URL",'https://www.geo2france.fr/geoserver/cen_hdf/ows')
),
XMLELEMENT(NAME "gmd:name",
XMLELEMENT(NAME "gco:CharacterString", 'cen_hdf:'||d.table_name)
),
XMLELEMENT(NAME "gmd:protocol",
XMLELEMENT(NAME "gco:CharacterString", 'OGC:WFS')
),
XMLELEMENT(NAME "gmd:description",
XMLELEMENT(NAME "gco:CharacterString", d.abstract)
)
)
)
)
)
)
)

Please also take not that a Not Planned (NOP) publication frequency will we translated as completed. All others values are mapped to onGoing.

XMLELEMENT(NAME "gmd:status",
XMLELEMENT(NAME "gmd:MD_ProgressCode", XMLATTRIBUTES (CASE
WHEN d.publication_frequency = 'NOP' THEN 'completed'
ELSE 'onGoing' END AS "codeListValue" ,
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ProgressCode' AS "codeList"))
), --Parti-pris ?

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

2 participants