[JPP-Devel] SVN: [6203] plug-ins/OjWorldWind/out/artifacts/ojworldwind

2019-10-14 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6203
  http://sourceforge.net/p/jump-pilot/code/6203
Author:   elnico
Date: 2019-10-14 14:49:58 + (Mon, 14 Oct 2019)
Log Message:
---
latest versions (no more shapefile conversion if OJ file is already a shapefile)

Modified Paths:
--
plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar

Added Paths:
---
plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar

Added: plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar
===
(Binary files differ)

Index: plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar
===
--- plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar   
2019-10-14 14:47:11 UTC (rev 6202)
+++ plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar   
2019-10-14 14:49:58 UTC (rev 6203)

Property changes on: 
plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind-v1.0.0.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar
===
(Binary files differ)



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6202] plug-ins/OjWorldWind/Readme.txt

2019-10-14 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6202
  http://sourceforge.net/p/jump-pilot/code/6202
Author:   elnico
Date: 2019-10-14 14:47:11 + (Mon, 14 Oct 2019)
Log Message:
---
update installation procedure

Modified Paths:
--
plug-ins/OjWorldWind/Readme.txt

Modified: plug-ins/OjWorldWind/Readme.txt
===
--- plug-ins/OjWorldWind/Readme.txt 2019-10-10 14:58:56 UTC (rev 6201)
+++ plug-ins/OjWorldWind/Readme.txt 2019-10-14 14:47:11 UTC (rev 6202)
@@ -1,9 +1,11 @@
 OpenJump WorldWind plugin
 
 Installation:
-• download WorldWind library 
(https://github.com/NASAWorldWind/WorldWindJava/releases) and extract zip folder
-  in the OJ lib/ext/worldwind-2.1.0 folder
-• copy ojworldwind.jar to the lib/ext folder
+• copy ojworldwind-.jar to the lib/ext folder
+• download WorldWind library 
(https://github.com/NASAWorldWind/WorldWindJava/releases) and extract zip
+  in the OJ lib/ext folder. It should create the worldwind- 
folder (ex: lib/ext/worldwind-v2.1.0)
+• copy gluegen*.jar and jogl*.jar from lib/ext/worldwind-v2.1.0 to lib/ 
folder
+• Run OJ: worldwind plugin is available in the view menu or in a layer's 
context menu.
 
 Usage:
 • Right-click on a WGS-84 vector layer and choose "Display in WorldWind": 
a WW globe is displayed with the choosen
@@ -15,3 +17,6 @@
 • 3D geometries with an attribute named "height" will be extruded based on 
height value (name of height attribute
   can be configured in Options panel)
 • Features conversion can be done in JSON or Shapefile (some rendering 
difference between the 2 formats)
+
+Limitations:
+• Multipolygons are not yet supported with GeoJson conversion format. 
Shapefile must be used.



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] WorldWind plugin

2019-10-14 Thread Rahkonen Jukka (MML)
Hi Nicolas,

Works also here once I copied the jar files.

-Jukka-

Lähettäjä: Nicolas Ribot 
Lähetetty: maanantai 14. lokakuuta 2019 16.44
Vastaanottaja: OpenJump develop and use 
Aihe: Re: [JPP-Devel] WorldWind plugin

Hi Jukka,

I was able to reproduce the errors you had.
I copied glugen*.jar and jogl*.jar from worldwind-v2.1.0 to oj/lib/ and it 
worked (no need to extract dll from jar files)

I will update the installation procedure and find a way to declare classpath 
correctly in the plugin

Nicolas

On Mon, 14 Oct 2019 at 10:43, Nicolas Ribot 
mailto:nicolas.ri...@gmail.com>> wrote:
Hi Jukka,

I tested the plugin with OJ rev 6083 on MacOS 10.14.6,
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

and with OJ rev 6147 on windows 10,
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

I will have a look for a proper installation procedure.

Nicolas

On Sun, 13 Oct 2019 at 21:44, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi,

I downloaded worldwind-v2_1_0_zip and unzipped it into my OpenJUMP directory 
under …OpenJUMP-20190228-r6144-PLUS\lib\ext\worldwind-2.1.0.  Then I downloaded 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar
 and placed it into \lib\ext. However, the plugin does not start with Java 
1.8.0_201(amd64), nor with 32-bit Java. The error message says that 
gluegen-rt.jar is not in the desired directory. By copying the dll from the jar 
file that contains the native components into the root OJ directory I could 
forward to the next error which seems to be harder to work around. Perhaps I 
could edit oj_windows.bat to set the path, but how?

The initial error was:

java.lang.UnsatisfiedLinkError: Can't load library: 
C:\ohjelmat\OJ\OpenJUMP-20190228-r6144-PLUS\gluegen-rt.dll
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.load0(Unknown Source)
   at java.lang.System.load(Unknown Source)
   at 
com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:551)
   at 
com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
   at 
com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:96)
   at 
com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:414)
   at 
com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:388)
   at 
com.jogamp.common.os.Platform$1.run(Platform.java:209)
   at 
java.security.AccessController.doPrivileged(Native Method)
   at 
