Thank you so much!
But, for example, if I have the value (in meters) of the distance between two 
nodes (n.getCoor().distance(n1.getCoor())), can I convert this value in pixels?

Cheers,
Irene

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: giovedì 28 ottobre 2010 12.11
To: Irene Pucci
Cc: [email protected]
Subject: Re: [josm-dev] Meters to Pixels


2010/10/28 Irene Pucci <[email protected]>:
> Hi!
> Another question..
> There is a method that converts meters in pixels?


this depends on the resolution and aspect ratio of the pixels. If you print at 
300dpi and pixels/dots are 1:1 (height:width) you can easily calculate that 1 
pixel measures 1/300inch = 0,0033333333333333333333333333 inches (rounded). So 
one pixel is around 0,000084667 metres at 300 dpi. Screen resolutions vary.

cheers,
Martin

_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to