Merge pull request #7375 from fredj/ows_more_ServiceIdentification
Read 'Abstract', 'AccessConstraints' and 'Fees' in ol.format.OWS
This commit is contained in:
@@ -403,6 +403,9 @@ ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
|
|||||||
ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
|
ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
|
||||||
ol.xml.makeStructureNS(
|
ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
|
'Abstract': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
|
'AccessConstraints': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
|
'Fees': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'ServiceTypeVersion': ol.xml.makeObjectPropertySetter(
|
'ServiceTypeVersion': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
|
|||||||
@@ -82,6 +82,11 @@ describe('ol.format.OWS 1.1', function() {
|
|||||||
|
|
||||||
var serviceIdentification = obj.ServiceIdentification;
|
var serviceIdentification = obj.ServiceIdentification;
|
||||||
expect(serviceIdentification).to.be.ok();
|
expect(serviceIdentification).to.be.ok();
|
||||||
|
expect(serviceIdentification.Abstract).to.eql(
|
||||||
|
'Service that contrains the map access interface to some TileMatrixSets'
|
||||||
|
);
|
||||||
|
expect(serviceIdentification.AccessConstraints).to.eql('none');
|
||||||
|
expect(serviceIdentification.Fees).to.eql('none');
|
||||||
expect(serviceIdentification.Title).to.eql('Web Map Tile Service');
|
expect(serviceIdentification.Title).to.eql('Web Map Tile Service');
|
||||||
expect(serviceIdentification.ServiceTypeVersion).to.eql('1.0.0');
|
expect(serviceIdentification.ServiceTypeVersion).to.eql('1.0.0');
|
||||||
expect(serviceIdentification.ServiceType).to.eql('OGC WMTS');
|
expect(serviceIdentification.ServiceType).to.eql('OGC WMTS');
|
||||||
|
|||||||
Reference in New Issue
Block a user