3D-City Model
    Preparing search index...

    Class GeojsonFeatureAbstract

    Abstract base class for a GeoJSON Feature. Subclasses implement geometry type and coordinate formatting.

    Handles number formatting (two decimals) for properties and provides a custom string (JSON) representation.

    Geometry coordinates for the feature.

    Properties for the feature.

    // Usage is via subclass (see below)
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    coordinates: any

    Raw geometry coordinates for this feature.

    geometryType: null | string

    The geometry type (set by subclass).

    properties: object

    Object of key/value properties.

    Methods

    • JSON.stringify replacer function that rounds all numbers to two decimals.

      Parameters

      • key: string
      • value: any

      Returns any