grst / geos

Google Earth Overlay Server - display map overlays in Google Earth

Home Page:https://grst.github.io/geos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support "<invertYCoordinate>" tag in MapSources for TMS layers

JSFrias opened this issue · comments

Geos doesn't seem to support the "true" tag in the map sources xml file. Is this the case?

This is the conversion (possibly the opposite of what you would need):

def GoogleTile(self, tx, ty, zoom):
    "Converts TMS tile coordinates to Google Tile coordinates"
    
    # coordinate origin is moved from bottom-left to top-left corner of the extent
    return tx, (2**zoom - 1) - ty

Taken from here: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/

correct, the <invertYCoordinate> is currently not supported.

I can look into this when I have a little more time, or you can implement it yourself and file a pull request.