Package com.gaia3d.util.geographic
Class GeographicTilingScheme
java.lang.Object
com.gaia3d.util.geographic.GeographicTilingScheme
GeographicTilingScheme implements a tiling scheme based on geographic coordinates (latitude and longitude).
It divides the world into tiles at various levels of detail.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3dcartesianToGeographic(org.joml.Vector3d cartesian) org.joml.Vector3dgeographicToCartesian(org.joml.Vector3d geographic) intgetNumberOfXTilesAtLevel(int level) 주어진 level에서 X 방향 타일 개수 (경도 방향).intgetNumberOfYTilesAtLevel(int level) 주어진 level에서 Y 방향 타일 개수 (위도 방향).positionToTile(int level, double latitude, double longitude) (lat, lon) 좌표를 타일 좌표(level, x, y)로 변환한다.tileToBounds(int level, int x, int y) tileToBounds(TileCoordinate tile) 주어진 타일(level, x, y)의 위경도 경계를 반환한다.
-
Field Details
-
MIN_LONGITUDE
public static final double MIN_LONGITUDE- See Also:
-
MAX_LONGITUDE
public static final double MAX_LONGITUDE- See Also:
-
MIN_LATITUDE
public static final double MIN_LATITUDE- See Also:
-
MAX_LATITUDE
public static final double MAX_LATITUDE- See Also:
-
LON_RANGE
public static final double LON_RANGE- See Also:
-
LAT_RANGE
public static final double LAT_RANGE- See Also:
-
-
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
(lat, lon) 좌표를 타일 좌표(level, x, y)로 변환한다. y=0 이 북쪽, y 증가할수록 남쪽으로 내려간다.- Parameters:
level- tile level (0 ~ maxLevel)latitude- 위도(-90 ~ 90)longitude- 경도(-180 ~ 180)
-
tileToBounds
주어진 타일(level, x, y)의 위경도 경계를 반환한다. y=0 이 북쪽, y 증가할수록 남쪽으로 내려간다. -
tileToBounds
-
getNumberOfXTilesAtLevel
public int getNumberOfXTilesAtLevel(int level) 주어진 level에서 X 방향 타일 개수 (경도 방향). -
getNumberOfYTilesAtLevel
public int getNumberOfYTilesAtLevel(int level) 주어진 level에서 Y 방향 타일 개수 (위도 방향).
-