react-native-mobilex 开发文档
    Preparing search index...

    Type Alias ICRSTranslator

    坐标转换模块

    type ICRSTranslator = {
        convertGeometry<T extends IGeoLine | IGeoPoint | IGeoRegion | IGeoText>(
            geometry: T,
            sourceCRS: ICRS,
            targetCRS: ICRS,
        ): Promise<T>;
        convertPoint2Ds(
            points: IPoint2D[],
            sourceCRS: ICRS,
            targetCRS: ICRS,
        ): IPoint2D[];
    }
    Index

    Methods

    • 二维点串坐标转换

      Parameters

      • points: IPoint2D[]

        要转换的二维点串

      • sourceCRS: ICRS

        原坐标系

      • targetCRS: ICRS

        目标坐标系

      Returns IPoint2D[]

      转换为目标坐标系的二维点串