[OpenLayers-Commits] r10964 - in sandbox/camptocamp/ifremer/openlayers: build lib/OpenLayers/Format/CSWGetRecords

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Dec 14 11:08:44 EST 2010


Author: fvanderbiest
Date: 2010-12-14 08:08:44 -0800 (Tue, 14 Dec 2010)
New Revision: 10964

Modified:
   sandbox/camptocamp/ifremer/openlayers/build/OpenLayers.cc.js
   sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js
Log:
camptocamp/ifremer sandbox: graphicOverview parsing

Modified: sandbox/camptocamp/ifremer/openlayers/build/OpenLayers.cc.js
===================================================================
--- sandbox/camptocamp/ifremer/openlayers/build/OpenLayers.cc.js	2010-12-14 14:33:15 UTC (rev 10963)
+++ sandbox/camptocamp/ifremer/openlayers/build/OpenLayers.cc.js	2010-12-14 16:08:44 UTC (rev 10964)
@@ -569,15 +569,15 @@
 c);b.gninfo=c}},gmd:{MD_Metadata:function(a,b){var c={type:"MD_Metadata"};this.readChildNodes(a,c);b.records.push(c)},MD_TopicCategoryCode:function(a,b){b.topicCategoryCode=this.getChildValue(a)},URL:function(a,b){b.URL=this.getChildValue(a)},"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();if(c in this.readers.gmd._createOneChild)b[c]=this.readChildNodes(a);else if(c in this.readers.gmd._createManyChildren){b[c]instanceof Array||(b[c]=[]);b[c].push(this.readChildNodes(a))}else if(c in
 this.readers.gmd._pass)this.readChildNodes(a,b);else if(c in this.readers.gmd._readAttributes){c=a.attributes;for(var d=0,e=c.length;d<e;++d)b[c[d].name]=c[d].nodeValue}},_readAttributes:{CI_RoleCode:null,MD_ProgressCode:null,MD_KeywordTypeCode:null,MD_RestrictionCode:null,MD_SpatialRepresentationTypeCode:null,MD_CharacterSetCode:null,CI_DateTypeCode:null,MD_TopologyLevelCode:null,MD_GeometricObjectTypeCode:null,MD_DimensionNameTypeCode:null,MD_CellGeometryCode:null,MD_MaintenanceFrequencyCode:null,
 MD_ScopeCode:null},_pass:{CI_ResponsibleParty:null,CI_Contact:null,CI_Telephone:null,CI_Address:null,MD_DataIdentification:null,MD_Keywords:null,MD_LegalConstraints:null,MD_Resolution:null,MD_RepresentativeFraction:null,EX_Extent:null,EX_GeographicBoundingBox:null,EX_TemporalExtent:null,MD_Distribution:null,MD_Distributor:null,MD_DigitalTransferOptions:null,MD_Format:null,MD_Medium:null,CI_OnlineResource:null,MD_ReferenceSystem:null,RS_Identifier:null,CI_Citation:null,CI_Date:null,MD_GridSpatialRepresentation:null,
-MD_VectorSpatialRepresentation:null,MD_GeometricObjects:null,MD_Dimension:null,MD_MaintenanceInformation:null,MD_ScopeDescription:null},_createManyChildren:{contact:null,voice:null,facsimile:null,deliveryPoint:null,electronicMailAddress:null,identificationInfo:null,pointOfContact:null,status:null,descriptiveKeywords:null,keyword:null,resourceConstraints:null,useLimitation:null,accessConstraints:null,useConstraints:null,otherConstraints:null,spatialResolution:null,spatialRepresentationType:null,language:null,
-characterSet:null,topicCategory:null,extent:null,geographicElement:null,temporalElement:null,distributor:null,transferOptions:null,distributionFormat:null,distributionOrderProcess:null,distributorFormat:null,formatDistributor:null,distributorTransferOptions:null,onLine:null,referenceSystemInfo:null,alternateTitle:null,date:null,identifier:null,citedResponsibleParty:null,presentationForm:null,spatialRepresentationInfo:null,geometricObjects:null,axisDimensionProperties:null,resourceMaintenance:null,
-updateScope:null,updateScopeDescription:null,maintenanceNote:null,attributes:null,features:null,featureInstances:null,attributeInstances:null},_createOneChild:{other:null,maintenanceAndUpdateFrequency:null,userDefinedMaintenanceFrequency:null,dataset:null,citation:null,dateOfNextUpdate:null,dimensionName:null,dimensionSize:null,resolution:null,numberOfDimensions:null,cellGeometry:null,transformationParameterAvailability:null,geometricObjectType:null,geometricObjectCount:null,topologyLevel:null,dateType:null,
-title:null,edition:null,editionDate:null,series:null,otherCitationDetails:null,collectiveTitle:null,ISBN:null,ISSN:null,authority:null,code:null,referenceSystemIdentifier:null,linkage:null,unitsOfDistribution:null,transferSize:null,offLine:null,name:null,version:null,amendmentNumber:null,specification:null,fileDecompressionTechnique:null,distributorContact:null,distributionInfo:null,westBoundLongitude:null,eastBoundLongitude:null,southBoundLatitude:null,northBoundLatitude:null,supplementalInformation:null,
-denominator:null,equivalentScale:null,type:null,purpose:null,"abstract":null,city:null,administrativeArea:null,postalCode:null,country:null,address:null,phone:null,contactInfo:null,role:null,fileIdentifier:null,language:null,dateStamp:null,metadataStandardName:null,metadataStandardVersion:null,individualName:null,organisationName:null,positionName:null}},gml:{TimePeriod:function(a,b){b.TimePeriod={};this.readChildNodes(a,b.TimePeriod)},beginPosition:function(a,b){b.beginPosition=this.getChildValue(a)},
-endPosition:function(a,b){b.endPosition=this.getChildValue(a)}},dc:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();b[c]instanceof Array||(b[c]=[]);for(var d={},e=a.attributes,f=0,g=e.length;f<g;++f)d[e[f].name]=e[f].nodeValue;d.value=this.getChildValue(a);b[c].push(d)}},dct:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();b[c]instanceof Array||(b[c]=[]);b[c].push(this.getChildValue(a))}},ows:OpenLayers.Util.applyDefaults({BoundingBox:function(a,b){if(b.bounds){b.BoundingBox=
-[{crs:b.projection,value:[b.bounds.left,b.bounds.bottom,b.bounds.right,b.bounds.top]}];delete b.projection;delete b.bounds}OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows.BoundingBox.apply(this,arguments)}},OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows)},write:function(a){a=this.writeNode("csw:GetRecords",a);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{ogc:{SortBy:function(a){var b=this.createElementNSPlus("ogc:SortBy");a.SortProperty&&this.writeNode("ogc:SortProperty",
-a.SortProperty,b);return b},SortProperty:function(a){var b=this.createElementNSPlus("ogc:SortProperty");this.writeNode("ogc:PropertyName",a.PropertyName,b);this.writeNode("ogc:SortOrder",a.SortOrder?a.SortOrder:"ASC",b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",{value:a})},SortOrder:function(a){return this.createElementNSPlus("ogc:SortOrder",{value:a})}},csw:{GetRecords:function(a){a||(a={});var b=this.createElementNSPlus("csw:GetRecords",{attributes:{service:"CSW",
-version:this.version,requestId:a.requestId||this.requestId,resultType:a.resultType||this.resultType,outputFormat:a.outputFormat||this.outputFormat,outputSchema:a.outputSchema||this.outputSchema,startPosition:a.startPosition||this.startPosition,maxRecords:a.maxRecords||this.maxRecords}});if(a.DistributedSearch||this.DistributedSearch)this.writeNode("csw:DistributedSearch",a.DistributedSearch||this.DistributedSearch,b);var c=a.ResponseHandler||this.ResponseHandler;if(c instanceof Array&&c.length>0)for(var d=
-0,e=c.length;d<e;d++)this.writeNode("csw:ResponseHandler",c[d],b);this.writeNode("Query",a.Query||this.Query,b);return b},DistributedSearch:function(a){return this.createElementNSPlus("csw:DistributedSearch",{attributes:{hopCount:a.hopCount}})},ResponseHandler:function(a){return this.createElementNSPlus("csw:ResponseHandler",{value:a.value})},Query:function(a){a||(a={});var b=this.createElementNSPlus("csw:Query",{attributes:{typeNames:a.typeNames||"csw:Record"}}),c=a.ElementName;if(c instanceof Array&&
-c.length>0)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ElementName",c[d],b);else this.writeNode("csw:ElementSetName",a.ElementSetName||{value:"summary"},b);a.Constraint&&this.writeNode("csw:Constraint",a.Constraint,b);a.SortBy&&this.writeNode("ogc:SortBy",a.SortBy,b);return b},ElementName:function(a){return this.createElementNSPlus("csw:ElementName",{value:a.value})},ElementSetName:function(a){return this.createElementNSPlus("csw:ElementSetName",{attributes:{typeNames:a.typeNames},value:a.value})},
-Constraint:function(a){var b=this.createElementNSPlus("csw:Constraint",{attributes:{version:a.version}});if(a.Filter){var c=new OpenLayers.Format.Filter({version:a.version});b.appendChild(c.write(a.Filter))}else if(a.CqlText){a=this.createElementNSPlus("CqlText",{value:a.CqlText.value});b.appendChild(a)}return b}}},CLASS_NAME:"OpenLayers.Format.CSWGetRecords.v2_0_2"});
+MD_VectorSpatialRepresentation:null,MD_GeometricObjects:null,MD_Dimension:null,MD_MaintenanceInformation:null,MD_ScopeDescription:null,MD_BrowseGraphic:null},_createManyChildren:{contact:null,voice:null,facsimile:null,deliveryPoint:null,electronicMailAddress:null,identificationInfo:null,pointOfContact:null,status:null,descriptiveKeywords:null,keyword:null,resourceConstraints:null,useLimitation:null,accessConstraints:null,useConstraints:null,otherConstraints:null,spatialResolution:null,spatialRepresentationType:null,
+language:null,characterSet:null,topicCategory:null,extent:null,geographicElement:null,temporalElement:null,distributor:null,transferOptions:null,distributionFormat:null,distributionOrderProcess:null,distributorFormat:null,formatDistributor:null,distributorTransferOptions:null,onLine:null,referenceSystemInfo:null,alternateTitle:null,date:null,identifier:null,citedResponsibleParty:null,presentationForm:null,spatialRepresentationInfo:null,geometricObjects:null,axisDimensionProperties:null,resourceMaintenance:null,
+updateScope:null,updateScopeDescription:null,maintenanceNote:null,attributes:null,features:null,featureInstances:null,attributeInstances:null,graphicOverview:null},_createOneChild:{fileName:null,fileDescription:null,fileType:null,other:null,maintenanceAndUpdateFrequency:null,userDefinedMaintenanceFrequency:null,dataset:null,citation:null,dateOfNextUpdate:null,dimensionName:null,dimensionSize:null,resolution:null,numberOfDimensions:null,cellGeometry:null,transformationParameterAvailability:null,geometricObjectType:null,
+geometricObjectCount:null,topologyLevel:null,dateType:null,title:null,edition:null,editionDate:null,series:null,otherCitationDetails:null,collectiveTitle:null,ISBN:null,ISSN:null,authority:null,code:null,referenceSystemIdentifier:null,linkage:null,unitsOfDistribution:null,transferSize:null,offLine:null,name:null,version:null,amendmentNumber:null,specification:null,fileDecompressionTechnique:null,distributorContact:null,distributionInfo:null,westBoundLongitude:null,eastBoundLongitude:null,southBoundLatitude:null,
+northBoundLatitude:null,supplementalInformation:null,denominator:null,equivalentScale:null,type:null,purpose:null,"abstract":null,city:null,administrativeArea:null,postalCode:null,country:null,address:null,phone:null,contactInfo:null,role:null,fileIdentifier:null,language:null,dateStamp:null,metadataStandardName:null,metadataStandardVersion:null,individualName:null,organisationName:null,positionName:null}},gml:{TimePeriod:function(a,b){b.TimePeriod={};this.readChildNodes(a,b.TimePeriod)},beginPosition:function(a,
+b){b.beginPosition=this.getChildValue(a)},endPosition:function(a,b){b.endPosition=this.getChildValue(a)}},dc:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();b[c]instanceof Array||(b[c]=[]);for(var d={},e=a.attributes,f=0,g=e.length;f<g;++f)d[e[f].name]=e[f].nodeValue;d.value=this.getChildValue(a);b[c].push(d)}},dct:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();b[c]instanceof Array||(b[c]=[]);b[c].push(this.getChildValue(a))}},ows:OpenLayers.Util.applyDefaults({BoundingBox:function(a,
+b){if(b.bounds){b.BoundingBox=[{crs:b.projection,value:[b.bounds.left,b.bounds.bottom,b.bounds.right,b.bounds.top]}];delete b.projection;delete b.bounds}OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows.BoundingBox.apply(this,arguments)}},OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows)},write:function(a){a=this.writeNode("csw:GetRecords",a);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{ogc:{SortBy:function(a){var b=this.createElementNSPlus("ogc:SortBy");a.SortProperty&&
+this.writeNode("ogc:SortProperty",a.SortProperty,b);return b},SortProperty:function(a){var b=this.createElementNSPlus("ogc:SortProperty");this.writeNode("ogc:PropertyName",a.PropertyName,b);this.writeNode("ogc:SortOrder",a.SortOrder?a.SortOrder:"ASC",b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",{value:a})},SortOrder:function(a){return this.createElementNSPlus("ogc:SortOrder",{value:a})}},csw:{GetRecords:function(a){a||(a={});var b=this.createElementNSPlus("csw:GetRecords",
+{attributes:{service:"CSW",version:this.version,requestId:a.requestId||this.requestId,resultType:a.resultType||this.resultType,outputFormat:a.outputFormat||this.outputFormat,outputSchema:a.outputSchema||this.outputSchema,startPosition:a.startPosition||this.startPosition,maxRecords:a.maxRecords||this.maxRecords}});if(a.DistributedSearch||this.DistributedSearch)this.writeNode("csw:DistributedSearch",a.DistributedSearch||this.DistributedSearch,b);var c=a.ResponseHandler||this.ResponseHandler;if(c instanceof
+Array&&c.length>0)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ResponseHandler",c[d],b);this.writeNode("Query",a.Query||this.Query,b);return b},DistributedSearch:function(a){return this.createElementNSPlus("csw:DistributedSearch",{attributes:{hopCount:a.hopCount}})},ResponseHandler:function(a){return this.createElementNSPlus("csw:ResponseHandler",{value:a.value})},Query:function(a){a||(a={});var b=this.createElementNSPlus("csw:Query",{attributes:{typeNames:a.typeNames||"csw:Record"}}),c=a.ElementName;
+if(c instanceof Array&&c.length>0)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ElementName",c[d],b);else this.writeNode("csw:ElementSetName",a.ElementSetName||{value:"summary"},b);a.Constraint&&this.writeNode("csw:Constraint",a.Constraint,b);a.SortBy&&this.writeNode("ogc:SortBy",a.SortBy,b);return b},ElementName:function(a){return this.createElementNSPlus("csw:ElementName",{value:a.value})},ElementSetName:function(a){return this.createElementNSPlus("csw:ElementSetName",{attributes:{typeNames:a.typeNames},
+value:a.value})},Constraint:function(a){var b=this.createElementNSPlus("csw:Constraint",{attributes:{version:a.version}});if(a.Filter){var c=new OpenLayers.Format.Filter({version:a.version});b.appendChild(c.write(a.Filter))}else if(a.CqlText){a=this.createElementNSPlus("CqlText",{value:a.CqlText.value});b.appendChild(a)}return b}}},CLASS_NAME:"OpenLayers.Format.CSWGetRecords.v2_0_2"});

Modified: sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js
===================================================================
--- sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js	2010-12-14 14:33:15 UTC (rev 10963)
+++ sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js	2010-12-14 16:08:44 UTC (rev 10964)
@@ -338,7 +338,8 @@
                 "MD_GeometricObjects": null,
                 "MD_Dimension": null,
                 "MD_MaintenanceInformation": null,
-                "MD_ScopeDescription": null
+                "MD_ScopeDescription": null,
+                "MD_BrowseGraphic": null
             },
             "_createManyChildren": {
                 "contact": null,
@@ -388,9 +389,13 @@
                 "attributes": null,
                 "features": null,
                 "featureInstances": null,
-                "attributeInstances": null
+                "attributeInstances": null,
+                "graphicOverview": null
             },
             "_createOneChild": {
+                "fileName":null,
+                "fileDescription":null,
+                "fileType":null,
                 "other":null,
                 "maintenanceAndUpdateFrequency":null,
                 "userDefinedMaintenanceFrequency":null,



More information about the Commits mailing list