Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-09 Thread edgar . soldin
Jukka, thanks to the still existing test account on your private wms server, which i used to verify against ;) ..ede On 08.06.2015 19:09, Rahkonen Jukka (MML) wrote: Hi, GetLegendGraphics works now fine with our servers through https and basic authentication. Thanks -Jukka

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-09 Thread Giuseppe Aruta
Hi Michael, this is a good page where to take some WMS urls wiith legends: http://nsidc.org/data/atlas/ogc_services.html *WMS:* - Northern Hemisphere: http://nsidc.org/cgi-bin/atlas_north?service=WMSrequest=GetCapabilitiesversion=1.1.1 - Southern Hemisphere:

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-09 Thread Michaël Michaud
Hi Peppe, Fine, thanks. Works fine. On some layers of the first url you sent (Northern Hemisphere : layer=cities), the WMSLegend plugin throws a NPE java.lang.NullPointerException at javax.swing.ImageIcon.init(ImageIcon.java:240) at

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-09 Thread Giuseppe Aruta
Hi Michael, sorry but I can't reproduce it. This is the screenshot with layer:cities and Layer:Greenland surface elevayion loaded ​ Can you send me more details? Thanks Peppe 2015-06-09 13:32 GMT+02:00 Michaël Michaud m.michael.mich...@orange.fr: Hi Peppe, Fine, thanks. Works fine. On

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-08 Thread Michaël Michaud
Thanks all, Do you know any public url with GetLegendGraphics capability so that I can easily test it ? Michaël Le 08/06/2015 19:09, Rahkonen Jukka (MML) a écrit : Hi, GetLegendGraphics works now fine with our servers through https and basic authentication. Thanks -Jukka Rahkonen-

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-08 Thread Rahkonen Jukka (MML)
Hi, GetLegendGraphics works now fine with our servers through https and basic authentication. Thanks -Jukka Rahkonen- Giuseppe Aruta wrote: Hi Ede, thanks for your help. Let us wait Jukka opinion/test to check the new reuse of WMSRequest with protected WMS servers. I implemented the dialog

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-08 Thread edgar . soldin
On 08.06.2015 08:36, Giuseppe Aruta wrote: Hi Ede, thanks for your help. Let us wait Jukka opinion/test to check the new reuse of WMSRequest with protected WMS servers. I implemented the dialog as a detachable internal frame, as you suggested. It looks also more elegant. I preferred the

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-08 Thread Giuseppe Aruta
Hi Ede, thanks for your help. Let us wait Jukka opinion/test to check the new reuse of WMSRequest with protected WMS servers. I implemented the dialog as a detachable internal frame, as you suggested. It looks also more elegant. I preferred the option to have it always on the top of the main view

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-05 Thread Giuseppe Aruta
I think also that Kosmo request to WMS Styles and Legends starts probably together with a WMS layer request. Since I didn't want to modify any original WMS OJ classes, OJ WMS legend plugin calls after a WMS is loaded. Infact there is a small delay on OJ whenever a user ask for a legend,

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-05 Thread Giuseppe Aruta
Hi Jukka, can you send me a WMS url with relative User/Password? I want to check a possibility to set them on asking GetLegendGraphic URL Peppe 2015-06-05 9:59 GMT+02:00 Giuseppe Aruta giuseppe.ar...@gmail.com: I think also that Kosmo request to WMS Styles and Legends starts probably together

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-05 Thread Giuseppe Aruta
Hi Jukka, thanks for the quick answer. Regarding user/password of WMS, I can see that the code comes from SelectUrlWithAuthPanel.class but I don't see where these datas are stored on WMS classes ( or maybe not, they are only asked at the beginning of the WMS request process). This plugin is

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-05 Thread edgar . soldin
hey Peppe, while playing around with the plugin i stumbled over two issues 1. the plugin was enabled even if multiple wms layers were selected. this is fixed now in trunk. 2. the dialogs accumulate. every time a new one gets created. you should update/reuse existing legends per layer.

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-05 Thread edgar . soldin
hey Peppe, check r4476. i made it reuse the existing WMSRequest classes to avoid implementing additional http auth code. ..ede On 05.06.2015 11:01, Giuseppe Aruta wrote: Hi Jukka, can you send me a WMS url with relative User/Password? I want to check a possibility to set them on asking

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-04 Thread Rahkonen Jukka (MML)
Hi, If you adapted GetStyle code are you going to add also this on into OpenJUMP: org.saig.jump.plugin.wms.ChangeWMSStyleDialogPlugIn.name=Change WMS style? -Jukka Rahkonen- Giuseppe Aruta wrote: Dear Jumpers, I added on OpenJUMP a new plugin that displays WMS layer(s) legend (if available)

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-04 Thread Rahkonen Jukka (MML)
Hi Peppe, Seems to work with Geoserver and it generates also a correct URL for Mapserver so it should work. However, there is some little issue with sites using basic authentication. I think that the plugin is sending the request without credentials or something like that. Note that the error

[JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-04 Thread Giuseppe Aruta
Dear Jumpers, I added on OpenJUMP a new plugin that displays WMS layer(s) legend (if available) on a Dialog. This plugin is located on WMS Layer tree context menu, as Show WMS Layer Legend. The code originally came from Kosmo SAIG and it was completely rewritten in order to adapt WMS

Re: [JPP-Devel] New WMS Layer legend plugin on OpenJUMP

2015-06-04 Thread Giuseppe Aruta
The plugin will be available on OJ 4474 Night Snapshot 2015-06-04 15:24 GMT+02:00 Giuseppe Aruta giuseppe.ar...@gmail.com: Dear Jumpers, I added on OpenJUMP a new plugin that displays WMS layer(s) legend (if available) on a Dialog. This plugin is located on WMS Layer tree context menu, as