108 lines
4.4 KiB
TypeScript
108 lines
4.4 KiB
TypeScript
export default TextFeature;
|
|
/**
|
|
* @classdesc
|
|
* Abstract base class; normally only used for creating subclasses and not
|
|
* instantiated in apps.
|
|
* Base class for text feature formats.
|
|
*
|
|
* @abstract
|
|
*/
|
|
declare class TextFeature extends FeatureFormat<import("../Feature.js").default<import("../geom/Geometry.js").default>> {
|
|
constructor();
|
|
/**
|
|
* Read the feature from the source.
|
|
*
|
|
* @param {Document|Element|Object|string} source Source.
|
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
* @return {import("../Feature.js").default} Feature.
|
|
* @api
|
|
* @override
|
|
*/
|
|
override readFeature(source: Document | Element | any | string, options?: import("./Feature.js").ReadOptions): import("../Feature.js").default;
|
|
/**
|
|
* @abstract
|
|
* @param {string} text Text.
|
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
* @protected
|
|
* @return {import("../Feature.js").default} Feature.
|
|
*/
|
|
protected readFeatureFromText(text: string, options?: import("./Feature.js").ReadOptions): import("../Feature.js").default;
|
|
/**
|
|
* @abstract
|
|
* @param {string} text Text.
|
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
* @protected
|
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
*/
|
|
protected readFeaturesFromText(text: string, options?: import("./Feature.js").ReadOptions): Array<import("../Feature.js").default>;
|
|
/**
|
|
* @abstract
|
|
* @param {string} text Text.
|
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
* @protected
|
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
*/
|
|
protected readGeometryFromText(text: string, options?: import("./Feature.js").ReadOptions): import("../geom/Geometry.js").default;
|
|
/**
|
|
* @param {string} text Text.
|
|
* @protected
|
|
* @return {import("../proj/Projection.js").default|undefined} Projection.
|
|
*/
|
|
protected readProjectionFromText(text: string): import("../proj/Projection.js").default | undefined;
|
|
/**
|
|
* Encode a feature as a string.
|
|
*
|
|
* @param {import("../Feature.js").default} feature Feature.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @return {string} Encoded feature.
|
|
* @api
|
|
* @override
|
|
*/
|
|
override writeFeature(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions): string;
|
|
/**
|
|
* @abstract
|
|
* @param {import("../Feature.js").default} feature Features.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @protected
|
|
* @return {string} Text.
|
|
*/
|
|
protected writeFeatureText(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions): string;
|
|
/**
|
|
* Encode an array of features as string.
|
|
*
|
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @return {string} Encoded features.
|
|
* @api
|
|
* @override
|
|
*/
|
|
override writeFeatures(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions): string;
|
|
/**
|
|
* @abstract
|
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @protected
|
|
* @return {string} Text.
|
|
*/
|
|
protected writeFeaturesText(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions): string;
|
|
/**
|
|
* Write a single geometry.
|
|
*
|
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @return {string} Geometry.
|
|
* @api
|
|
* @override
|
|
*/
|
|
override writeGeometry(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions): string;
|
|
/**
|
|
* @abstract
|
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
* @protected
|
|
* @return {string} Text.
|
|
*/
|
|
protected writeGeometryText(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions): string;
|
|
}
|
|
import FeatureFormat from '../format/Feature.js';
|
|
//# sourceMappingURL=TextFeature.d.ts.map
|