com.jogamp.common.os.Platform.(Platform.java:179)
   at 
javax.media.opengl.GLProfile.(GLProfile.java:83)
   at 
gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Configuration.java:658)
   at 
gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Configuration.java:671)
   at 
gov.nasa.worldwind.awt.WorldWindowGLCanvas.(WorldWindowGLCanvas.java:64)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.createWorldWindow(ApplicationTemplate.java:76)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.(ApplicationTemplate.java:52)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.createAppPanel(ApplicationTemplate.java:382)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.initialize(ApplicationTemplate.java:121)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.(ApplicationTemplate.java:112)
   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown 
Source)
   at java.lang.Class.newInstance(Unknown Source)
   at 
org.openjump.ojworldwind.ww.ApplicationTemplate.start(ApplicationTemplate.java:488)
   at 
org.openjump.ojworldwind.OjWorldwindPlugin.execute(OjWorldwindPlugin.java:94)
   at 
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344)
   at 

Re: [JPP-Devel] WorldWind plugin

2019-10-14 Thread edgar . soldin
hey Nic,

plugins are supposed to reside under lib/ext/ exclusively. when we start 
placing their files all over we will have trouble to properly find out 
dependencies in the future.

rather let's find out why the plugin does not work with the plugin class 
loader. ..ede

On 14.10.2019 15:44, Nicolas Ribot wrote:
> Hi Jukka,
> 
> I was able to reproduce the errors you had.
> I copied glugen*.jar and jogl*.jar from worldwind-v2.1.0 to oj/lib/ and it 
> worked (no need to extract dll from jar files)
> 
> I will update the installation procedure and find a way to declare classpath 
> correctly in the plugin
> 
> Nicolas
> 
> On Mon, 14 Oct 2019 at 10:43, Nicolas Ribot  > wrote:
> 
> Hi Jukka,
> 
> I tested the plugin with OJ rev 6083 on MacOS 10.14.6,
> java version "1.8.0_191"
> Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
> Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
> 
> and with OJ rev 6147 on windows 10,
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
> 
> I will have a look for a proper installation procedure.
> 
> Nicolas
> 
> On Sun, 13 Oct 2019 at 21:44, Rahkonen Jukka (MML) 
>  > wrote:
> 
> Hi,
> 
> __ __
> 
> I downloaded worldwind-v2_1_0_zip and unzipped it into my OpenJUMP 
> directory under …OpenJUMP-20190228-r6144-PLUS\lib\ext\worldwind-2.1.0.  Then 
> I downloaded 
> https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar
>  and placed it into \lib\ext. However, the plugin does not start with Java 
> 1.8.0_201(amd64), nor with 32-bit Java. The error message says that 
> gluegen-rt.jar is not in the desired directory. By copying the dll from the 
> jar file that contains the native components into the root OJ directory I 
> could forward to the next error which seems to be harder to work around. 
> Perhaps I could edit oj_windows.bat to set the path, but how?
> 
> __ __
> 
> The initial error was:
> 
> __ __
> 
> java.lang.UnsatisfiedLinkError: Can't load library: 
> C:\ohjelmat\OJ\OpenJUMP-20190228-r6144-PLUS\gluegen-rt.dll
> 
>    at 
> java.lang.ClassLoader.loadLibrary(Unknown Source)
> 
>    at java.lang.Runtime.load0(Unknown 
> Source)
> 
>    at java.lang.System.load(Unknown 
> Source)
> 
>    at 
> com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:551)
> 
>    at 
> com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
> 
>    at 
> com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:96)
> 
>    at 
> com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:414)
> 
>    at 
> com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:388)
> 
>    at 
> com.jogamp.common.os.Platform$1.run(Platform.java:209)
> 
>    at 
> java.security.AccessController.doPrivileged(Native Method)
> 
>    at 
> com.jogamp.common.os.Platform.(Platform.java:179)
> 
>    at 
> javax.media.opengl.GLProfile.(GLProfile.java:83)
> 
>    at 
> gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Configuration.java:658)
> 
>    at 
> gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Configuration.java:671)
> 
>    at 
> gov.nasa.worldwind.awt.WorldWindowGLCanvas.(WorldWindowGLCanvas.java:64)
> 
>    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.createWorldWindow(ApplicationTemplate.java:76)
> 
>    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.(ApplicationTemplate.java:52)
> 
>    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.createAppPanel(ApplicationTemplate.java:382)
> 
>    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.initialize(ApplicationTemplate.java:121)
> 
>    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.(ApplicationTemplate.java:112)
> 
>    at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 
>   

Re: [JPP-Devel] WorldWind plugin

2019-10-14 Thread Nicolas Ribot
Hi Jukka,

I was able to reproduce the errors you had.
I copied glugen*.jar and jogl*.jar from worldwind-v2.1.0 to oj/lib/ and it
worked (no need to extract dll from jar files)

I will update the installation procedure and find a way to declare
classpath correctly in the plugin

Nicolas

On Mon, 14 Oct 2019 at 10:43, Nicolas Ribot  wrote:

