ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
205 stars 61 forks source link

Implementation of transversal mercator projection (Gauss Krueger) #25

Closed RichyP7 closed 6 years ago

RichyP7 commented 6 years ago

Hello. Thank you for this awesome library I couldn´t find a existing Projections for Gauss Krueger. (Transversal Mercator Projection), so I tried to implement it by myself. I was able to transform the location to points and the points to locations to implement the projection. (I inherited from MapProjection.) The two methods

But I couldn´t understand the exact purpose of the following method. I tried for a whole day but couldn´t make it work. I would like to override an WMS Layer to use Gauss Krueger projection.

public abstract Vector GetMapScale(Location location);

Can you tell me about this method or where I could get some documentation about this?

ClemensFischer commented 6 years ago

It is as the comment says, the method returns "... the map scale at the specified Location as viewport coordinate units per meter (px/m)". This is a Vector because the scale isn't necessarily equal in both x and y direction. Take a look at EquirectangularProjection.

If you're finished with the Transverse Mercator Projection, please let me know. I'd like to take a look at it.