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

    Type Alias IGeometrist$1

    type IGeometrist$1 = {
        buffer: (
            geometry: IGeoJSONPoint | IGeoJSONLine | IGeoJSONPolygon,
            param: BufferAnalystParam,
        ) => IGeoJSONFeature | null;
        createCircle: (
            center: IPoint2D,
            radius: number,
            pointCount: number,
            isPolygon: boolean,
        ) => IGeoJSONLine | IGeoJSONPolygon;
        measureLineAngle: (line1: IGeoJSONLine, line2: IGeoJSONLine) => number;
        polygonErase: (
            erasedPolygon: IGeoJSONPolygonLike,
            srcPolygon: IGeoJSONPolygonLike,
        ) => IGeoJSONFeature | null;
        polygonIntersect: (
            polygon1: IGeoJSONPolygonLike,
            polygon2: IGeoJSONPolygonLike,
        ) => IGeoJSONFeature | null;
        polygonUnion: (
            polygon1: IGeoJSONPolygonLike,
            polygon2: IGeoJSONPolygonLike,
        ) => IGeoJSONFeature | null;
        resample: (
            geometry: IGeoJSONPolygon | IGeoJSONLine,
            tolerance?: number,
        ) => IGeoJSONFeature | null;
        smooth: (
            geometry: IGeoJSONPolygon | IGeoJSONLine,
            smoothness?: number,
        ) => IGeoJSONFeature | null;
        nearestPointOnLine(
            line: IGeoLine,
            point: IPoint2D,
        ): { index: number; point: IPoint2D };
    }
    Index

    Methods

    • 根据点查找最近的线上节点

      Parameters

      Returns { index: number; point: IPoint2D }

      返回线上节点及节点在节点数组中的序号

    Properties

    buffer: (
        geometry: IGeoJSONPoint | IGeoJSONLine | IGeoJSONPolygon,
        param: BufferAnalystParam,
    ) => IGeoJSONFeature | null

    缓冲区分析

    Type declaration

    createCircle: (
        center: IPoint2D,
        radius: number,
        pointCount: number,
        isPolygon: boolean,
    ) => IGeoJSONLine | IGeoJSONPolygon

    圆坐标计算

    Type declaration

      • (
            center: IPoint2D,
            radius: number,
            pointCount: number,
            isPolygon: boolean,
        ): IGeoJSONLine | IGeoJSONPolygon
      • Parameters

        • center: IPoint2D

          中心点

        • radius: number

          半径(米)

        • pointCount: number

          点数量,默认72 ps.该值至少大于3

        • isPolygon: boolean

          返回面或线,默认true返回面

        Returns IGeoJSONLine | IGeoJSONPolygon

        圆面或线

    measureLineAngle: (line1: IGeoJSONLine, line2: IGeoJSONLine) => number

    计算两条线夹角

    Type declaration

    polygonErase: (
        erasedPolygon: IGeoJSONPolygonLike,
        srcPolygon: IGeoJSONPolygonLike,
    ) => IGeoJSONFeature | null

    面擦除

    Type declaration

    polygonIntersect: (
        polygon1: IGeoJSONPolygonLike,
        polygon2: IGeoJSONPolygonLike,
    ) => IGeoJSONFeature | null

    面相交

    Type declaration

    polygonUnion: (
        polygon1: IGeoJSONPolygonLike,
        polygon2: IGeoJSONPolygonLike,
    ) => IGeoJSONFeature | null

    面合并

    Type declaration

    resample: (
        geometry: IGeoJSONPolygon | IGeoJSONLine,
        tolerance?: number,
    ) => IGeoJSONFeature | null

    线重采样

    Type declaration

    smooth: (
        geometry: IGeoJSONPolygon | IGeoJSONLine,
        smoothness?: number,
    ) => IGeoJSONFeature | null

    线光滑

    Type declaration