proj4js

Mercator longitude and latitude calculations to x and y on a cropped map (of the UK)

Deadly 提交于 2019-11-26 05:20:22
问题 I have this image: http://imgur.com/99tSz.png. A map of the UK (not including Southern Ireland). I have successfully managed to get a latitude and longitude and plot it onto this map by taking the leftmost longitude and rightmost longitude of the UK and using them to work out where to put the point on the map. This is the code (for use in Processing.js but could be used as js or anything): // Size of the map int width = 538; int height = 811; // X and Y boundaries float westLong = -8.166667;