[josm-dev] pixel per degree

Paul Hartmann phaaurlt at googlemail.com
Mon Sep 19 13:39:45 BST 2011


Hi,

Why is it called "pixelPerDegree" in ImageryInfo? Apparently, the value
is in pixels per unit in projected space ("pixelPerEastNorth").

There is an interesting bug in ImageryLayer.getPPD(), line 86: It
returns Main.getProjection().getDefaultZoomInPPD() when mapframe is
null. However the "Projection-PPD" is not the same, as the
"Imagery-PPD", in fact they are inverse to each other. (Or
NavigatableComponent line 99 is wrong, I haven't investigated the full
history if this...)

I suggest to rename all this, so it makes more sense.

Paul



More information about the josm-dev mailing list