This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Converting GPS cords to X Y based on wrapper

0

Hi guys! I'm trying to create some software for an airport and they require me to place icons of aircraft in their position based on GPS. I have 10x10 tiles each tile being 256 and the origin point being top left and measured in pixels.

This leaves me with a canvas of 200 tiles adding up to 5120x5120 pixels. I need a way to place an icon on top of a pixel based on GPS long and lat regardless of zoom! I don't understand the type of math involved as I have never done it before! The top left of the canvas is x:0,y:0. Can somebody please point in the right direction please?

the language I'm using is JS and its for a .net application in unity3d

thank you!

asked 03 Oct '14, 08:04

GPSNoob's gravatar image

GPSNoob
1111
accept rate: 0%

edited 03 Oct '14, 08:16

1

Sorry for giving no concrete hint, but:

your question seesm to be more a general GIS problem / task, and not about OSM in special.

Maybe you can get some answers here, but if not: try to ask at http://gis.stackexchange.com

(03 Oct '14, 11:35) stephan75

Oh right I see thank you anyway I'll post it to gis!

(03 Oct '14, 18:39) GPSNoob