libs/sensorml/src/lib/model/gml/AbstractFeature.ts
The basic feature model is given by the gml:AbstractFeatureType. The content model for gml:AbstractFeatureType adds two specific properties suitable for geographic features to the content model defined in gml:AbstractGMLType.
Properties |
Methods |
boundedBy |
Type : Envelope
|
Decorators :
@DisplayName('Bounded by')
|
The value of the gml:boundedBy property describes an envelope that encloses the entire feature instance, and is primarily useful for supporting rapid searching for features that occur in a particular location. |
location |
Type : any
|
Decorators :
@DisplayName('Location')
|
The value of the gml:location property describes the extent, position or relative location of the feature. |
description |
Type : string
|
Decorators :
@DisplayName('Description')
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:23
|
The value of this property is a text description of the object. gml:description uses gml:StringOrRefType as its content model, so it may contain a simple text string content, or carry a reference to an external description. The use of gml:description to reference an external description has been deprecated and replaced by the gml:descriptionReference property. |
descriptionReference |
Type : string
|
Decorators :
@DisplayName('Description reference')
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:30
|
The value of this property is a remote text description of the object. The xlink:href attribute of the gml:descriptionReference property references the external description. |
gmlId |
Type : string
|
Decorators :
@DisplayName('GML ID')
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:13
|
identifier |
Type : CodeType
|
Decorators :
@DisplayName('Identifier')
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:51
|
Often, a special identifier is assigned to an object by the maintaining authority with the intention that it is used in references to the object. For such cases, the codeSpace shall be provided. That identifier is usually unique either globally or within an application domain. gml:identifier is a pre-defined property for such identifiers. |
name |
Type : CodeType[]
|
Decorators :
@DisplayName('Name')
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:42
|
The gml:name property provides a label or identifier for the object, commonly a descriptive name. An object may have several names, typically assigned by different authorities. gml:name uses the gml:CodeType content model. The authority for a name is indicated by the value of its (optional) codeSpace attribute. The name may or may not be unique, as determined by the rules of the organization responsible for the codeSpace. In common usage there will be one name per authority, so a processing application may select the name from its preferred codeSpace. |
toString |
toString()
|
Returns :
string
|
toString |
toString()
|
Inherited from
AbstractGML
|
Defined in
AbstractGML:53
|
Returns :
string
|
import { AbstractGML } from './AbstractGML';
import { Envelope } from './Envelope';
import { DisplayName } from '../../common/decorators/DisplayName';
/**
* The basic feature model is given by the gml:AbstractFeatureType.
* The content model for gml:AbstractFeatureType adds two specific properties
* suitable for geographic features to the content model defined in
* gml:AbstractGMLType.
*/
export abstract class AbstractFeature extends AbstractGML {
/**
* The value of the gml:boundedBy property describes an envelope that encloses
* the entire feature instance, and is primarily useful for supporting rapid
* searching for features that occur in a particular location.
*/
@DisplayName('Bounded by')
boundedBy: Envelope;
/**
* The value of the gml:location property describes the extent, position or
* relative location of the feature.
*/
@DisplayName('Location')
location: any;
toString() {
return 'Abstract feature';
}
}