[josm-dev] Change JOSM default projection from EPSG:4326 to Mercartor?

Gabriel Ebner ge at gabrielebner.at
Fri Nov 30 12:04:55 GMT 2007


On Fri, Nov 30, 2007 at 12:21:50AM +0100, Frederik Ramm wrote:
> Hi,
> 
> > Seems to be "common sense" that Mercator is better to be used for JOSM 
> > as default.
> 
> Mercator completely breaks the WMS plugin (try and download a large
> sat image from Landsat with Mercator enabled, then zoom into an area
> and download again to see what I mean). But that's a problem of the
> plugin really, I think I'll simply modify the WMS plugin so that it
> refuses to work if you are using Mercator.

It does not *completely* break it.  That's a too harsh choice of words.  And
I'd rather not disable it since it works quite well at scales where you want
to trace things off imagery.  How about a simple warning?

> (Some WMS servers can return Mercator-projected images but the WMS
> plugin is not smart enough to detect that and request them if it is
> required. Anyway the Landsat server cannot return Mercator; the image
> would have to be reprojected by the WMS plugin, and that's rather more
> difficult than just stretching it a bit...)

If you don't want any anti-aliasing, you just need to rearrange the rows a
bit, i.e. figure out how high the image is going to be under Mercator, and
then figure out for every row the corresponding row in the image in longlat
projection and pick that.  Maybe I'll hack up something tonight...

  Gabriel.




More information about the josm-dev mailing list