Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

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

Open
JSFrias opened this issue Jul 18, 2017 · 1 comment
Open

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

JSFrias opened this issue Jul 18, 2017 · 1 comment

Comments

@JSFrias
Copy link

JSFrias commented Jul 18, 2017

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/

@grst
Copy link
Owner

grst commented Jul 19, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants