API (v2.0.0) - Giro3D
    Preparing search index...

    Interface FeatureSource

    Interface for feature sources.

    Note

    To implement a feature source, you can use the FeatureSourceBase base class for convenience.

    interface FeatureSource {
        getFeatures(request: GetFeatureRequest): Promise<GetFeatureResult>;
        initialize(
            options: { targetCoordinateSystem: CoordinateSystem },
        ): Promise<void>;
    }

    Hierarchy

    Implemented by

    Index

    Methods

    • Initializes the source. The source is not useable before being initialized.

      Parameters

      • options: { targetCoordinateSystem: CoordinateSystem }
        • targetCoordinateSystem: CoordinateSystem

          The coordinate system of features that are generated by this source. The source is responsible for reprojecting features if their original CRS is different from the target.

      Returns Promise<void>