Move WriteTransactionOptions to ol/format/WFS
This commit is contained in:
@@ -5,95 +5,6 @@
|
||||
let olx;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{featureNS: string,
|
||||
* featurePrefix: string,
|
||||
* featureType: string,
|
||||
* srsName: (string|undefined),
|
||||
* handle: (string|undefined),
|
||||
* hasZ: (boolean|undefined),
|
||||
* nativeElements: Array.<Object>,
|
||||
* gmlOptions: (module:ol/format/GMLBase~Options|undefined),
|
||||
* version: (string|undefined)}}
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions;
|
||||
|
||||
|
||||
/**
|
||||
* The namespace URI used for features.
|
||||
* @type {string}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.featureNS;
|
||||
|
||||
|
||||
/**
|
||||
* The prefix for the feature namespace.
|
||||
* @type {string}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.featurePrefix;
|
||||
|
||||
|
||||
/**
|
||||
* The feature type name.
|
||||
* @type {string}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.featureType;
|
||||
|
||||
|
||||
/**
|
||||
* SRS name. No srsName attribute will be set on geometries when this is not
|
||||
* provided.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.srsName;
|
||||
|
||||
|
||||
/**
|
||||
* Handle.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.handle;
|
||||
|
||||
|
||||
/**
|
||||
* Must be set to true if the transaction is for a 3D layer. This will allow
|
||||
* the Z coordinate to be included in the transaction.
|
||||
* @type {boolean|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.hasZ;
|
||||
|
||||
|
||||
/**
|
||||
* Native elements. Currently not supported.
|
||||
* @type {Array.<Object>}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.nativeElements;
|
||||
|
||||
|
||||
/**
|
||||
* GML options for the WFS transaction writer.
|
||||
* @type {module:ol/format/GMLBase~Options|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.gmlOptions;
|
||||
|
||||
|
||||
/**
|
||||
* WFS version to use for the transaction. Can be either `1.0.0` or `1.1.0`.
|
||||
* Default is `1.1.0`.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteTransactionOptions.prototype.version;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{splitCollection: (boolean|undefined)}}
|
||||
*/
|
||||
|
||||
@@ -1,21 +1,4 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WFSWriteTransactionOptions
|
||||
* @property {string} featureNS The namespace URI used for features.
|
||||
* @property {string} featurePrefix The prefix for the feature namespace.
|
||||
* @property {string} featureType The feature type name.
|
||||
* @property {string|undefined} srsName SRS name. No srsName attribute will be set on geometries when this is not
|
||||
* provided.
|
||||
* @property {string|undefined} handle Handle.
|
||||
* @property {boolean|undefined} hasZ Must be set to true if the transaction is for a 3D layer. This will allow
|
||||
* the Z coordinate to be included in the transaction.
|
||||
* @property {Array.<Object>} nativeElements Native elements. Currently not supported.
|
||||
* @property {module:ol/format/GMLBase~Options|undefined} gmlOptions GML options for the WFS transaction writer.
|
||||
* @property {string|undefined} version WFS version to use for the transaction. Can be either `1.0.0` or `1.1.0`.
|
||||
* Default is `1.1.0`.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WKTOptions
|
||||
* @property {boolean|undefined} splitCollection Whether to split GeometryCollections into
|
||||
|
||||
@@ -55,6 +55,24 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} WriteTransactionOptions
|
||||
* @property {string} featureNS The namespace URI used for features.
|
||||
* @property {string} featurePrefix The prefix for the feature namespace.
|
||||
* @property {string} featureType The feature type name.
|
||||
* @property {string|undefined} srsName SRS name. No srsName attribute will be set on
|
||||
* geometries when this is not provided.
|
||||
* @property {string|undefined} handle Handle.
|
||||
* @property {boolean|undefined} hasZ Must be set to true if the transaction is for
|
||||
* a 3D layer. This will allow the Z coordinate to be included in the transaction.
|
||||
* @property {Array.<Object>} nativeElements Native elements. Currently not supported.
|
||||
* @property {module:ol/format/GMLBase~Options|undefined} gmlOptions GML options for
|
||||
* the WFS transaction writer.
|
||||
* @property {string|undefined} version WFS version to use for the transaction. Can be
|
||||
* either `1.0.0` or `1.1.0`. Default is `1.1.0`.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
@@ -982,7 +1000,7 @@ WFS.prototype.writeGetFeature = function(options) {
|
||||
* @param {Array.<ol.Feature>} inserts The features to insert.
|
||||
* @param {Array.<ol.Feature>} updates The features to update.
|
||||
* @param {Array.<ol.Feature>} deletes The features to delete.
|
||||
* @param {olx.format.WFSWriteTransactionOptions} options Write options.
|
||||
* @param {module:ol/format/WFS~WriteTransactionOptions} options Write options.
|
||||
* @return {Node} Result.
|
||||
* @api
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user