Skip to content

Conversation

aparshin
Copy link
Contributor

Looks like there is still bug in EPSG3395 (after #1578, #1796 and wrong #358).

The problem is in transformation from linear projection coordinates to pixels. Current transformation sets different scales for X and Y coordinates, but it should be the same (major Earth radius). As a result, EPSG3395 raster tiles with EPSG3395 map projection are shifted (for example, relative to vector data).

I've added some tests for CRS classes, that check projections of edge pixels of zero zoom tile.

@mourner
Copy link
Member

mourner commented Sep 10, 2013

Thanks Alex! I'm still so confused about all those projections... :(

mourner added a commit that referenced this pull request Sep 10, 2013
Wrong transformation in CRS EPSG3395
@mourner mourner merged commit 904cd78 into Leaflet:master Sep 10, 2013
@mourner
Copy link
Member

mourner commented Sep 10, 2013

Special thanks for more tests, much needed additions.

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

Successfully merging this pull request may close these issues.

2 participants