> Hi Jukka,
>
> I tested the plugin with OJ rev 6083 on MacOS 10.14.6,
> java version "1.8.0_191"
> Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
> Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
>
> and with OJ rev 6147 on windows 10,
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
>
> I will have a look for a proper installation procedure.
>
> Nicolas
>
> On Sun, 13 Oct 2019 at 21:44, Rahkonen Jukka (MML) <
> jukka.rahko...@maanmittauslaitos.fi> wrote:
>
>> Hi,
>>
>>
>>
>> I downloaded worldwind-v2_1_0_zip and unzipped it into my OpenJUMP
>> directory under …OpenJUMP-20190228-r6144-PLUS\lib\ext\worldwind-2.1.0.
>> Then I downloaded
>> https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar
>> and placed it into \lib\ext. However, the plugin does not start with Java
>> 1.8.0_201(amd64), nor with 32-bit Java. The error message says that
>> gluegen-rt.jar is not in the desired directory. By copying the dll from the
>> jar file that contains the native components into the root OJ directory I
>> could forward to the next error which seems to be harder to work around.
>> Perhaps I could edit oj_windows.bat to set the path, but how?
>>
>>
>>
>> The initial error was:
>>
>>
>>
>> java.lang.UnsatisfiedLinkError: Can't load library:
>> C:\ohjelmat\OJ\OpenJUMP-20190228-r6144-PLUS\gluegen-rt.dll
>>
>>at java.lang.ClassLoader.loadLibrary(Unknown
>> Source)
>>
>>at java.lang.Runtime.load0(Unknown Source)
>>
>>at java.lang.System.load(Unknown Source)
>>
>>at
>> com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:551)
>>
>>at
>> com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
>>
>>at
>> com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:96)
>>
>>at
>> com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:414)
>>
>>at
>> com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:388)
>>
>>at
>> com.jogamp.common.os.Platform$1.run(Platform.java:209)
>>
>>at
>> java.security.AccessController.doPrivileged(Native Method)
>>
>>at
>> com.jogamp.common.os.Platform.(Platform.java:179)
>>
>>at
>> javax.media.opengl.GLProfile.(GLProfile.java:83)
>>
>>at
>> gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Configuration.java:658)
>>
>>at
>> gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Configuration.java:671)
>>
>>at
>> gov.nasa.worldwind.awt.WorldWindowGLCanvas.(WorldWindowGLCanvas.java:64)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.createWorldWindow(ApplicationTemplate.java:76)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.(ApplicationTemplate.java:52)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.createAppPanel(ApplicationTemplate.java:382)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.initialize(ApplicationTemplate.java:121)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.(ApplicationTemplate.java:112)
>>
>>at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>
>>at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>>
>>at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
>>
>>at
>> java.lang.reflect.Constructor.newInstance(Unknown Source)
>>
>>at java.lang.Class.newInstance(Unknown Source)
>>
>>at
>> org.openjump.ojworldwind.ww.ApplicationTemplate.start(ApplicationTemplate.java:488)
>>
>>at
>> org.openjump.ojworldwind.OjWorldwindPlugin.execute(OjWorldwindPlugin.java:94)
>>
>>at
>> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344)
>>
>>   

Re: [JPP-Devel] running openjump on InteliJ IDE

2019-10-14 Thread Nicolas Ribot
Hi Rashad,

I'm able to compile OJ in Intellij by selecting snapshot profile, then
right clicking on the "package" lifecycle and choosing Run 'OpenJump
[package]'
I have the same warnings as you have but the build succeeds and produces
OpenJUMP-20191014-r6201.jar and plus and core zip files.

hth
Nicolas

On Tue, 24 Sep 2019 at 12:31, Rashad Kanavath 
wrote:

> I had check out sources from sourceforge and when opening this project in
> InteliJ IDE
>
> Trying to run maven compile on profile "core" gives me errors as below.
>
> 
> Some problems were encountered while building the effective model for
> org.openjump:OpenJUMP:jar:svn build
> 'version' contains an expression but should be a constant. @
> org.openjump:OpenJUMP:${version.release},
> D:\Users\rkdev\projects\oj-svn\pom.xml, line 7, column 14
> It is highly recommended to fix these problems because they threaten the
> stability of your build.
> For this reason, future Maven versions might no longer support building
> such malformed projects.
> 
> Is it possible to update pom.xml with correct version number  ?
>
> I think version.datestamp should be automatic and version.release should
> be snapshot/dev by default ?
>
> Also maven complain about some repo url
>
> Could not transfer metadata
> org.deegree2:deegree2-core:2.6-pre2-SNAPSHOT/maven-metadata.xml from/to cam
> (http://maven.ch.cam.ac.uk/m2repo/): Failed to transfer file
> http://maven.ch.cam.ac.uk/m2repo/org/deegree2/deegree2-core/2.6-pre2-SNAPSHOT/maven-metadata.xml
> with status code 503
>
> I cannot access cam repository here. Maybe link is down or this
>
> Indeed removing below repository node from pom.xml make this last error
> disappear.
>
> 
> cam
> Cambridge Maven 2 Repository
> http://maven.ch.cam.ac.uk/m2repo/
> 
>
>
> Any help?
>
> --
> Regards,
>Rashad
> ___
> 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