Read/Wite GML. Create a new instance with the OpenLayers.Format.GML constructor. Supports the GML simple features profile.
| OpenLayers. Format.GML | Read/Wite GML. |
| Properties | |
| featureNS | {String} Namespace used for feature attributes. |
| featurePrefix | {String} Namespace alias (or prefix) for feature nodes. |
| featureName | {String} Element name for features. |
| layerName | {String} Name of data layer. |
| geometryName | {String} Name of geometry element. |
| collectionName | {String} Name of featureCollection element. |
| gmlns | {String} GML Namespace. |
| 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. |
| Constructor | |
| OpenLayers. Format.GML | Create a new parser for GML. |
| Functions | |
| read | Read data from a string, and return a list of features. |
| write | Generate a GML document string given a list of features. |
| buildGeometryNode |
{String} Namespace used for feature attributes. Default is “http://mapserver.gis.umn.edu/mapserver”.
read: function( data )
Read data from a string, and return a list of features.
| data | {String} or {DOMElement} data to read/parse. |
{Array(OpenLayers.Feature.Vector)} An array of features.
write: function( features )
Generate a GML document string given a list of features.
| features | {Array(OpenLayers.Feature.Vector)} List of features to serialize into a string. |
{String} A string representing the GML document.
Read data from a string, and return a list of features.
read: function( data )
Generate a GML document string given a list of features.
write: function( features )
buildGeometryNode: function( geometry )