Class GeographicTilingScheme

java.lang.Object
com.gaia3d.util.geographic.GeographicTilingScheme

public class GeographicTilingScheme extends Object
GeographicTilingScheme implements a tiling scheme based on geographic coordinates (latitude and longitude). It divides the world into tiles at various levels of detail.
  • Field Details

  • Constructor Details

    • GeographicTilingScheme

      public GeographicTilingScheme()
  • Method Details

    • cartesianToGeographic

      public org.joml.Vector3d cartesianToGeographic(org.joml.Vector3d cartesian)
    • geographicToCartesian

      public org.joml.Vector3d geographicToCartesian(org.joml.Vector3d geographic)
    • positionToTile

      public TileCoordinate positionToTile(int level, double latitude, double longitude)
      (lat, lon) 좌표를 타일 좌표(level, x, y)로 변환한다. y=0 이 북쪽, y 증가할수록 남쪽으로 내려간다.
      Parameters:
      level - tile level (0 ~ maxLevel)
      latitude - 위도(-90 ~ 90)
      longitude - 경도(-180 ~ 180)
    • tileToBounds

      public GaiaRectangle tileToBounds(TileCoordinate tile)
      주어진 타일(level, x, y)의 위경도 경계를 반환한다. y=0 이 북쪽, y 증가할수록 남쪽으로 내려간다.
    • tileToBounds

      public GaiaRectangle tileToBounds(int level, int x, int y)
    • getNumberOfXTilesAtLevel

      public int getNumberOfXTilesAtLevel(int level)
      주어진 level에서 X 방향 타일 개수 (경도 방향).
    • getNumberOfYTilesAtLevel

      public int getNumberOfYTilesAtLevel(int level)
      주어진 level에서 Y 방향 타일 개수 (위도 방향).