Read and write OWSContext version 0.3.1.
OpenLayers. | Read and write OWSContext version 0.3.1. |
Properties | |
namespaces | {Object} Mapping of namespace aliases to namespace URIs. |
Constants | |
VERSION | {String} 0.3.1 |
Properties | |
schemaLocation | {String} Schema location |
defaultPrefix | {String} Default namespace prefix to use. |
extractAttributes | {Boolean} Extract attributes from GML. |
xy | {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x) Changing is not recommended, a new Format should be instantiated. |
regExes | Compiled regular expressions for manipulating strings. |
featureNS | {String} The namespace uri to use for writing InlineGeometry |
featureType | {String} The name to use as the feature type when writing out InlineGeometry |
geometryName | {String} The name to use for the geometry attribute when writing out InlineGeometry |
nestingLayerLookup | {Object} Hashtable lookup for nesting layer nodes. |
Constructor | |
OpenLayers. | Instances of this class are not created directly. |
Functions | |
setNestingPath | Set the nestingPath property of the layer depending on the position of the layer in hierarchy of layers. |
decomposeNestingPath | “a”, “a/b”, “a/b/c” |
read | Read OWS context data from a string or DOMElement, and return a list of layers. |
processLayer | Recursive function to get back a flat list of layers from the hierarchic layer structure. |
write | |
Properties | |
readers | Contains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name. |
writers | As a compliment to the readers property, this structure contains public writing functions grouped by namespace alias and named like the node names they produce. |
{Object} Hashtable lookup for nesting layer nodes. Used while writing the OWS context document. It is necessary to keep track of the nestingPaths for which nesting layer nodes have already been created, so (nesting) layer nodes are added to those nodes.
layer1.metadata.nestingPath = “a/b/” layer2.metadata.nestingPath = “a/b/” layer2.metadata.nestingPath = “a/c”
then a nesting layer node “a” should be created once and added to the resource list, a nesting layer node “b” should be created once and added under “a”, and a nesting layer node “c” should be created and added under “a”. The lookup paths for these nodes will be “a”, “a/b”, and “a/c” respectively.
Instances of this class are not created directly. Use the OpenLayers.Format.OWSContext constructor instead.
options | {Object} An optional object whose properties will be set on this instance. |
Set the nestingPath property of the layer depending on the position of the layer in hierarchy of layers.
setNestingPath : function( l )
“a”, “a/b”, “a/b/c”
decomposeNestingPath: function( nPath )
Read OWS context data from a string or DOMElement, and return a list of layers.
read: function( data )
Recursive function to get back a flat list of layers from the hierarchic layer structure.
processLayer: function( layerArray, layer )
write: function( context, options )