File

libs/sensorml/src/lib/model/gml/Point.ts

Extends

AbstractGeometricPrimitive

Index

Properties
Methods

Properties

x
Type : number
Decorators :
@DisplayName('X')
y
Type : number
Decorators :
@DisplayName('Y')
axisLabels
Type : string[]
Decorators :
@DisplayName('Axis labels')
srsDimension
Type : number
Decorators :
@DisplayName('SRS dimension')
srsName
Type : string
Decorators :
@DisplayName('SRS name')
uomLabels
Type : string[]
Decorators :
@DisplayName('Unit of measure labels')
description
Type : string
Decorators :
@DisplayName('Description')

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')

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')
identifier
Type : CodeType
Decorators :
@DisplayName('Identifier')

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')

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.

axisLabels
Type : string[]
Decorators :
@DisplayName('Axis labels')
Inherited from AbstractGeometry
srsDimension
Type : number
Decorators :
@DisplayName('SRS dimension')
Inherited from AbstractGeometry
srsName
Type : string
Decorators :
@DisplayName('SRS name')
Inherited from AbstractGeometry
Defined in AbstractGeometry:7
uomLabels
Type : string[]
Decorators :
@DisplayName('Unit of measure labels')
Inherited from AbstractGeometry
description
Type : string
Decorators :
@DisplayName('Description')
Inherited from AbstractGeometry

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 AbstractGeometry

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 AbstractGeometry
identifier
Type : CodeType
Decorators :
@DisplayName('Identifier')
Inherited from AbstractGeometry

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 AbstractGeometry

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.

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.

Methods

toString
toString()
Returns : string
toString
toString()
Returns : string
toString
toString()
Returns : string
toString
toString()
Returns : string
toString
toString()
Inherited from AbstractGeometry
Returns : string
toString
toString()
Inherited from AbstractGeometry
Returns : string
toString
toString()
Inherited from AbstractGML
Defined in AbstractGML:53
Returns : string
import { AbstractGeometricPrimitive } from './AbstractGeometricPrimitive';
import { DisplayName } from '../../common/decorators/DisplayName';

export class Point extends AbstractGeometricPrimitive {
    @DisplayName('X')
    x: number;

    @DisplayName('Y')
    y: number;

    toString() {
        if ((this.x || this.x === 0) && (this.y || this.y === 0)) {
            return '(' + this.x + ';' + this.y + ')';
        }

        return 'Point';
    }
}

result-matching ""

    No results matching ""