[josm-dev] WMSPlugin Update
Ian Dees
ian.dees at gmail.com
Wed Sep 1 16:20:53 BST 2010
On Wed, Sep 1, 2010 at 10:13 AM, Dirk Stöcker <openstreetmap at dstoecker.de>wrote:
> On Wed, 1 Sep 2010, Iván Sánchez Ortega wrote:
>
> El día Wednesday 01 September 2010 06:32:22, Ian Dees dijo:
>>
>>> I've made some changes to the wmsplugin so that discovering available
>>> layers at a particular WMS URL is a lot easier.
>>>
>>
>> So it can query GetCapabilities at last? Hooray!
>>
>> I'm eager to try that out :-)
>>
>
> In that case the last missing point would be to have WMS plugin also parse
> the projection and set (ask user) the JOSM projection accordingly. The
> projection classes already support the "tell me if you know EPSG:xxx"
> question, but it is not yet used.
My update does check the available CRS from GetCapabilities for each layer
and will flag a layer as unusable if it doesn't match the current projection
set in JOSM's preferences.
I like your idea better, though: prompt the user to change the projection so
that it matches the projection of the selected layer(s). Right now it would
only support switching to 4326 I suppose, but in the future it could switch
to other JOSM-supported projections. Is there a preferred method to call to
set projection (so that the GUI is updated after the change)?
More information about the josm-dev
mailing list