Merge pull request #2123 from fredj/export-osmxml

Export ol.format.OSMXML#readFeatures and ol.format.OSMXML#readProjection
This commit is contained in:
Frédéric Junod
2014-05-27 15:40:35 +02:00
2 changed files with 26 additions and 4 deletions

View File

@@ -1208,7 +1208,7 @@ olx.format.GMLOptions.prototype.srsName;
/**
* Write gml:Surface instead of gml:Polygon elements. This also affects the
* elements in multi-part geometries. Default is `false´.
* elements in multi-part geometries. Default is `false`.
* @type {boolean|undefined}
*/
olx.format.GMLOptions.prototype.surface;
@@ -1216,7 +1216,7 @@ olx.format.GMLOptions.prototype.surface;
/**
* Write gml:Curve instead of gml:LineString elements. This also affects the
* elements in multi-part geometries. Default is `false´.
* elements in multi-part geometries. Default is `false`.
* @type {boolean|undefined}
*/
olx.format.GMLOptions.prototype.curve;
@@ -1224,7 +1224,7 @@ olx.format.GMLOptions.prototype.curve;
/**
* Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is
* deprecated in GML 3, the default is `true´.
* deprecated in GML 3, the default is `true`.
* @type {boolean|undefined}
*/
olx.format.GMLOptions.prototype.multiCurve;
@@ -1232,7 +1232,7 @@ olx.format.GMLOptions.prototype.multiCurve;
/**
* Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is
* deprecated in GML 3, the default is `true´.
* deprecated in GML 3, the default is `true`.
* @type {boolean|undefined}
*/
olx.format.GMLOptions.prototype.multiSurface;

View File

@@ -180,6 +180,17 @@ ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeParsersNS(
});
/**
* Read all features from an OSM source.
*
* @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {Array.<ol.Feature>} Features.
* @todo api
*/
ol.format.OSMXML.prototype.readFeatures;
/**
* @inheritDoc
*/
@@ -198,6 +209,17 @@ ol.format.OSMXML.prototype.readFeaturesFromNode = function(node) {
};
/**
* Read the projection from an OSM source.
*
* @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection.
* @todo api
*/
ol.format.OSMXML.prototype.readProjection;
/**
* @inheritDoc
*/