Superclass for GML parsers.
| OpenLayers. Format. GML.Base | Superclass for GML parsers. |
| Properties | |
| namespaces | {Object} Mapping of namespace aliases to namespace URIs. |
| defaultPrefix | |
| schemaLocation | {String} Schema location for a particular minor version. |
| featureType | {String} The local (without prefix) feature typeName. |
| featureNS | {String} The feature namespace. |
| geometry | {String} Name of geometry element. |
| extractAttributes | {Boolean} Extract attributes from GML. |
| srsName | {String} URI for spatial reference system. |
| 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. |
| Constructor | |
| OpenLayers. Format. GML.Base | Instances of this class are not created directly. |
| Functions and Properties | |
| read | |
| readers | Contains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name. |
| write | |
| 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. |
| geometryTypes | {Object} Maps OpenLayers geometry class names to GML element names. |
Instances of this class are not created directly. Use the OpenLayers.Format.GML.v2 or OpenLayers.Format.GML.v3 constructor instead.
| options | {Object} An optional object whose properties will be set on this instance. |
| featureType | {String} Local (without prefix) feature typeName (required). |
| featureNS | {String} Feature namespace (required). |
| geometryName | {String} Geometry element name. |
read: function( data )
| data | {DOMElement} A gml:featureMember element, a gml:featureMembers element, or an element containing either of the above at any level. |
{Array(OpenLayers.Feature.Vector)} An array of features.
write: function( features )
| features | {Array(OpenLayers.Feature.Vector) | OpenLayers.Feature.Vector} An array of features or a single feature. |
{String} Given an array of features, a doc with a gml:featureMembers element will be returned. Given a single feature, a doc with a gml:featureMember element will be returned.
read: function( data )
write: function( features )