Provides coordinate conversion utilities between EPSG:4326 (WGS84) and tile coordinates.
More...
|
| fltp08 | tile_x_to_EPSG4326_lon_deg (uint04 x, uint04 z, fltp08 percent_x, fltp08 scale_factor=1.0) const |
| | Converts a tile X coordinate to longitude using a fractional position.
|
| fltp08 | tile_x_to_EPSG4326_lon_deg (uint04 x, uint04 z, TileLocation location, fltp08 scale_factor=1.0) const |
| | Converts a tile X coordinate to longitude in degrees.
|
| fltp08 | tile_y_to_EPSG4326_lat_deg (uint04 y, uint04 z, fltp08 percent_y, fltp08 scale_factor=1.0) const |
| | Converts a tile Y coordinate to latitude using a fractional position.
|
| fltp08 | tile_y_to_EPSG4326_lat_deg (uint04 y, uint04 z, TileLocation location, fltp08 scale_factor=1.0) const |
| | Converts a tile Y coordinate to latitude in degrees.
|
|
| static uint01 | CalcZoom (Bounds< 2, fltp08 > lat_long_bounds_wgs84_dd, Vector< 2, uint04 > size) |
| | Calculates the optimal zoom level for a geographic bounds and pixel size.
|
| static EPSG4326TileHelper & | DefaultHelper () |
| | Returns the singleton helper instance.
|
| static fltp08 | EPSG4326 (uint01 dim, fltp08 lon_deg, uint01 z, fltp08 scale_factor=1.0) |
| | Converts a geographic coordinate to tile space.
|
| static Bounds< 2, fltp08 > | TileSpace (Bounds< 2, fltp08 > lat_long_bounds, Vector< 2, uint04 > size, fltp08 scale_factor=1.0) |
| | Computes the tile space bounds for a geographic bounding box.
|
Provides coordinate conversion utilities between EPSG:4326 (WGS84) and tile coordinates.
Definition at line 163 of file WebMercatorTiledImageManager.h.
◆ TileLocation
Specifies a position within a map tile.
| Enumerator |
|---|
| e_center | Center of the tile.
|
| e_north_east | North-east corner.
|
| e_south_west | South-west corner.
|
| e_south_east | South-east corner.
|
| e_north_west | North-west corner.
|
Definition at line 167 of file WebMercatorTiledImageManager.h.
◆ CalcZoom()
Calculates the optimal zoom level for a geographic bounds and pixel size.
- Parameters
-
| [in] | lat_long_bounds_wgs84_dd | The geographic bounds in WGS84 decimal degrees. |
| [in] | size | The desired pixel dimensions. |
- Returns
- The optimal zoom level.
◆ DefaultHelper()
Returns the singleton helper instance.
- Returns
- A reference to the default EPSG4326TileHelper.
◆ EPSG4326()
Converts a geographic coordinate to tile space.
- Parameters
-
| [in] | dim | The dimension (0 = longitude, 1 = latitude). |
| [in] | lon_deg | The coordinate in degrees. |
| [in] | z | The zoom level. |
| [in] | scale_factor | The scale factor. |
- Returns
- The tile-space coordinate.
◆ tile_x_to_EPSG4326_lon_deg() [1/2]
Converts a tile X coordinate to longitude using a fractional position.
- Parameters
-
| [in] | x | The tile X index. |
| [in] | z | The zoom level. |
| [in] | percent_x | The fractional position within the tile (0.0 to 1.0). |
| [in] | scale_factor | The scale factor. |
- Returns
- The longitude in degrees.
◆ tile_x_to_EPSG4326_lon_deg() [2/2]
Converts a tile X coordinate to longitude in degrees.
- Parameters
-
| [in] | x | The tile X index. |
| [in] | z | The zoom level. |
| [in] | location | The position within the tile. |
| [in] | scale_factor | The scale factor. |
- Returns
- The longitude in degrees.
◆ tile_y_to_EPSG4326_lat_deg() [1/2]
Converts a tile Y coordinate to latitude using a fractional position.
- Parameters
-
| [in] | y | The tile Y index. |
| [in] | z | The zoom level. |
| [in] | percent_y | The fractional position within the tile (0.0 to 1.0). |
| [in] | scale_factor | The scale factor. |
- Returns
- The latitude in degrees.
◆ tile_y_to_EPSG4326_lat_deg() [2/2]
Converts a tile Y coordinate to latitude in degrees.
- Parameters
-
| [in] | y | The tile Y index. |
| [in] | z | The zoom level. |
| [in] | location | The position within the tile. |
| [in] | scale_factor | The scale factor. |
- Returns
- The latitude in degrees.
◆ TileSpace()
Computes the tile space bounds for a geographic bounding box.
- Parameters
-
| [in] | lat_long_bounds | The geographic bounds in degrees. |
| [in] | size | The desired output size. |
| [in] | scale_factor | The scale factor. |
- Returns
- The tile-space bounding box.
The documentation for this class was generated from the following file: