fromRaw static method

VectorTileGeomType fromRaw(
  1. VectorTile_GeomType rawGeomType
)

Implementation

static VectorTileGeomType fromRaw(raw.VectorTile_GeomType rawGeomType) {
  switch (rawGeomType) {
    case raw.VectorTile_GeomType.POINT:
      return VectorTileGeomType.POINT;
    case raw.VectorTile_GeomType.LINESTRING:
      return VectorTileGeomType.LINESTRING;
    case raw.VectorTile_GeomType.POLYGON:
      return VectorTileGeomType.POLYGON;
    default:
      return VectorTileGeomType.UNKNOWN;
  }
}