147 lines
9.4 KiB
Python
147 lines
9.4 KiB
Python
# 00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml
|
|
expect_values0 = {
|
|
'guid': '00a743bf-cca4-4c19-a8e5-e64f7edbcadd',
|
|
'metadata-language': 'eng',
|
|
'resource-type': 'dataset',
|
|
'metadata-point-of-contact': [{'contact-info': {'email': 'gis@barrowbc.gov.uk'}, 'organisation-name': 'Barrow Borough Council', 'role': 'pointOfContact', 'position-name': ''}],
|
|
'metadata-date': '2009-10-16',
|
|
'spatial-reference-system': '<gmd:MD_ReferenceSystem xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink"><gmd:referenceSystemIdentifier><gmd:RS_Identifier><gmd:code><gco:CharacterString>urn:ogc:def:crs:EPSG::27700</gco:CharacterString></gmd:code></gmd:RS_Identifier></gmd:referenceSystemIdentifier></gmd:MD_ReferenceSystem>',
|
|
'title': 'Council Owned Litter Bins',
|
|
'alternative-title': [],
|
|
'dataset-reference-date': [
|
|
{
|
|
'type': 'creation',
|
|
'value': '2008-10-10',
|
|
},{
|
|
'type': 'revision',
|
|
'value': '2009-10-08',
|
|
},
|
|
],
|
|
'date-released': '',
|
|
'date-updated': '2009-10-08',
|
|
#'unique-resource-identifier': '<gmd:RS_Identifier xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink"><gmd:code><gco:CharacterString>BBC:000006</gco:CharacterString></gmd:code><gmd:codeSpace><gco:CharacterString>Barrow Borough Council</gco:CharacterString></gmd:codeSpace></gmd:RS_Identifier>',
|
|
'abstract': 'Location of Council owned litter bins within Borough.',
|
|
'responsible-organisation': [
|
|
{
|
|
'contact-info': {
|
|
'email': 'gis@barrowbc.gov.uk',
|
|
},
|
|
'organisation-name': 'Barrow Borough Council',
|
|
'role': 'pointOfContact',
|
|
'position-name': ''
|
|
}
|
|
],
|
|
'publisher': '',
|
|
'contact': 'Barrow Borough Council',
|
|
'contact-email': 'gis@barrowbc.gov.uk',
|
|
'frequency-of-update': 'unknown',
|
|
'keyword-inspire-theme': ['Utility and governmental services'],
|
|
'keyword-controlled-other': ['Utility and governmental services'],
|
|
'keyword-free-text': [],
|
|
'tags': ['Utility and governmental services'],
|
|
'limitations-on-public-access': ['(e) intellectual property rights;'],
|
|
'use-constraints': ['conditions unknown'],
|
|
'spatial-data-service-type': '',
|
|
'spatial-resolution': '',
|
|
'equivalent-scale': ['1250'],
|
|
'dataset-language': ['eng'],
|
|
'topic-category': ['environment'],
|
|
'extent-controlled': [],
|
|
'extent-free-text': [],
|
|
'bbox-west-long': '-3.32485',
|
|
'bbox-east-long': '-3.12442',
|
|
'bbox-north-lat': '54.218407',
|
|
'bbox-south-lat': '54.039634',
|
|
'temporal-extent-begin': '1977-03-10T11:45:30',
|
|
'temporal-extent-end': '2005-01-15T09:10:00',
|
|
'vertical-extent': '',
|
|
'coupled-resource': [],
|
|
'additional-information-source': '',
|
|
'data-format': [
|
|
{'version': '', 'name': ''}
|
|
],
|
|
'resource-locator': [
|
|
{
|
|
'url': 'http://www.barrowbc.gov.uk',
|
|
'function': '',
|
|
}
|
|
],
|
|
'url': '',
|
|
'conformity-specification': '',
|
|
'conformity-pass': '',
|
|
'conformity-explanation': '',
|
|
'lineage': 'Dataset created from ground surveys using Ordnance Survey Mastemap as base.',
|
|
}
|
|
|
|
# My series sample.xml
|
|
expect_values1 = {
|
|
'guid': '603f921c-79df-4866-ac69-f4acc37e4851',
|
|
'metadata-language': 'eng',
|
|
'resource-type': 'series',
|
|
'metadata-point-of-contact': [{'contact-info': {'email': 'customerservices@ordnancesurvey.co.uk'}, 'organisation-name': 'Ordnance Survey', 'role': 'publisher', 'position-name': 'Customer services'}],
|
|
'metadata-date': '2010-08-19T17:05:15',
|
|
'spatial-reference-system': '<gmd:MD_ReferenceSystem xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:referenceSystemIdentifier><gmd:RS_Identifier><gmd:code><gco:CharacterString>urn:ogc:def:crs:EPSG::4258</gco:CharacterString></gmd:code></gmd:RS_Identifier></gmd:referenceSystemIdentifier></gmd:MD_ReferenceSystem>',
|
|
'title': u'OS MasterMap\xae Imagery Layer',
|
|
'alternative-title': [],
|
|
'dataset-reference-date': [
|
|
{
|
|
'type': 'creation',
|
|
'value': '2004-09-15T16:13:00',
|
|
},
|
|
],
|
|
'date-released': '',
|
|
'date-updated': '',
|
|
#'unique-resource-identifier': '<gmd:RS_Identifier xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:code><gco:CharacterString>OSMM Imagery</gco:CharacterString></gmd:code><gmd:codeSpace><gco:CharacterString>http://www.ordnancesurvey.co.uk</gco:CharacterString></gmd:codeSpace></gmd:RS_Identifier>',
|
|
'abstract': u'High resolution, national, fully Orthorectified colour imagery product. Complements other OS Mastermap\xae Layers. Regularly maintained and updated. Available to order over the internet.',
|
|
'responsible-organisation': [
|
|
{
|
|
'contact-info': {
|
|
'email': 'customerservices@ordnancesurvey.co.uk'
|
|
},
|
|
'organisation-name': 'Ordnance Survey',
|
|
'role': 'publisher',
|
|
'position-name': 'Customer services',
|
|
}
|
|
],
|
|
'publisher': 'Ordnance Survey',
|
|
'contact': 'Ordnance Survey',
|
|
'contact-email': 'customerservices@ordnancesurvey.co.uk',
|
|
'frequency-of-update': 'asNeeded',
|
|
'keyword-inspire-theme': ['Land and premises', 'Orthoimagery'],
|
|
'keyword-controlled-other': ['Land and premises', 'Orthoimagery'],
|
|
'keyword-free-text': [],
|
|
'tags': ['Land and premises', 'Orthoimagery'],
|
|
'limitations-on-public-access': [],
|
|
'use-constraints': [],
|
|
'spatial-data-service-type': '',
|
|
'spatial-resolution': '<gco:Distance xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uom="urn:ogc:def:uom:EPSG::9001">25</gco:Distance>',
|
|
'equivalent-scale': [],
|
|
'dataset-language': [],
|
|
'topic-category': ['imageryBaseMapsEarthCover'],
|
|
'extent-controlled': [],
|
|
'extent-free-text': [],
|
|
'bbox-west-long': '-8.45472',
|
|
'bbox-east-long': '1.78024',
|
|
'bbox-north-lat': '60.8599',
|
|
'bbox-south-lat': '49.8634',
|
|
'temporal-extent-begin': '',
|
|
'temporal-extent-end': '',
|
|
'vertical-extent': '',
|
|
'coupled-resource': [],
|
|
'additional-information-source': '',
|
|
'data-format': [
|
|
{'version': 'not applicable', 'name': 'JPEG'}
|
|
],
|
|
'resource-locator': [
|
|
{
|
|
'url': 'http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/',
|
|
'function': 'information',
|
|
}
|
|
],
|
|
'url': 'http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/',
|
|
'conformity-specification': '<gmd:specification xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:CI_Citation><gmd:title><gco:CharacterString>OS MasterMap Imagery Specification</gco:CharacterString></gmd:title><gmd:date><gmd:CI_Date><gmd:date><gco:Date>2010-08-19</gco:Date></gmd:date><gmd:dateType><gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/></gmd:dateType></gmd:CI_Date></gmd:date><gmd:identifier><gmd:MD_Identifier><gmd:code><gco:CharacterString>http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/technical.html</gco:CharacterString></gmd:code></gmd:MD_Identifier></gmd:identifier></gmd:CI_Citation></gmd:specification>',
|
|
'conformity-pass': 'true',
|
|
'conformity-explanation': 'conforms',
|
|
'lineage': 'Aerial imagery processed by Ordnance Survey',
|
|
}
|