Re: [JPP-Devel] WMS test (fails)
Ede, I tested a connexion with simple name/password authorization and I can connect to the service. What is odd is that if I connect without entering user/password information - i get the first panel saying authority is not recognized and asking if I want to bypass (the first time I try to connect only) - I get the second panel showing the URL declared by the service and asking if I want to use it or not answering yes or not seems acepted and show the available layer list trying to load a layer throw an exception in both cases (exception contains the message "401 Authorization Required" but it is a little bit hidden in a long message that nobody will read) Not sure if we can know anything about the authorization problem before trying to load a layer. Else, we could extract the informative message ("authorization required" from the http response) to give the user a more comprehensive exception. Anyway, the problem is about user experience, the behaviour seems correct to me. Michaël Le 14/01/2020 à 01:23, edgar.sol...@web.de a écrit : thx Jukka! Could anyone test it on another WMS server using auth please? just to make sure. should we also clean out the list of example services. some seem to be broken by now. ..ede On 13.01.2020 20:37, Rahkonen Jukka (MML) wrote: Yes, it is fixed at least for that server. -Jukka- Lähettäjä: edgar.sol...@web.de Lähetetty: 13. tammikuuta 2020 20:06 Vastaanottaja: Rahkonen Jukka (MML); OpenJump develop and use Aihe: Re: [JPP-Devel] WMS test (fails) using auth i assume?! so it's fixed?. ..ede On 13.01.2020 17:55, Rahkonen Jukka (MML) wrote: Tried r6221, WMS of the National Land Survey works again. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de Lähetetty: maanantai 13. tammikuuta 2020 17.40 Vastaanottaja: OpenJump develop and use ; Rahkonen Jukka (MML) Aihe: Re: [JPP-Devel] WMS test (fails) Jukka, please try " Revision: 6218 http://sourceforge.net/p/jump-pilot/code/6218 Author: edso Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) Log Message: --- move WMS auth to the utility class should fix connecting WMS using authentification after adding http redirect support " java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141 ... " On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: Service URL appears in the message https:// sopimus-karttakuva.maanmittauslaitos.fi The "already connected" error appears with any not empty user name, for example "foo". Let's see how to test if you can pass this first barrier. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de Lähetetty: maanantai 13. tammikuuta 2020 13.36 Vastaanottaja: jump-pilot-devel@lists.sourceforge.net Aihe: Re: [JPP-Devel] WMS test (fails) Jukka, can you send me a service url to test against privately?.. ede On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: Hi, OJ r6217 does not connect to our WMS server that requires https and basic auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: [INFO] 13:29:09.197 Using the system trust manager to verify certificate for host 'sopimus-karttakuva.maanmittauslaitos.fi'. [ERROR] 13:29:09.412 Already connected java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141) at com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) at com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at
Re: [JPP-Devel] Wrong keys in the raster graph properties
Everything seems to work fine. Thanks Ede Peppe Il giorno lun, 13/01/2020 alle 16.46 +0100, edgar.sol...@web.de ha scritto: > pls check r6219.. ede > > On 13.01.2020 16:35, Giuseppe Aruta wrote: > > My mistake,I inverted the labels when I rewrote the plugin.I cannot > > make the correction, as I still cannot connect to sourceforge. > > I ask Michael or Ede if kindly can make this correction for me: > > The file to correct is > > org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.java > > starting from line 152 at the method: > >private void getDialogValues(MultiInputDialog dialog) > > {drawnType = dialog.getBoolean(DRAWN);selectedType > > = > > dialog.getBoolean(SELECTED);HEIGHT = > > dialog.getText(HORIZONTAL_AXES_LABEL);WIDTH = > > dialog.getText(VERICAL_AXES_LABEL);UNIT = > > dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) > > dialog.getLayerable(CLAYER); > > } > > -- > > The correction is on lines 155 and 157 (I belive): > >private void getDialogValues(MultiInputDialog dialog) > > {drawnType = dialog.getBoolean(DRAWN);selectedType > > = > > dialog.getBoolean(SELECTED);WIDTH = > > dialog.getText(HORIZONTAL_AXES_LABEL);HEIGHT = > > dialog.getText(VERICAL_AXES_LABEL);UNIT = > > dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) > > dialog.getLayerable(CLAYER); > > } > > > > Thanks again > > Peppe > > > > > > Il giorno dom, 12/01/2020 alle 21.23 +, Rahkonen Jukka (MML) ha > > scritto: > > > Hi, > > > > > > It seems to me that these keys are reversed and vertical label > > > goes > > > to horizontal axis in the plot and vice versa: > > > > > > org.openjump.core.ui.plugin.raster.ProfileGraphTool.vertical- > > > axes- > > > label= > > > org.openjump.core.ui.plugin.raster.ProfileGraphTool.horizontal- > > > axes- > > > label= > > > > > > -Jukka- > > > > > > > > > ___ > > > Jump-pilot-devel mailing list > > > Jump-pilot-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > ___ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #491 WMS getCapability without title
I verified with the newest GeoServer 2.16 that it is really possible to set the service title empty ~~~ WMS ~~~ --- ** [bugs:#491] WMS getCapability without title** **Status:** open **Created:** Mon Jan 13, 2020 08:35 PM UTC by michael michaud **Last Updated:** Tue Jan 14, 2020 06:06 AM UTC **Owner:** michael michaud OpenJUMP cannot read the getCapability file if the title tag is empty. This is annoying as it seems that geoserver delivers such a getCapability if the administrator does not explicitly set the title. I think we already tried to fix this bug in Parser.java as there is a try/catch(NPE) around title reading, but it seems that it is not enough. Not with a tag. Cannot test it here but will try to catch "any" exception and check tomorrow if it solves the problem. --- Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jump-pilot/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jump-pilot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #491 WMS getCapability without title
For layers the title is mandatory 7.2.4.6.2 Title A is mandatory for all layers; it is a human-readable string for presentation in a menu. The Title is not inherited by child Layers. and I think that this means that title must appear also in the service metadata The first part of the service metadata is a element providing general metadata for the server as a whole. It shall include a Name, Title, and Online Resource URL. I can check the Geoserver side. What version do you have? --- ** [bugs:#491] WMS getCapability without title** **Status:** open **Created:** Mon Jan 13, 2020 08:35 PM UTC by michael michaud **Last Updated:** Mon Jan 13, 2020 08:35 PM UTC **Owner:** michael michaud OpenJUMP cannot read the getCapability file if the title tag is empty. This is annoying as it seems that geoserver delivers such a getCapability if the administrator does not explicitly set the title. I think we already tried to fix this bug in Parser.java as there is a try/catch(NPE) around title reading, but it seems that it is not enough. Not with a tag. Cannot test it here but will try to catch "any" exception and check tomorrow if it solves the problem. --- Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jump-pilot/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jump-pilot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] SVN: [6222] core/trunk/src/com/vividsolutions/wms/Parser.java
Mike, how about cleanly testing if XMLTools.simpleXPath() returns Null and if it is empty etc. ? the below approach masks all errors that might appear and does not even print a stack! if you give me a service url to test against i might have a look. ..ede On 13.01.2020 21:36, jump-pilot-svn--- via Jump-pilot-devel wrote: > Revision: 6222 > http://sourceforge.net/p/jump-pilot/code/6222 > Author: michaudm > Date: 2020-01-13 20:36:59 + (Mon, 13 Jan 2020) > Log Message: > --- > Try to fix #491 (cannot read title in getCapability) > > Modified Paths: > -- > core/trunk/src/com/vividsolutions/wms/Parser.java > > Modified: core/trunk/src/com/vividsolutions/wms/Parser.java > === > --- core/trunk/src/com/vividsolutions/wms/Parser.java 2020-01-13 15:59:05 UTC > (rev 6221) > +++ core/trunk/src/com/vividsolutions/wms/Parser.java 2020-01-13 20:36:59 UTC > (rev 6222) > @@ -366,7 +366,7 @@ >// get the title >try { > title = ((CharacterData)XMLTools.simpleXPath( doc, > "WMT_MS_Capabilities/Service/Title" ).getFirstChild()).getData(); > - } catch (NullPointerException e) { > + } catch (Exception e) { > title = "not available"; >} > > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS test (fails)
thx Jukka! Could anyone test it on another WMS server using auth please? just to make sure. should we also clean out the list of example services. some seem to be broken by now. ..ede On 13.01.2020 20:37, Rahkonen Jukka (MML) wrote: > Yes, it is fixed at least for that server. > > -Jukka- > > Lähettäjä: edgar.sol...@web.de > Lähetetty: 13. tammikuuta 2020 20:06 > Vastaanottaja: Rahkonen Jukka (MML); OpenJump develop and use > Aihe: Re: [JPP-Devel] WMS test (fails) > > using auth i assume?! so it's fixed?. ..ede > > On 13.01.2020 17:55, Rahkonen Jukka (MML) wrote: >> Tried r6221, WMS of the National Land Survey works again. >> >> -Jukka- >> >> -Alkuperäinen viesti- >> Lähettäjä: edgar.sol...@web.de >> Lähetetty: maanantai 13. tammikuuta 2020 17.40 >> Vastaanottaja: OpenJump develop and use >> ; Rahkonen Jukka (MML) >> >> Aihe: Re: [JPP-Devel] WMS test (fails) >> >> Jukka, >> >> please try >> >> " >> Revision: 6218 >> http://sourceforge.net/p/jump-pilot/code/6218 >> Author: edso >> Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) >> Log Message: >> --- >> move WMS auth to the utility class >> should fix connecting WMS using authentification after adding http redirect >> support " >> java.lang.IllegalStateException: Already connected >> at >> sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown >> Source) >> at >> sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown >> Source) >> at >> com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) >> at com.vividsolutions.wms.WMService.initialize(WMService.java:141 >> ... >> " >> >> On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: >>> Service URL appears in the message >>> https:// sopimus-karttakuva.maanmittauslaitos.fi >>> >>> The "already connected" error appears with any not empty user name, for >>> example "foo". >>> Let's see how to test if you can pass this first barrier. >>> >>> -Jukka- >>> >>> >>> -Alkuperäinen viesti- >>> Lähettäjä: edgar.sol...@web.de >>> Lähetetty: maanantai 13. tammikuuta 2020 13.36 >>> Vastaanottaja: jump-pilot-devel@lists.sourceforge.net >>> Aihe: Re: [JPP-Devel] WMS test (fails) >>> >>> Jukka, >>> >>> can you send me a service url to test against privately?.. ede >>> >>> On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: Hi, OJ r6217 does not connect to our WMS server that requires https and basic auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: [INFO] 13:29:09.197 Using the system trust manager to verify certificate for host 'sopimus-karttakuva.maanmittauslaitos.fi'. [ERROR] 13:29:09.412 Already connected java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141) at com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) at com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) at org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at
[JPP-Devel] SVN: [6222] core/trunk/src/com/vividsolutions/wms/Parser.java
Revision: 6222 http://sourceforge.net/p/jump-pilot/code/6222 Author: michaudm Date: 2020-01-13 20:36:59 + (Mon, 13 Jan 2020) Log Message: --- Try to fix #491 (cannot read title in getCapability) Modified Paths: -- core/trunk/src/com/vividsolutions/wms/Parser.java Modified: core/trunk/src/com/vividsolutions/wms/Parser.java === --- core/trunk/src/com/vividsolutions/wms/Parser.java 2020-01-13 15:59:05 UTC (rev 6221) +++ core/trunk/src/com/vividsolutions/wms/Parser.java 2020-01-13 20:36:59 UTC (rev 6222) @@ -366,7 +366,7 @@ // get the title try { title = ((CharacterData)XMLTools.simpleXPath( doc, "WMT_MS_Capabilities/Service/Title" ).getFirstChild()).getData(); - } catch (NullPointerException e) { + } catch (Exception e) { title = "not available"; } ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #491 WMS getCapability without title
--- ** [bugs:#491] WMS getCapability without title** **Status:** open **Created:** Mon Jan 13, 2020 08:35 PM UTC by michael michaud **Last Updated:** Mon Jan 13, 2020 08:35 PM UTC **Owner:** michael michaud OpenJUMP cannot read the getCapability file if the title tag is empty. This is annoying as it seems that geoserver delivers such a getCapability if the administrator does not explicitly set the title. I think we already tried to fix this bug in Parser.java as there is a try/catch(NPE) around title reading, but it seems that it is not enough. Not with a tag. Cannot test it here but will try to catch "any" exception and check tomorrow if it solves the problem. --- Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jump-pilot/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jump-pilot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS test (fails)
Yes, it is fixed at least for that server. -Jukka- Lähettäjä: edgar.sol...@web.de Lähetetty: 13. tammikuuta 2020 20:06 Vastaanottaja: Rahkonen Jukka (MML); OpenJump develop and use Aihe: Re: [JPP-Devel] WMS test (fails) using auth i assume?! so it's fixed?. ..ede On 13.01.2020 17:55, Rahkonen Jukka (MML) wrote: > Tried r6221, WMS of the National Land Survey works again. > > -Jukka- > > -Alkuperäinen viesti- > Lähettäjä: edgar.sol...@web.de > Lähetetty: maanantai 13. tammikuuta 2020 17.40 > Vastaanottaja: OpenJump develop and use > ; Rahkonen Jukka (MML) > > Aihe: Re: [JPP-Devel] WMS test (fails) > > Jukka, > > please try > > " > Revision: 6218 > http://sourceforge.net/p/jump-pilot/code/6218 > Author: edso > Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) > Log Message: > --- > move WMS auth to the utility class > should fix connecting WMS using authentification after adding http redirect > support " > java.lang.IllegalStateException: Already connected > at > sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown > Source) > at > com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) > at > com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) > at > com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) > at com.vividsolutions.wms.WMService.initialize(WMService.java:141 > ... > " > > On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: >> Service URL appears in the message >> https:// sopimus-karttakuva.maanmittauslaitos.fi >> >> The "already connected" error appears with any not empty user name, for >> example "foo". >> Let's see how to test if you can pass this first barrier. >> >> -Jukka- >> >> >> -Alkuperäinen viesti- >> Lähettäjä: edgar.sol...@web.de >> Lähetetty: maanantai 13. tammikuuta 2020 13.36 >> Vastaanottaja: jump-pilot-devel@lists.sourceforge.net >> Aihe: Re: [JPP-Devel] WMS test (fails) >> >> Jukka, >> >> can you send me a service url to test against privately?.. ede >> >> On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: >>> Hi, >>> >>> OJ r6217 does not connect to our WMS server that requires https and basic >>> auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: >>> >>> [INFO] 13:29:09.197 Using the system trust manager to verify certificate >>> for host 'sopimus-karttakuva.maanmittauslaitos.fi'. >>> [ERROR] 13:29:09.412 Already connected >>> java.lang.IllegalStateException: Already connected >>> at >>> sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown >>> Source) >>> at >>> sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown >>> Source) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) >>> at com.vividsolutions.wms.WMService.initialize(WMService.java:141) >>> at >>> com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) >>> at >>> com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) >>> at >>> org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) >>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) >>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown >>> Source) >>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown >>> Source) >>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source) >>> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown >>> Source) >>> at java.awt.Component.processMouseEvent(Unknown Source) >>> at javax.swing.JComponent.processMouseEvent(Unknown Source) >>> at java.awt.Component.processEvent(Unknown Source) >>> at java.awt.Container.processEvent(Unknown Source) >>> at java.awt.Component.dispatchEventImpl(Unknown Source) >>> at java.awt.Container.dispatchEventImpl(Unknown Source) >>> at java.awt.Component.dispatchEvent(Unknown Source) >>> at
Re: [JPP-Devel] WMS test (fails)
using auth i assume?! so it's fixed?. ..ede On 13.01.2020 17:55, Rahkonen Jukka (MML) wrote: > Tried r6221, WMS of the National Land Survey works again. > > -Jukka- > > -Alkuperäinen viesti- > Lähettäjä: edgar.sol...@web.de > Lähetetty: maanantai 13. tammikuuta 2020 17.40 > Vastaanottaja: OpenJump develop and use > ; Rahkonen Jukka (MML) > > Aihe: Re: [JPP-Devel] WMS test (fails) > > Jukka, > > please try > > " > Revision: 6218 > http://sourceforge.net/p/jump-pilot/code/6218 > Author: edso > Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) > Log Message: > --- > move WMS auth to the utility class > should fix connecting WMS using authentification after adding http redirect > support " > java.lang.IllegalStateException: Already connected > at > sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown > Source) > at > com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) > at > com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) > at > com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) > at com.vividsolutions.wms.WMService.initialize(WMService.java:141 > ... > " > > On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: >> Service URL appears in the message >> https:// sopimus-karttakuva.maanmittauslaitos.fi >> >> The "already connected" error appears with any not empty user name, for >> example "foo". >> Let's see how to test if you can pass this first barrier. >> >> -Jukka- >> >> >> -Alkuperäinen viesti- >> Lähettäjä: edgar.sol...@web.de >> Lähetetty: maanantai 13. tammikuuta 2020 13.36 >> Vastaanottaja: jump-pilot-devel@lists.sourceforge.net >> Aihe: Re: [JPP-Devel] WMS test (fails) >> >> Jukka, >> >> can you send me a service url to test against privately?.. ede >> >> On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: >>> Hi, >>> >>> OJ r6217 does not connect to our WMS server that requires https and basic >>> auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: >>> >>> [INFO] 13:29:09.197 Using the system trust manager to verify certificate >>> for host 'sopimus-karttakuva.maanmittauslaitos.fi'. >>> [ERROR] 13:29:09.412 Already connected >>> java.lang.IllegalStateException: Already connected >>> at >>> sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown >>> Source) >>> at >>> sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown >>> Source) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) >>> at >>> com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) >>> at com.vividsolutions.wms.WMService.initialize(WMService.java:141) >>> at >>> com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) >>> at >>> com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) >>> at >>> org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) >>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) >>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown >>> Source) >>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown >>> Source) >>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source) >>> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown >>> Source) >>> at java.awt.Component.processMouseEvent(Unknown Source) >>> at javax.swing.JComponent.processMouseEvent(Unknown Source) >>> at java.awt.Component.processEvent(Unknown Source) >>> at java.awt.Container.processEvent(Unknown Source) >>> at java.awt.Component.dispatchEventImpl(Unknown Source) >>> at java.awt.Container.dispatchEventImpl(Unknown Source) >>> at java.awt.Component.dispatchEvent(Unknown Source) >>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) >>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) >>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) >>> at
Re: [JPP-Devel] WMS test (fails)
Tried r6221, WMS of the National Land Survey works again. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de Lähetetty: maanantai 13. tammikuuta 2020 17.40 Vastaanottaja: OpenJump develop and use ; Rahkonen Jukka (MML) Aihe: Re: [JPP-Devel] WMS test (fails) Jukka, please try " Revision: 6218 http://sourceforge.net/p/jump-pilot/code/6218 Author: edso Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) Log Message: --- move WMS auth to the utility class should fix connecting WMS using authentification after adding http redirect support " java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141 ... " On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: > Service URL appears in the message > https:// sopimus-karttakuva.maanmittauslaitos.fi > > The "already connected" error appears with any not empty user name, for > example "foo". > Let's see how to test if you can pass this first barrier. > > -Jukka- > > > -Alkuperäinen viesti- > Lähettäjä: edgar.sol...@web.de > Lähetetty: maanantai 13. tammikuuta 2020 13.36 > Vastaanottaja: jump-pilot-devel@lists.sourceforge.net > Aihe: Re: [JPP-Devel] WMS test (fails) > > Jukka, > > can you send me a service url to test against privately?.. ede > > On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: >> Hi, >> >> OJ r6217 does not connect to our WMS server that requires https and basic >> auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: >> >> [INFO] 13:29:09.197 Using the system trust manager to verify certificate for >> host 'sopimus-karttakuva.maanmittauslaitos.fi'. >> [ERROR] 13:29:09.412 Already connected >> java.lang.IllegalStateException: Already connected >> at >> sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown >> Source) >> at >> sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown >> Source) >> at >> com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) >> at com.vividsolutions.wms.WMService.initialize(WMService.java:141) >> at >> com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) >> at >> com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at >> org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) >> at >> org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) >> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) >> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.setPressed(Unknown Source) >> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown >> Source) >> at java.awt.Component.processMouseEvent(Unknown Source) >> at javax.swing.JComponent.processMouseEvent(Unknown Source) >> at java.awt.Component.processEvent(Unknown Source) >> at java.awt.Container.processEvent(Unknown Source) >> at java.awt.Component.dispatchEventImpl(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Window.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.EventQueue.dispatchEventImpl(Unknown Source) >> at
Re: [JPP-Devel] Diff for the Finnish language file
Hi Ede, Translations are there, and even umlauts are OK. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de Lähetetty: maanantai 13. tammikuuta 2020 18.01 Vastaanottaja: jump-pilot-devel@lists.sourceforge.net Aihe: Re: [JPP-Devel] Diff for the Finnish language file Jukka, please check r6221 wrt. the below. ..ede On 13.01.2020 11:33, edgar.sol...@web.de wrote: > will do.. ede > > PS: can you answer the WMS question? > > On 12.01.2020 22:04, Rahkonen Jukka (MML) wrote: >> Hi, >> >> I did not success to do a commit to Sourceforge with my username (jratike80) >> so I attach a diff file. Could someone have a try to merge it? >> >> -Jukka- >> >> >> >> ___ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Diff for the Finnish language file
Jukka, please check r6221 wrt. the below. ..ede On 13.01.2020 11:33, edgar.sol...@web.de wrote: > will do.. ede > > PS: can you answer the WMS question? > > On 12.01.2020 22:04, Rahkonen Jukka (MML) wrote: >> Hi, >> >> I did not success to do a commit to Sourceforge with my username (jratike80) >> so I attach a diff file. Could someone have a try to merge it? >> >> -Jukka- >> >> >> >> ___ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6221] core/trunk/src/language/jump_fi.properties
Revision: 6221 http://sourceforge.net/p/jump-pilot/code/6221 Author: edso Date: 2020-01-13 15:59:05 + (Mon, 13 Jan 2020) Log Message: --- translation update courtesy of Jukka Modified Paths: -- core/trunk/src/language/jump_fi.properties Modified: core/trunk/src/language/jump_fi.properties === --- core/trunk/src/language/jump_fi.properties 2020-01-13 15:51:52 UTC (rev 6220) +++ core/trunk/src/language/jump_fi.properties 2020-01-13 15:59:05 UTC (rev 6221) @@ -745,7 +745,7 @@ org.openjump.core.ui.plugin.layer.ChangeLayerableName.Rename=Muuta valitun tason nimi org.openjump.core.ui.plugin.layer.ChangeSRIDPlugIn.Change-SRID=Vaihda projektiokoodi (SRID) org.openjump.core.ui.plugin.layer.CombineSelectedLayers=Yhdist\u00e4 valitut tasot -org.openjump.core.ui.plugin.layer.ExtractLayerInFence.Extract-Layer-in-Fence=Irrota aitauksessa oleva taso +org.openjump.core.ui.plugin.layer.ExtractLayerInFence.Extract-Layer-in-Fence=Irrota aitaukseen osuvat kohteet org.openjump.core.ui.plugin.layer.ExtractLayersByAttribute._EMPTY_=_TYHJ\u00c4_ org.openjump.core.ui.plugin.layer.ExtractLayersByAttribute._NULL_=_NULL_ org.openjump.core.ui.plugin.layer.ExtractLayersByAttribute.Attribute=Ominaisuustieto @@ -1047,7 +1047,7 @@ org.openjump.core.ui.plugin.raster.CreatePolygonGridFromSelectedImageLayerPlugIn.remove-cells-with-values=Poista solut, joiden arvo on org.openjump.core.ui.plugin.raster.CreatePolygonGridFromSelectedImageLayerPlugIn.To-many-polygons-to-generate=Syntyisi liian monta polygonia org.openjump.core.ui.plugin.raster.DEMStatisticsPlugIn.columns=Sarakkeita -org.openjump.core.ui.plugin.raster.DEMStatisticsPlugIn.name=Vertaile Grid-tasoja +org.openjump.core.ui.plugin.raster.DEMStatisticsPlugIn.name=Vertaile rasteritasoja org.openjump.core.ui.plugin.raster.DEMStatisticsPlugIn.report=Lasketaan tason tilastotietoja org.openjump.core.ui.plugin.raster.DEMStatisticsPlugIn.rows=Rivej\u00e4 org.openjump.core.ui.plugin.raster.nodata.CellStatistics=Solujen tilastotiedot @@ -1055,10 +1055,10 @@ org.openjump.core.ui.plugin.raster.nodata.ChangeRangeValuesToNoDataPlugIn.change=Vaihda t\u00e4m\u00e4n v\u00e4lin arvot org.openjump.core.ui.plugin.raster.nodata.ChangeRangeValuesToNoDataPlugIn.name=Vaihda arvov\u00e4lin solujen arvoksi NoData org.openjump.core.ui.plugin.raster.nodata.ChangeRangeValuesToNoDataPlugIn.tooltips=Irrota vain annetun arvov\u00e4lin arvot -org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.change=Vaihda t\u00e4m\u00e4 solujen arvo\: +org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.change=Vaihda t\u00e4m\u00e4 pikseliarvo\: org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.name=Vaihda annettu arvo NoData-arvoksi org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.tonodata=NoData-arvoksi\: -org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.tooltips=Muunna solut, joilla on annettu arvo, NoData-soluiksi +org.openjump.core.ui.plugin.raster.nodata.ChangeValueToNoDataPlugIn.tooltips=Muunna pikselit, joilla on annettu arvo, NoData-pikseleiksi org.openjump.core.ui.plugin.raster.nodata.from=Vanha NoData\: org.openjump.core.ui.plugin.raster.nodata.Inverse=K\u00e4\u00e4nteinen toiminto org.openjump.core.ui.plugin.raster.nodata.max=Max @@ -1066,9 +1066,9 @@ org.openjump.core.ui.plugin.raster.nodata.min=Min\: org.openjump.core.ui.plugin.raster.nodata.nodata=NoData\: org.openjump.core.ui.plugin.raster.nodata.to=Uusi NoData\: -org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.Profile-Graph=Rasteriarvojen profiili +org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.Profile-Graph=Rasteriprofiili org.openjump.core.ui.plugin.raster.ProfileGraphTool.2d-distance=2-ulotteinen et\u00e4isyys -org.openjump.core.ui.plugin.raster.ProfileGraphTool.cell-statistics=Solujen tilastotiedot +org.openjump.core.ui.plugin.raster.ProfileGraphTool.cell-statistics=Pikseleiden tilastotiedot org.openjump.core.ui.plugin.raster.ProfileGraphTool.ending-point=Loppupiste org.openjump.core.ui.plugin.raster.ProfileGraphTool.mean-slope=Keskikaltevuus org.openjump.core.ui.plugin.raster.ProfileGraphTool.Profile=Profiili @@ -1084,14 +1084,14 @@ org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.mean=keskiarvo org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.min=minimi org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.nodata=NoData -org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.size=solun koko -org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.values=solujen arvot -org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cellnum=solum\u00e4\u00e4r\u00e4 +org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.cell.size=pikselin koko
Re: [JPP-Devel] Some issue with raster color styles and legend
AFAIF I found the same problem opening ASTER DEM TIF files. In that case the file were coded as 16int and were reported into OJ as 2 band raster files. No way to use Raster calculator of Sextante. The files are quite big and Sextante was going out of memoryThe solution was to use imagej+bio-format plugin (check on web). The alternative was Fiji (an advanced version of imageJ)This solution was quite fast and useful for larger raster files:a) OpenJUMP. open the original raster file into OJ. OJ won't display it but it automatically detects coordinates and saves the wordfileb) ImageJ. PlugIn>Bio-Format>Bio-Format Inporter and load the file original raster filec) ImageJ Image>Type. Choose 32- bitd) ImageJ File>Save as>TIF. Overwrite the original raster file (in order to use the worldfile)e) reload the saved image into OpenJUMP Il giorno lun, 13/01/2020 alle 16.00 +0100, Giuseppe Aruta ha scritto: > Hi Jukka, Ede. > I had other raster like thayt in the past. A raster with two bands. > Band 1 are the datas. Band 2 usually has a fixed value of 255 for all > the pixels. > OpenJUMP has tools to correct that problem. Just follow these steps: > Analysisa) open the image (ex. crop.tif) as Sextante Raster Image. > The color of the icon on layer tree will show if the image is > monoband (the icon is gray) or multibands (the icon is coloured - > currently OJ seems to manage only 3 bands+4° transparency)b) Using > Raster Layer info tool on layer tree, it is possible to check the > bands. Regarding the images that Jukka sent, Two bands were detected, > one (band 1) with a range of values, the second (band 2) with only > one value (255). Band 1 is what we need. > Operationc) Open Sextante tools>Calculus tools for raster > layer>Raster Calculator(*)d) On upper-left window double click on > Layer> crop Band1 (in my linix PC it shows cropBand1)e) the windows > in the middle of the panel should show "crop Band1" (or "cropBand1 in > my linux PC).f) on "result" combo box choose the output file, ex > crop_monog) click on OK > The result file crop_mono.tif will be the the raster file depurated > by the band 2 > Note that Sextante tool still save raster with its worldfile even if > I think I did a mofication some yeras ago to save georeference info > into the tif file (almost as a geotiff) > Best regards > Peppe > (*) Raster Calculator is so useful for many problems that we should > move in a upper menu one day > > Il giorno lun, 13/01/2020 alle 11.03 +, Rahkonen Jukka (MML) ha > scritto: > > This is weird but for me the eka.tif opens as 1-band image through > > the Sextante Raster Image. However, a subsample that I made by > > cropping and saving with the OpenJUMP crop tool opens as 2-band. I > > could not find any fundamental difference between the tiffs with > > gdalinfo and tiffdump. > > > > And now while writing I got it! The 2-band tiff written with the > > GDAL defaults is using per band interleaving but at least on my > > machine Sextante reports the second band only if tiff has been > > written as pixel interleaved. > > > > This is so difficult issue that it may be better to forget it for > > now. > > > > -Jukka- > > > > > > > > Lähettäjä: edgar.sol...@web.de > > Lähetetty: 13. tammikuuta 2020 12:18 > > Vastaanottaja: jump-pilot-devel@lists.sourceforge.net > > Aihe: Re: [JPP-Devel] Some issue with raster color styles and > > legend > > > > Peppe, > > > > if you want the fixed RasterLegendPlugin in the OJ 1.15, please do > > so soonish. generally i'm inclined to release this month still. > > > > ..ede > > > > On 13.01.2020 10:32, Giuseppe Aruta wrote: > > > Hi Jukka, > > > the file that you attached (eka.tif) seems to have 2 bands > > > (raster > > > layer info too on layer tree). Raster style legend should be > > > deactivated in this case as it works only with monoband raster > > > layers. > > > > > > Best regard > > > Peppe > > > > > > > > > > > > Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) > > > ha > > > scritto: > > > > Hi, > > > > > > > > My environment: > > > > openjdk version "1.8.0_232"; OpenJDK Runtime Environment > > > > Corretto- > > > > 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM > > > > Corretto- > > > > 8.232.09.1 (build 25.232-b09 mixed mode) > > > > > > > > OJ-r6217-Plus > > > > > > > > Issue: Open the attached 16-bit image (I will send a link later > > > > if > > > > attachment is dropped) as Sextante image and try to open the > > > > raster > > > > style legend by pressing the + in the layer lists. This leads > > > > to an > > > > exception: > > > > > > > > Exception in thread "AWT-EventQueue-0" > > > > java.lang.IllegalArgumentException: User must specify at least > > > > 2 > > > > colors > > > > at > > > > java.awt.MultipleGradientPaint.(MultipleGradientPaint.jav > > > > a:169) > > > > at > > > > java.awt.LinearGradientPaint.(LinearGradientPaint.java:28 > > > > 6) > > > > at > >
Re: [JPP-Devel] Some issue with raster color styles and legend
AFAIF I found the same problem opening ASTER DEM TIF files. In that case the file were coded as 16int and were reported into OJ as 2 band raster files. No way to use Raster calculator of Sextante. The files are quite big and Sextante was going out of memoryThe solution was to use imagej+bio-format plugin (check on web). The alternative was Fiji (an advanced version of imageJ)This solution was quite fast and useful for larger raster files:a) OpenJUMP. open the original raster file into OJ. OJ won't display it but it automatically detects coordinates and saves the wordfileb) ImageJ. PlugIn>Bio-Format>Bio-Format Importer and load the file original raster filec) ImageJ Image>Type. Choose 32- bitd) ImageJ File>Save as>TIF. Overwrite the original raster file (in order to use the worldfile)e) reload the saved image into OpenJUMP Il giorno lun, 13/01/2020 alle 16.00 +0100, Giuseppe Aruta ha scritto: > Hi Jukka, Ede. > I had other raster like thayt in the past. A raster with two bands. > Band 1 are the datas. Band 2 usually has a fixed value of 255 for all > the pixels. > OpenJUMP has tools to correct that problem. Just follow these steps: > Analysisa) open the image (ex. crop.tif) as Sextante Raster Image. > The color of the icon on layer tree will show if the image is > monoband (the icon is gray) or multibands (the icon is coloured - > currently OJ seems to manage only 3 bands+4° transparency)b) Using > Raster Layer info tool on layer tree, it is possible to check the > bands. Regarding the images that Jukka sent, Two bands were detected, > one (band 1) with a range of values, the second (band 2) with only > one value (255). Band 1 is what we need. > Operationc) Open Sextante tools>Calculus tools for raster > layer>Raster Calculator(*)d) On upper-left window double click on > Layer> crop Band1 (in my linix PC it shows cropBand1)e) the windows > in the middle of the panel should show "crop Band1" (or "cropBand1 in > my linux PC).f) on "result" combo box choose the output file, ex > crop_monog) click on OK > The result file crop_mono.tif will be the the raster file depurated > by the band 2 > Note that Sextante tool still save raster with its worldfile even if > I think I did a mofication some yeras ago to save georeference info > into the tif file (almost as a geotiff) > Best regards > Peppe > (*) Raster Calculator is so useful for many problems that we should > move in a upper menu one day > > Il giorno lun, 13/01/2020 alle 11.03 +, Rahkonen Jukka (MML) ha > scritto: > > This is weird but for me the eka.tif opens as 1-band image through > > the Sextante Raster Image. However, a subsample that I made by > > cropping and saving with the OpenJUMP crop tool opens as 2-band. I > > could not find any fundamental difference between the tiffs with > > gdalinfo and tiffdump. > > > > And now while writing I got it! The 2-band tiff written with the > > GDAL defaults is using per band interleaving but at least on my > > machine Sextante reports the second band only if tiff has been > > written as pixel interleaved. > > > > This is so difficult issue that it may be better to forget it for > > now. > > > > -Jukka- > > > > > > > > Lähettäjä: edgar.sol...@web.de > > Lähetetty: 13. tammikuuta 2020 12:18 > > Vastaanottaja: jump-pilot-devel@lists.sourceforge.net > > Aihe: Re: [JPP-Devel] Some issue with raster color styles and > > legend > > > > Peppe, > > > > if you want the fixed RasterLegendPlugin in the OJ 1.15, please do > > so soonish. generally i'm inclined to release this month still. > > > > ..ede > > > > On 13.01.2020 10:32, Giuseppe Aruta wrote: > > > Hi Jukka, > > > the file that you attached (eka.tif) seems to have 2 bands > > > (raster > > > layer info too on layer tree). Raster style legend should be > > > deactivated in this case as it works only with monoband raster > > > layers. > > > > > > Best regard > > > Peppe > > > > > > > > > > > > Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) > > > ha > > > scritto: > > > > Hi, > > > > > > > > My environment: > > > > openjdk version "1.8.0_232"; OpenJDK Runtime Environment > > > > Corretto- > > > > 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM > > > > Corretto- > > > > 8.232.09.1 (build 25.232-b09 mixed mode) > > > > > > > > OJ-r6217-Plus > > > > > > > > Issue: Open the attached 16-bit image (I will send a link later > > > > if > > > > attachment is dropped) as Sextante image and try to open the > > > > raster > > > > style legend by pressing the + in the layer lists. This leads > > > > to an > > > > exception: > > > > > > > > Exception in thread "AWT-EventQueue-0" > > > > java.lang.IllegalArgumentException: User must specify at least > > > > 2 > > > > colors > > > > at > > > > java.awt.MultipleGradientPaint.(MultipleGradientPaint.jav > > > > a:169) > > > > at > > > > java.awt.LinearGradientPaint.(LinearGradientPaint.java:28 > > > > 6) > > > > at > >
[JPP-Devel] SVN: [6220] core/trunk/src/language
Revision: 6220 http://sourceforge.net/p/jump-pilot/code/6220 Author: edso Date: 2020-01-13 15:51:52 + (Mon, 13 Jan 2020) Log Message: --- language updates from Peppe Modified Paths: -- core/trunk/src/language/jump_es.properties core/trunk/src/language/jump_it.properties Modified: core/trunk/src/language/jump_es.properties === --- core/trunk/src/language/jump_es.properties 2020-01-13 15:44:46 UTC (rev 6219) +++ core/trunk/src/language/jump_es.properties 2020-01-13 15:51:52 UTC (rev 6220) @@ -1127,10 +1127,10 @@ org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.max-upslope=Max_Asendente org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.max-z=Z_Max org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.min-z=Z_Min -org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-0-z=\#Z_Null -org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-nan-z=\#Sin_Z -org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-negative-z=\#Z_Negativo -org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-positive-z=\#Z_Positivo +org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-0-z=Z_Null +org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-nan-z=Sin_Z +org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-negative-z=Z_Negativo +org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.nb-positive-z=Z_Positivo org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.start-z=Z_Ini org.openjump.core.ui.plugin.tools.Add3DGeometryAttributesPlugIn.weighted-mean-z=Z_Media org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn=A\u00f1adir atributos geometricos @@ -1149,9 +1149,9 @@ org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.geo-type=TypeGeom org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.layer=Capa org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.length=Longitud -org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-of-components=\#Componentes -org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-of-holes=\#Agujeros -org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-points=\#Puntos +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-of-components=Componentes +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-of-holes=Agujeros +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.nb-points=Puntos org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.wkt=WKT org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.x=X org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.y=Y @@ -2499,9 +2499,9 @@ com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.server-or-proxy-port-is-not-correct-check-provided-parameters=El servidor o el puerto del proxy no son correctos, revise sus par\u00e1metros com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.user=Usuario\: com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.test-url= Url de prueba -com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.timeout = #T: Timeout -com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.read-timeout = #T: Read timeout (ms) -com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.connection-timeout = #T: Connection timeout (ms) +com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.timeout = Timeout +com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.read-timeout = Ler timeout (ms) +com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.connection-timeout = Connection timeout (ms) ui.plugin.analysis.BufferPlugIn.update-source=Actualizar la geometr\u00eda en la capa de origen ui.plugin.analysis.BufferPlugIn.update-source-help=Actualizar a capa de origen en lugar de copiar geometr\u00edas en una nueva capa ui.AttributeTablePanel.feature.view-edit=Ver/Editar @@ -2930,4 +2930,3 @@ ui.plugin.raster.VectorizeToPolygonsPlugIn.Name=Crear poligonos desde raster ui.plugin.raster.VectorizeToPolygonsPlugIn.explode-multipolygons=Explotar multipol\xEDgonos ui.plugin.raster.VectorizeToPolygonsPlugIn.algorithms=Algoritmos -ui.AboutDialog.copy-clipboard=#T:Copy To Clipboard Modified: core/trunk/src/language/jump_it.properties === --- core/trunk/src/language/jump_it.properties 2020-01-13 15:44:46 UTC (rev 6219) +++ core/trunk/src/language/jump_it.properties 2020-01-13 15:51:52 UTC (rev 6220) @@ -1,2935 +1,2934 @@ -#jump_it.properties -com.vididsolutions.wms.WMService.Other-GetMap-URL-Found=Il WMS riconosce la URL {0} come GetMap-URL. Vuoi usarlo? -com.vividsolutions.jump.io.ShapefileReader.shp-gt-dbf=\:Errore nella
Re: [JPP-Devel] Wrong keys in the raster graph properties
pls check r6219.. ede On 13.01.2020 16:35, Giuseppe Aruta wrote: > My mistake,I inverted the labels when I rewrote the plugin.I cannot > make the correction, as I still cannot connect to sourceforge. > I ask Michael or Ede if kindly can make this correction for me: > The file to correct is > org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.java > starting from line 152 at the method: >private void getDialogValues(MultiInputDialog dialog) > {drawnType = dialog.getBoolean(DRAWN);selectedType = > dialog.getBoolean(SELECTED);HEIGHT = > dialog.getText(HORIZONTAL_AXES_LABEL);WIDTH = > dialog.getText(VERICAL_AXES_LABEL);UNIT = > dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) > dialog.getLayerable(CLAYER); > } > -- > The correction is on lines 155 and 157 (I belive): >private void getDialogValues(MultiInputDialog dialog) > {drawnType = dialog.getBoolean(DRAWN);selectedType = > dialog.getBoolean(SELECTED);WIDTH = > dialog.getText(HORIZONTAL_AXES_LABEL);HEIGHT = > dialog.getText(VERICAL_AXES_LABEL);UNIT = > dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) > dialog.getLayerable(CLAYER); > } > > Thanks again > Peppe > > > Il giorno dom, 12/01/2020 alle 21.23 +, Rahkonen Jukka (MML) ha > scritto: >> Hi, >> >> It seems to me that these keys are reversed and vertical label goes >> to horizontal axis in the plot and vice versa: >> >> org.openjump.core.ui.plugin.raster.ProfileGraphTool.vertical-axes- >> label= >> org.openjump.core.ui.plugin.raster.ProfileGraphTool.horizontal-axes- >> label= >> >> -Jukka- >> >> >> ___ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6219] core/trunk/src/org/openjump/core/ui/plugin/raster/ ProfileGraphPlugIn.java
Revision: 6219 http://sourceforge.net/p/jump-pilot/code/6219 Author: edso Date: 2020-01-13 15:44:46 + (Mon, 13 Jan 2020) Log Message: --- as requested by Peppe I ask Michael or Ede if kindly can make this correction for me: The file to correct is org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.java starting from line 152 at the method: private void getDialogValues(MultiInputDialog dialog) {drawnType = dialog.getBoolean(DRAWN);selectedType = dialog.getBoolean(SELECTED);HEIGHT = dialog.getText(HORIZONTAL_AXES_LABEL);WIDTH = dialog.getText(VERICAL_AXES_LABEL);UNIT = dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) dialog.getLayerable(CLAYER); } -- The correction is on lines 155 and 157 (I belive): private void getDialogValues(MultiInputDialog dialog) {drawnType = dialog.getBoolean(DRAWN);selectedType = dialog.getBoolean(SELECTED);WIDTH = dialog.getText(HORIZONTAL_AXES_LABEL);HEIGHT = dialog.getText(VERICAL_AXES_LABEL);UNIT = dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) dialog.getLayerable(CLAYER); } Modified Paths: -- core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileGraphPlugIn.java Modified: core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileGraphPlugIn.java === --- core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileGraphPlugIn.java 2020-01-13 15:38:53 UTC (rev 6218) +++ core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileGraphPlugIn.java 2020-01-13 15:44:46 UTC (rev 6219) @@ -152,8 +152,8 @@ private void getDialogValues(MultiInputDialog dialog) { drawnType = dialog.getBoolean(DRAWN); selectedType = dialog.getBoolean(SELECTED); -HEIGHT = dialog.getText(HORIZONTAL_AXES_LABEL); -WIDTH = dialog.getText(VERICAL_AXES_LABEL); +WIDTH = dialog.getText(HORIZONTAL_AXES_LABEL); +HEIGHT = dialog.getText(VERICAL_AXES_LABEL); UNIT = dialog.getText(LAYER_UNIT); rLayer = (RasterImageLayer) dialog.getLayerable(CLAYER); ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS test (fails)
Jukka, please try " Revision: 6218 http://sourceforge.net/p/jump-pilot/code/6218 Author: edso Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) Log Message: --- move WMS auth to the utility class should fix connecting WMS using authentification after adding http redirect support " java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141 ... " On 13.01.2020 12:47, Rahkonen Jukka (MML) wrote: > Service URL appears in the message > https:// sopimus-karttakuva.maanmittauslaitos.fi > > The "already connected" error appears with any not empty user name, for > example "foo". > Let's see how to test if you can pass this first barrier. > > -Jukka- > > > -Alkuperäinen viesti- > Lähettäjä: edgar.sol...@web.de > Lähetetty: maanantai 13. tammikuuta 2020 13.36 > Vastaanottaja: jump-pilot-devel@lists.sourceforge.net > Aihe: Re: [JPP-Devel] WMS test (fails) > > Jukka, > > can you send me a service url to test against privately?.. ede > > On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: >> Hi, >> >> OJ r6217 does not connect to our WMS server that requires https and basic >> auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: >> >> [INFO] 13:29:09.197 Using the system trust manager to verify certificate for >> host 'sopimus-karttakuva.maanmittauslaitos.fi'. >> [ERROR] 13:29:09.412 Already connected >> java.lang.IllegalStateException: Already connected >> at >> sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown >> Source) >> at >> sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown >> Source) >> at >> com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) >> at >> com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) >> at com.vividsolutions.wms.WMService.initialize(WMService.java:141) >> at >> com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) >> at >> com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at >> org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) >> at >> org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) >> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) >> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.setPressed(Unknown Source) >> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown >> Source) >> at java.awt.Component.processMouseEvent(Unknown Source) >> at javax.swing.JComponent.processMouseEvent(Unknown Source) >> at java.awt.Component.processEvent(Unknown Source) >> at java.awt.Container.processEvent(Unknown Source) >> at java.awt.Component.dispatchEventImpl(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Window.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.EventQueue.dispatchEventImpl(Unknown Source) >> at java.awt.EventQueue.access$500(Unknown Source) >> at java.awt.EventQueue$3.run(Unknown Source) >> at java.awt.EventQueue$3.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at >>
[JPP-Devel] SVN: [6218] core/trunk/src
Revision: 6218 http://sourceforge.net/p/jump-pilot/code/6218 Author: edso Date: 2020-01-13 15:38:53 + (Mon, 13 Jan 2020) Log Message: --- move WMS auth to the utility class should fix connecting WMS using authentification after adding http redirect support " java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141 ... " Modified Paths: -- core/trunk/src/com/vividsolutions/wms/AbstractWMSRequest.java core/trunk/src/org/openjump/util/URLConnectionProvider.java Modified: core/trunk/src/com/vividsolutions/wms/AbstractWMSRequest.java === --- core/trunk/src/com/vividsolutions/wms/AbstractWMSRequest.java 2020-01-08 22:21:51 UTC (rev 6217) +++ core/trunk/src/com/vividsolutions/wms/AbstractWMSRequest.java 2020-01-13 15:38:53 UTC (rev 6218) @@ -6,21 +6,16 @@ import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; -import java.nio.charset.Charset; import java.util.List; import java.util.Map.Entry; import javax.imageio.ImageIO; -import net.iharder.Base64; - import org.apache.commons.io.IOUtils; import org.apache.commons.io.input.BoundedInputStream; import org.openjump.util.URLConnectionProvider; -import org.openjump.util.UriUtil; import com.vividsolutions.jump.util.FileUtil; -import com.vividsolutions.jump.workbench.Logger; abstract public class AbstractWMSRequest implements WMSRequest { @@ -72,18 +67,6 @@ // by default we follow redirections con = (HttpURLConnection) URLConnectionProvider.getJUMP_URLConnectionProvider().getHttpConnection(requestUrl, true); -// add this service's auth info -String userInfo = requestUrl.getUserInfo(); -if (userInfo != null) { - Logger.trace(Base64.encodeBytes(UriUtil.urlDecode(userInfo) - .getBytes(Charset.forName("UTF-8"; - con.setRequestProperty( - "Authorization", - "Basic " - + Base64.encodeBytes(UriUtil.urlDecode(userInfo).getBytes( - Charset.forName("UTF-8"; -} - return con; } @@ -96,7 +79,7 @@ public HttpURLConnection getConnection() throws IOException { if (con == null) con = prepareConnection(); - + return con; } Modified: core/trunk/src/org/openjump/util/URLConnectionProvider.java === --- core/trunk/src/org/openjump/util/URLConnectionProvider.java 2020-01-08 22:21:51 UTC (rev 6217) +++ core/trunk/src/org/openjump/util/URLConnectionProvider.java 2020-01-13 15:38:53 UTC (rev 6218) @@ -9,6 +9,8 @@ import com.vividsolutions.jump.workbench.ui.plugin.PersistentBlackboardPlugIn; import com.vividsolutions.wms.WMSException; +import net.iharder.Base64; + import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; @@ -19,6 +21,7 @@ import java.net.URL; import java.net.URLConnection; import java.net.URLDecoder; +import java.nio.charset.Charset; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.cert.X509Certificate; @@ -109,6 +112,14 @@ HttpURLConnection connection = (HttpURLConnection)url.openConnection(); +// add auth info if any +String userInfo = url.getUserInfo(); +if (userInfo != null) { + String auth = Base64.encodeBytes(UriUtil.urlDecode(userInfo).getBytes(Charset.forName("UTF-8"))); + connection.setRequestProperty("Authorization", "Basic " + auth); + Logger.trace("Added auth header 'Authorization: Basic "+auth+"'"); +} + // apply timeouts from settings connection.setConnectTimeout(Integer.parseInt( ProxySettingsOptionsPanel.getInstance().getSetting(ProxySettingsOptionsPanel.OPEN_TIMEOUT_KEY).toString())); ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Wrong keys in the raster graph properties
My mistake,I inverted the labels when I rewrote the plugin.I cannot make the correction, as I still cannot connect to sourceforge. I ask Michael or Ede if kindly can make this correction for me: The file to correct is org.openjump.core.ui.plugin.raster.ProfileGraphPlugIn.java starting from line 152 at the method: private void getDialogValues(MultiInputDialog dialog) {drawnType = dialog.getBoolean(DRAWN);selectedType = dialog.getBoolean(SELECTED);HEIGHT = dialog.getText(HORIZONTAL_AXES_LABEL);WIDTH = dialog.getText(VERICAL_AXES_LABEL);UNIT = dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) dialog.getLayerable(CLAYER); } -- The correction is on lines 155 and 157 (I belive): private void getDialogValues(MultiInputDialog dialog) {drawnType = dialog.getBoolean(DRAWN);selectedType = dialog.getBoolean(SELECTED);WIDTH = dialog.getText(HORIZONTAL_AXES_LABEL);HEIGHT = dialog.getText(VERICAL_AXES_LABEL);UNIT = dialog.getText(LAYER_UNIT);rLayer = (RasterImageLayer) dialog.getLayerable(CLAYER); } Thanks again Peppe Il giorno dom, 12/01/2020 alle 21.23 +, Rahkonen Jukka (MML) ha scritto: > Hi, > > It seems to me that these keys are reversed and vertical label goes > to horizontal axis in the plot and vice versa: > > org.openjump.core.ui.plugin.raster.ProfileGraphTool.vertical-axes- > label= > org.openjump.core.ui.plugin.raster.ProfileGraphTool.horizontal-axes- > label= > > -Jukka- > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Some issue with raster color styles and legend
Hi Jukka, Ede. I had other raster like thayt in the past. A raster with two bands. Band 1 are the datas. Band 2 usually has a fixed value of 255 for all the pixels. OpenJUMP has tools to correct that problem. Just follow these steps: Analysisa) open the image (ex. crop.tif) as Sextante Raster Image. The color of the icon on layer tree will show if the image is monoband (the icon is gray) or multibands (the icon is coloured - currently OJ seems to manage only 3 bands+4° transparency)b) Using Raster Layer info tool on layer tree, it is possible to check the bands. Regarding the images that Jukka sent, Two bands were detected, one (band 1) with a range of values, the second (band 2) with only one value (255). Band 1 is what we need. Operationc) Open Sextante tools>Calculus tools for raster layer>Raster Calculator(*)d) On upper-left window double click on Layer> crop Band1 (in my linix PC it shows cropBand1)e) the windows in the middle of the panel should show "crop Band1" (or "cropBand1 in my linux PC).f) on "result" combo box choose the output file, ex crop_monog) click on OK The result file crop_mono.tif will be the the raster file depurated by the band 2 Note that Sextante tool still save raster with its worldfile even if I think I did a mofication some yeras ago to save georeference info into the tif file (almost as a geotiff) Best regards Peppe (*) Raster Calculator is so useful for many problems that we should move in a upper menu one day Il giorno lun, 13/01/2020 alle 11.03 +, Rahkonen Jukka (MML) ha scritto: > This is weird but for me the eka.tif opens as 1-band image through > the Sextante Raster Image. However, a subsample that I made by > cropping and saving with the OpenJUMP crop tool opens as 2-band. I > could not find any fundamental difference between the tiffs with > gdalinfo and tiffdump. > > And now while writing I got it! The 2-band tiff written with the GDAL > defaults is using per band interleaving but at least on my machine > Sextante reports the second band only if tiff has been written as > pixel interleaved. > > This is so difficult issue that it may be better to forget it for > now. > > -Jukka- > > > > Lähettäjä: edgar.sol...@web.de > Lähetetty: 13. tammikuuta 2020 12:18 > Vastaanottaja: jump-pilot-devel@lists.sourceforge.net > Aihe: Re: [JPP-Devel] Some issue with raster color styles and legend > > Peppe, > > if you want the fixed RasterLegendPlugin in the OJ 1.15, please do so > soonish. generally i'm inclined to release this month still. > > ..ede > > On 13.01.2020 10:32, Giuseppe Aruta wrote: > > Hi Jukka, > > the file that you attached (eka.tif) seems to have 2 bands (raster > > layer info too on layer tree). Raster style legend should be > > deactivated in this case as it works only with monoband raster > > layers. > > > > Best regard > > Peppe > > > > > > > > Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) ha > > scritto: > > > Hi, > > > > > > My environment: > > > openjdk version "1.8.0_232"; OpenJDK Runtime Environment > > > Corretto- > > > 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM > > > Corretto- > > > 8.232.09.1 (build 25.232-b09 mixed mode) > > > > > > OJ-r6217-Plus > > > > > > Issue: Open the attached 16-bit image (I will send a link later > > > if > > > attachment is dropped) as Sextante image and try to open the > > > raster > > > style legend by pressing the + in the layer lists. This leads to > > > an > > > exception: > > > > > > Exception in thread "AWT-EventQueue-0" > > > java.lang.IllegalArgumentException: User must specify at least 2 > > > colors > > > at > > > java.awt.MultipleGradientPaint.(MultipleGradientPaint.java: > > > 169) > > > at > > > java.awt.LinearGradientPaint.(LinearGradientPaint.java:286) > > > at > > > java.awt.LinearGradientPaint.(LinearGradientPaint.java:244) > > > at > > > java.awt.LinearGradientPaint.(LinearGradientPaint.java:139) > > > at > > > org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(Grad > > > ient > > > Canvas.java:92) > > > at > > > javax.swing.JComponent.paintChildren(JComponent.java:889) > > > at javax.swing.JComponent.paint(JComponent.java:1065) > > > at > > > javax.swing.JComponent.paintChildren(JComponent.java:889) > > > at javax.swing.JComponent.paint(JComponent.java:1065) > > > at > > > javax.swing.JComponent.paintChildren(JComponent.java:889) > > > at javax.swing.JComponent.paint(JComponent.java:1065) > > > at > > > org.openjump.core.rasterimage.styler.RasterLegendPlugIn.save(Rast > > > erLe > > > gendPlugIn.java:314) > > > at > > > org.openjump.core.rasterimage.styler.RasterLegendPlugIn$3.actionP > > > erfo > > > rmed(RasterLegendPlugIn.java:226) > > > at > > > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.jav > > > a:20 > > > 22) > > > at > > >
Re: [JPP-Devel] WMS test (fails)
Service URL appears in the message https:// sopimus-karttakuva.maanmittauslaitos.fi The "already connected" error appears with any not empty user name, for example "foo". Let's see how to test if you can pass this first barrier. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de Lähetetty: maanantai 13. tammikuuta 2020 13.36 Vastaanottaja: jump-pilot-devel@lists.sourceforge.net Aihe: Re: [JPP-Devel] WMS test (fails) Jukka, can you send me a service url to test against privately?.. ede On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: > Hi, > > OJ r6217 does not connect to our WMS server that requires https and basic > auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: > > [INFO] 13:29:09.197 Using the system trust manager to verify certificate for > host 'sopimus-karttakuva.maanmittauslaitos.fi'. > [ERROR] 13:29:09.412 Already connected > java.lang.IllegalStateException: Already connected > at > sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown > Source) > at > com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) > at > com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) > at > com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) > at com.vividsolutions.wms.WMService.initialize(WMService.java:141) > at > com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) > at > com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) > at > org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) > at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) > at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.setPressed(Unknown Source) > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown > Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.processMouseEvent(Unknown Source) > at java.awt.Component.processEvent(Unknown Source) > at java.awt.Container.processEvent(Unknown Source) > at java.awt.Component.dispatchEventImpl(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Window.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > at java.awt.EventQueue.access$500(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.WaitDispatchSupport$2.run(Unknown Source) > at java.awt.WaitDispatchSupport$4.run(Unknown Source) > at java.awt.WaitDispatchSupport$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.WaitDispatchSupport.enter(Unknown Source) > at
Re: [JPP-Devel] WMS test (fails)
Jukka, can you send me a service url to test against privately?.. ede On 13.01.2020 12:32, Rahkonen Jukka (MML) wrote: > Hi, > > OJ r6217 does not connect to our WMS server that requires https and basic > auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: > > [INFO] 13:29:09.197 Using the system trust manager to verify certificate for > host 'sopimus-karttakuva.maanmittauslaitos.fi'. > [ERROR] 13:29:09.412 Already connected > java.lang.IllegalStateException: Already connected > at > sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown > Source) > at > com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) > at > com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) > at > com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) > at com.vividsolutions.wms.WMService.initialize(WMService.java:141) > at > com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) > at > com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) > at > org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) > at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) > at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.setPressed(Unknown Source) > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown > Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.processMouseEvent(Unknown Source) > at java.awt.Component.processEvent(Unknown Source) > at java.awt.Container.processEvent(Unknown Source) > at java.awt.Component.dispatchEventImpl(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Window.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > at java.awt.EventQueue.access$500(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.WaitDispatchSupport$2.run(Unknown Source) > at java.awt.WaitDispatchSupport$4.run(Unknown Source) > at java.awt.WaitDispatchSupport$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.WaitDispatchSupport.enter(Unknown Source) > at java.awt.Dialog.show(Unknown Source) > at java.awt.Component.show(Unknown Source) > at java.awt.Component.setVisible(Unknown Source) > at java.awt.Window.setVisible(Unknown Source) > at java.awt.Dialog.setVisible(Unknown Source) > at > org.openjump.core.ui.plugin.file.OpenWizardPlugIn.execute(OpenWizardPlugIn.java:99) > at >
[JPP-Devel] WMS test (fails)
Hi, OJ r6217 does not connect to our WMS server that requires https and basic auth. Version OpenJUMP-20190228-r6144-PLUS connects fine. The error is: [INFO] 13:29:09.197 Using the system trust manager to verify certificate for host 'sopimus-karttakuva.maanmittauslaitos.fi'. [ERROR] 13:29:09.412 Already connected java.lang.IllegalStateException: Already connected at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestProperty(Unknown Source) at com.vividsolutions.wms.AbstractWMSRequest.prepareConnection(AbstractWMSRequest.java:80) at com.vividsolutions.wms.AbstractWMSRequest.getConnection(AbstractWMSRequest.java:98) at com.vividsolutions.wms.AbstractWMSRequest.getInputStream(AbstractWMSRequest.java:145) at com.vividsolutions.wms.WMService.initialize(WMService.java:141) at com.vividsolutions.jump.workbench.ui.plugin.wms.URLWizardPanel.exitingToRight(URLWizardPanel.java:172) at com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.next(WizardDialog.java:250) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.openjump.swing.util.InvokeMethodRunnable.run(InvokeMethodRunnable.java:68) at org.openjump.swing.listener.InvokeMethodActionListener.actionPerformed(InvokeMethodActionListener.java:71) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(Unknown Source) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.openjump.core.ui.plugin.file.OpenWizardPlugIn.execute(OpenWizardPlugIn.java:99) at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at
Re: [JPP-Devel] Some issue with raster color styles and legend
This is weird but for me the eka.tif opens as 1-band image through the Sextante Raster Image. However, a subsample that I made by cropping and saving with the OpenJUMP crop tool opens as 2-band. I could not find any fundamental difference between the tiffs with gdalinfo and tiffdump. And now while writing I got it! The 2-band tiff written with the GDAL defaults is using per band interleaving but at least on my machine Sextante reports the second band only if tiff has been written as pixel interleaved. This is so difficult issue that it may be better to forget it for now. -Jukka- Lähettäjä: edgar.sol...@web.de Lähetetty: 13. tammikuuta 2020 12:18 Vastaanottaja: jump-pilot-devel@lists.sourceforge.net Aihe: Re: [JPP-Devel] Some issue with raster color styles and legend Peppe, if you want the fixed RasterLegendPlugin in the OJ 1.15, please do so soonish. generally i'm inclined to release this month still. ..ede On 13.01.2020 10:32, Giuseppe Aruta wrote: > Hi Jukka, > the file that you attached (eka.tif) seems to have 2 bands (raster > layer info too on layer tree). Raster style legend should be > deactivated in this case as it works only with monoband raster layers. > > Best regard > Peppe > > > > Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) ha > scritto: >> Hi, >> >> My environment: >> openjdk version "1.8.0_232"; OpenJDK Runtime Environment Corretto- >> 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM Corretto- >> 8.232.09.1 (build 25.232-b09 mixed mode) >> >> OJ-r6217-Plus >> >> Issue: Open the attached 16-bit image (I will send a link later if >> attachment is dropped) as Sextante image and try to open the raster >> style legend by pressing the + in the layer lists. This leads to an >> exception: >> >> Exception in thread "AWT-EventQueue-0" >> java.lang.IllegalArgumentException: User must specify at least 2 >> colors >> at >> java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:169) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:286) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:244) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:139) >> at >> org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(Gradient >> Canvas.java:92) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at >> org.openjump.core.rasterimage.styler.RasterLegendPlugIn.save(RasterLe >> gendPlugIn.java:314) >> at >> org.openjump.core.rasterimage.styler.RasterLegendPlugIn$3.actionPerfo >> rmed(RasterLegendPlugIn.java:226) >> at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20 >> 22) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav >> a:2348) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel >> .java:402) >> at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259 >> ) >> at >> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL >> istener.java:252) >> at java.awt.Component.processMouseEvent(Component.java:6539) >> at >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324) >> at java.awt.Component.processEvent(Component.java:6304) >> at java.awt.Container.processEvent(Container.java:2239) >> at java.awt.Component.dispatchEventImpl(Component.java:4889) >> at java.awt.Container.dispatchEventImpl(Container.java:2297) >> at java.awt.Component.dispatchEvent(Component.java:4711) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904 >> ) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) >> at java.awt.Container.dispatchEventImpl(Container.java:2283) >> at java.awt.Window.dispatchEventImpl(Window.java:2746) >> at java.awt.Component.dispatchEvent(Component.java:4711) >> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) >> at java.awt.EventQueue.access$500(EventQueue.java:97) >> at java.awt.EventQueue$3.run(EventQueue.java:709) >> at java.awt.EventQueue$3.run(EventQueue.java:703) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP >> rivilege(ProtectionDomain.java:74) >> at >>
Re: [JPP-Devel] Diff for the Finnish language file
will do.. ede PS: can you answer the WMS question? On 12.01.2020 22:04, Rahkonen Jukka (MML) wrote: > Hi, > > I did not success to do a commit to Sourceforge with my username (jratike80) > so I attach a diff file. Could someone have a try to merge it? > > -Jukka- > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Some issue with raster color styles and legend
Peppe, if you want the fixed RasterLegendPlugin in the OJ 1.15, please do so soonish. generally i'm inclined to release this month still. ..ede On 13.01.2020 10:32, Giuseppe Aruta wrote: > Hi Jukka, > the file that you attached (eka.tif) seems to have 2 bands (raster > layer info too on layer tree). Raster style legend should be > deactivated in this case as it works only with monoband raster layers. > > Best regard > Peppe > > > > Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) ha > scritto: >> Hi, >> >> My environment: >> openjdk version "1.8.0_232"; OpenJDK Runtime Environment Corretto- >> 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM Corretto- >> 8.232.09.1 (build 25.232-b09 mixed mode) >> >> OJ-r6217-Plus >> >> Issue: Open the attached 16-bit image (I will send a link later if >> attachment is dropped) as Sextante image and try to open the raster >> style legend by pressing the + in the layer lists. This leads to an >> exception: >> >> Exception in thread "AWT-EventQueue-0" >> java.lang.IllegalArgumentException: User must specify at least 2 >> colors >> at >> java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:169) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:286) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:244) >> at >> java.awt.LinearGradientPaint.(LinearGradientPaint.java:139) >> at >> org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(Gradient >> Canvas.java:92) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at javax.swing.JComponent.paintChildren(JComponent.java:889) >> at javax.swing.JComponent.paint(JComponent.java:1065) >> at >> org.openjump.core.rasterimage.styler.RasterLegendPlugIn.save(RasterLe >> gendPlugIn.java:314) >> at >> org.openjump.core.rasterimage.styler.RasterLegendPlugIn$3.actionPerfo >> rmed(RasterLegendPlugIn.java:226) >> at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20 >> 22) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav >> a:2348) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel >> .java:402) >> at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259 >> ) >> at >> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL >> istener.java:252) >> at java.awt.Component.processMouseEvent(Component.java:6539) >> at >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324) >> at java.awt.Component.processEvent(Component.java:6304) >> at java.awt.Container.processEvent(Container.java:2239) >> at java.awt.Component.dispatchEventImpl(Component.java:4889) >> at java.awt.Container.dispatchEventImpl(Container.java:2297) >> at java.awt.Component.dispatchEvent(Component.java:4711) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904 >> ) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) >> at java.awt.Container.dispatchEventImpl(Container.java:2283) >> at java.awt.Window.dispatchEventImpl(Window.java:2746) >> at java.awt.Component.dispatchEvent(Component.java:4711) >> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) >> at java.awt.EventQueue.access$500(EventQueue.java:97) >> at java.awt.EventQueue$3.run(EventQueue.java:709) >> at java.awt.EventQueue$3.run(EventQueue.java:703) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP >> rivilege(ProtectionDomain.java:74) >> at >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP >> rivilege(ProtectionDomain.java:84) >> at java.awt.EventQueue$4.run(EventQueue.java:733) >> at java.awt.EventQueue$4.run(EventQueue.java:731) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP >> rivilege(ProtectionDomain.java:74) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) >> at >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre >> ad.java:205) >> at >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. >> java:116) >> at >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >> ad.java:105) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) >>
Re: [JPP-Devel] Some issue with raster color styles and legend
Thanks Peppe, Understood. I converted NoData into alpha band for avoiding another error, let's see if I can reproduce that one. -Jukka- -Alkuperäinen viesti- Lähettäjä: Giuseppe Aruta Lähetetty: maanantai 13. tammikuuta 2020 11.33 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] Some issue with raster color styles and legend Hi Jukka, the file that you attached (eka.tif) seems to have 2 bands (raster layer info too on layer tree). Raster style legend should be deactivated in this case as it works only with monoband raster layers. Best regard Peppe Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) ha scritto: > Hi, > > My environment: > openjdk version "1.8.0_232"; OpenJDK Runtime Environment Corretto- > 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM Corretto- > 8.232.09.1 (build 25.232-b09 mixed mode) > > OJ-r6217-Plus > > Issue: Open the attached 16-bit image (I will send a link later if > attachment is dropped) as Sextante image and try to open the raster > style legend by pressing the + in the layer lists. This leads to an > exception: > > Exception in thread "AWT-EventQueue-0" > java.lang.IllegalArgumentException: User must specify at least 2 > colors > at > java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:169) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:286) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:244) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:139) > at > org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(Gradient > Canvas.java:92) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at > org.openjump.core.rasterimage.styler.RasterLegendPlugIn.save(RasterLe > gendPlugIn.java:314) > at > org.openjump.core.rasterimage.styler.RasterLegendPlugIn$3.actionPerfo > rmed(RasterLegendPlugIn.java:226) > at > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20 > 22) > at > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav > a:2348) > at > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel > .java:402) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259 > ) > at > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL > istener.java:252) > at java.awt.Component.processMouseEvent(Component.java:6539) > at > javax.swing.JComponent.processMouseEvent(JComponent.java:3324) > at java.awt.Component.processEvent(Component.java:6304) > at java.awt.Container.processEvent(Container.java:2239) > at java.awt.Component.dispatchEventImpl(Component.java:4889) > at java.awt.Container.dispatchEventImpl(Container.java:2297) > at java.awt.Component.dispatchEvent(Component.java:4711) > at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904 > ) > at > java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) > at > java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) > at java.awt.Container.dispatchEventImpl(Container.java:2283) > at java.awt.Window.dispatchEventImpl(Window.java:2746) > at java.awt.Component.dispatchEvent(Component.java:4711) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) > at java.awt.EventQueue.access$500(EventQueue.java:97) > at java.awt.EventQueue$3.run(EventQueue.java:709) > at java.awt.EventQueue$3.run(EventQueue.java:703) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:74) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:84) > at java.awt.EventQueue$4.run(EventQueue.java:733) > at java.awt.EventQueue$4.run(EventQueue.java:731) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:74) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre > ad.java:205) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. > java:116) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre > ad.java:105) > at >
Re: [JPP-Devel] Some issue with raster color styles and legend
Hi Jukka, the file that you attached (eka.tif) seems to have 2 bands (raster layer info too on layer tree). Raster style legend should be deactivated in this case as it works only with monoband raster layers. Best regard Peppe Il giorno dom, 12/01/2020 alle 18.31 +, Rahkonen Jukka (MML) ha scritto: > Hi, > > My environment: > openjdk version "1.8.0_232"; OpenJDK Runtime Environment Corretto- > 8.232.09.1 (build 1.8.0_232-b09); OpenJDK 64-Bit Server VM Corretto- > 8.232.09.1 (build 25.232-b09 mixed mode) > > OJ-r6217-Plus > > Issue: Open the attached 16-bit image (I will send a link later if > attachment is dropped) as Sextante image and try to open the raster > style legend by pressing the + in the layer lists. This leads to an > exception: > > Exception in thread "AWT-EventQueue-0" > java.lang.IllegalArgumentException: User must specify at least 2 > colors > at > java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:169) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:286) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:244) > at > java.awt.LinearGradientPaint.(LinearGradientPaint.java:139) > at > org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(Gradient > Canvas.java:92) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at javax.swing.JComponent.paintChildren(JComponent.java:889) > at javax.swing.JComponent.paint(JComponent.java:1065) > at > org.openjump.core.rasterimage.styler.RasterLegendPlugIn.save(RasterLe > gendPlugIn.java:314) > at > org.openjump.core.rasterimage.styler.RasterLegendPlugIn$3.actionPerfo > rmed(RasterLegendPlugIn.java:226) > at > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20 > 22) > at > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav > a:2348) > at > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel > .java:402) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259 > ) > at > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL > istener.java:252) > at java.awt.Component.processMouseEvent(Component.java:6539) > at > javax.swing.JComponent.processMouseEvent(JComponent.java:3324) > at java.awt.Component.processEvent(Component.java:6304) > at java.awt.Container.processEvent(Container.java:2239) > at java.awt.Component.dispatchEventImpl(Component.java:4889) > at java.awt.Container.dispatchEventImpl(Container.java:2297) > at java.awt.Component.dispatchEvent(Component.java:4711) > at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904 > ) > at > java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) > at > java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) > at java.awt.Container.dispatchEventImpl(Container.java:2283) > at java.awt.Window.dispatchEventImpl(Window.java:2746) > at java.awt.Component.dispatchEvent(Component.java:4711) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) > at java.awt.EventQueue.access$500(EventQueue.java:97) > at java.awt.EventQueue$3.run(EventQueue.java:709) > at java.awt.EventQueue$3.run(EventQueue.java:703) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:74) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:84) > at java.awt.EventQueue$4.run(EventQueue.java:733) > at java.awt.EventQueue$4.run(EventQueue.java:731) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP > rivilege(ProtectionDomain.java:74) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre > ad.java:205) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. > java:116) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre > ad.java:105) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) > at > java.awt.EventDispatchThread.run(EventDispatchThread.java:82) > > -Jukka Rahkonen- > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net >