Changeset 1036
- Timestamp:
- 01/24/08 09:47:37
- Files:
-
- OWSLib/branches/wcstemp/owslib/coverage/wcs100.py (modified) (2 diffs)
- OWSLib/branches/wcstemp/owslib/coverage/wcs110.py (modified) (2 diffs)
- OWSLib/branches/wcstemp/tests/wcs_newiface.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OWSLib/branches/wcstemp/owslib/coverage/wcs100.py
r1035 r1036 48 48 #serviceIdentification metadata 49 49 subelem=self._capabilities.find(ns('Service/')) 50 self. serviceidentification=ServiceIdenfication(subelem)50 self.identification=ServiceIdenfication(subelem) 51 51 52 52 #serviceProvider metadata 53 53 subelem=self._capabilities.find(ns('Service/')+ns('responsibleParty')) 54 self. serviceprovider=ServiceProvider(subelem)54 self.provider=ServiceProvider(subelem) 55 55 56 56 #serviceOperations metadata … … 196 196 def __init__(self,elem): 197 197 try: 198 self. provider=elem.find(ns('organisationName')).text198 self.name=elem.find(ns('organisationName')).text 199 199 except AttributeError: 200 self. provider=''200 self.name='' 201 201 self.url ="URL for provider's web site (string)." #TODO 202 202 self.contact = "How to contact the service provider (string)." #TO DECIDE - simple attributes? OWSLib/branches/wcstemp/owslib/coverage/wcs110.py
r1034 r1036 52 52 #serviceIdentification metadata 53 53 elem=self._capabilities.find('{http://www.opengis.net/wcs/1.1/ows}ServiceIdentification') 54 self. serviceidentification=ServiceIdentification(elem)54 self.identification=ServiceIdentification(elem) 55 55 56 56 #serviceProvider 57 57 elem=self._capabilities.find('{http://www.opengis.net/ows}ServiceProvider') 58 self. serviceprovider=ServiceProvider(elem)58 self.provider=ServiceProvider(elem) 59 59 60 60 #serviceOperations … … 232 232 implements IServiceProviderMetadata """ 233 233 def __init__(self,elem): 234 self. provider=elem.find('{http://www.opengis.net/ows}ProviderName').text235 self.contact=ServiceContact(elem.find('{http://www.opengis.net/ows}ServiceContact'))236 self.contact ='How to contact the service provider (string).'234 self.name=elem.find('{http://www.opengis.net/ows}ProviderName').text 235 #self.contact=ServiceContact(elem.find('{http://www.opengis.net/ows}ServiceContact')) 236 self.contact = "How to contact the service provider (string)." #TO DECIDE - simple attributes? 237 237 self.url="URL for provider's web site (string)." 238 238 OWSLib/branches/wcstemp/tests/wcs_newiface.txt
r1027 r1036 12 12 >>> wcs.version 13 13 '1.0.0' 14 >>> wcs. serviceidentification.service14 >>> wcs.identification.service 15 15 'tba' 16 >>> wcs. serviceidentification.version16 >>> wcs.identification.version 17 17 '1.0.0' 18 >>> wcs. serviceidentification.title18 >>> wcs.identification.title 19 19 'tba' 20 >>> wcs. serviceidentification.abstract20 >>> wcs.identification.abstract 21 21 '\n Web Map Server maintained by BADC\n Contact: webmaster@badc.nerc.ac.uk ' 22 >>> wcs. serviceidentification.keywords22 >>> wcs.identification.keywords 23 23 ['atmospheric', 'climate'] 24 >>> wcs. serviceidentification.fees24 >>> wcs.identification.fees 25 25 'NONE' 26 >>> wcs. serviceidentification.accessConstraints26 >>> wcs.identification.accessConstraints 27 27 'NONE' 28 >>> wcs. serviceprovider.provider28 >>> wcs.provider.name 29 29 'British Atmospheric Data Centre' 30 >>> wcs. serviceprovider.url30 >>> wcs.provider.url 31 31 "URL for provider's web site (string)." 32 >>> wcs. serviceprovider.contact32 >>> wcs.provider.contact 33 33 'How to contact the service provider (string).' 34 34 >>> type(wcs.items()) … … 39 39 >>> cvg.keywords 40 40 ['NONE'] 41 >>> wcs. serviceidentification.accessConstraints41 >>> wcs.identification.accessConstraints 42 42 'NONE' 43 >>> wcs. serviceidentification.fees43 >>> wcs.identification.fees 44 44 'NONE' 45 45 >>> cvg.boundingBoxWGS84 … … 64 64 >>> wcs.version 65 65 '1.1.0' 66 >>> wcs. serviceidentification.service66 >>> wcs.identification.service 67 67 'WCS' 68 >>> wcs. serviceidentification.version68 >>> wcs.identification.version 69 69 '1.1.0' 70 >>> wcs. serviceidentification.title70 >>> wcs.identification.title 71 71 'BADC OGC WCS Server' 72 >>> wcs. serviceidentification.abstract72 >>> wcs.identification.abstract 73 73 '\n Web Map Server maintained by BADC\n Contact: webmaster@badc.nerc.ac.uk ' 74 >>> wcs. serviceidentification.keywords74 >>> wcs.identification.keywords 75 75 ['atmospheric', 'climate'] 76 >>> wcs. serviceidentification.fees76 >>> wcs.identification.fees 77 77 'NONE' 78 >>> wcs. serviceidentification.accessConstraints78 >>> wcs.identification.accessConstraints 79 79 'NONE' 80 >>> wcs. serviceprovider.provider80 >>> wcs.provider.name 81 81 'British Atmospheric Data Centre' 82 >>> wcs. serviceprovider.url82 >>> wcs.provider.url 83 83 "URL for provider's web site (string)." 84 >>> wcs. serviceprovider.contact84 >>> wcs.provider.contact 85 85 'How to contact the service provider (string).' 86 86 >>> type(wcs.items()) … … 91 91 >>> cvg.keywords 92 92 ['NONE', 'NONE'] 93 >>> wcs. serviceidentification.accessConstraints93 >>> wcs.identification.accessConstraints 94 94 'NONE' 95 >>> wcs. serviceidentification.fees95 >>> wcs.identification.fees 96 96 'NONE' 97 97 >>> cvg.boundingBoxWGS84
