Top | ![]() |
![]() |
![]() |
![]() |
#define | VIK_GZ() |
gint | map_utils_mpp_to_scale () |
guint8 | map_utils_mpp_to_zoom_level () |
gboolean | map_utils_vikcoord_to_iTMS () |
void | map_utils_iTMS_to_center_vikcoord () |
void | map_utils_iTMS_to_vikcoord () |
VikCoords are in Spherical Mercator projection (VIK_COORD_LATLON) MapCoords are in Inverse TMS
See: http://docs.openlayers.org/library/spherical_mercator.html See: http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification NB: the Y axis is inverted, ie the origin is at top-left corner.
gboolean map_utils_vikcoord_to_iTMS (const VikCoord *src
,gdouble xzoom
,gdouble yzoom
,MapCoord *dest
);
Convert a VikCoord in VIK_COORD_LATLON format into Inverse TMS coordinates
src |
Original VikCoord in VIK_COORD_LATLON format |
|
xzoom |
Viking zoom level in x direction |
|
yzoom |
Viking zoom level in y direction (actually needs to be same as xzoom) |
|
dest |
The resulting Inverse TMS coordinates in MapCoord |
void map_utils_iTMS_to_center_vikcoord (const MapCoord *src
,VikCoord *dest
);
Convert a MapCoord in Inverse TMS format into Spherical Mercator coordinates for the center of the TMS area