类 MvtParser


  • public class MvtParser
    extends Object
    mvt bytes解析
    作者:
    liuyu
    createdate
    2022/5/10
    • 构造器详细资料

      • MvtParser

        public MvtParser()
    • 方法详细资料

      • parse2TileCoords

        public static MvtParser.MvtFeatureLayer @NotNull [] parse2TileCoords​(byte[] data,
                                                                             @NotNull
                                                                             @NotNull org.locationtech.jts.geom.GeometryFactory gf)
        解析为瓦片坐标系
        参数:
        data - 矢量瓦片 bytes
        gf - jts GeometryFactory
        返回:
        MvtFeatureLayer
      • parse2Wgs84Coords

        public static MvtParser.MvtFeatureLayer @NotNull [] parse2Wgs84Coords​(byte z,
                                                                              int x,
                                                                              int y,
                                                                              byte[] data,
                                                                              @NotNull
                                                                              @NotNull org.locationtech.jts.geom.GeometryFactory gf)
        解析瓦片并将坐标转为wgs84坐标系
        参数:
        z - z
        x - x
        y - y
        data - 矢量瓦片 bytes
        gf - jts GeometryFactory
        返回:
        MvtFeatureLayer