EarthSDK
    正在准备搜索索引...

    函数 toGeoJson

    • 将TopoJson,GeometryCollection,不标准格式比如只有geometries或只有feature的格式转为标准GeoJson格式

      参数

      • data:
            | Record<string, any>
            | Feature<Geometry, GeoJsonProperties>
            | FeatureCollection<Geometry, GeoJsonProperties>
            | GeometryCollection<Geometry>

        数据

      返回 FeatureCollection