i want to recalculate a geographic coordinate from a pixel in a map. For this i have the size and the coordinates from the map
to convert a coordinate to a pixel is use the algorithm, you find at https://gist.github.com/gagern/6636176
But how can i convert this back to the orginal geographic coordinate?
for the longitude i simply use
Math.toDegrees((x+from.getLongitudeAsRad()*xFactor)/xFactor)
but how can i calculate the latitude?
best regards