Re: [JPP-Devel] How to activate ECW/JP2?

2016-11-13 Thread edgar . soldin
On 07.10.2016 12:29, edgar.sol...@web.de wrote:
> On 07.10.2016 12:21, Rahkonen Jukka (MML) wrote:
>> Mail reason for potentially keeping the ECW/JP2 driver: it is faster. At 
>> least I am remembering it was fast and therefore I tried to test it again. 
>> There is rather a long lag in opening JPEG2000 images through imageio-ext + 
>> GDAL while with native ecw binaries the initial opening is very fast.  And 
>> the size of the ecw binaries is about 3 MB only.
> 
> yeah, i guess we can keep it because of it's small footprint, but as we are 
> moving into a x64 world, it will not run there anymore. 
> 
> will have to have a look why it doesn't activate anymore. ..ede
> 

note to self - added a bug report describing the reason. it's a corner case 
when GDAL's ecw libs are in the library path as well.
  https://sourceforge.net/p/jump-pilot/bugs/444/

..ede

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-10 Thread edgar . soldin
On 10.10.2016 08:43, Rahkonen Jukka (MML) wrote:
> It is only the 41 seconds wait with initial opening.  I don't believe that 
> the lag comes from the ECW/JPEG2000 SDK because it is the same, nor from GDAL 
> because QGIS opens images fast. We do not have much left and it must be 
> either ImageIO-ext part or the way how OpenJUMP is discussing with it that 
> makes opening unnecessary slow. I can see something about JAI in the logs, 
> and I see also that the GDAL version reserves much more memory. I wonder if  
> ImageIO is creating pyramid layers or some cache when it loads the image 
> initially.

i will try to compare both implementations or create a barebone gdal image 
loader to exclude JAI issues, maybe the lag is something we can fix on our side.

> I believe we could now use also the ECW/JP2 SDK version 5.x, but there is one 
> requirement that OpenJUMP can't probably fulfill at the moment: it should be 
> able to read also data through the net with ECWP protocol. Otherwise the 
> EULA, which can be found inside the OJ's gdal extension libraries (at the end 
> of the ECW5License.rtf) does not look bad:
SNIP

on the first glance i would agree. are there any other OS softwares according 
to you're knowledge that already ship these binaries. that would be assuring to 
know.

..ede

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-09 Thread edgar . soldin
Jukka,

On 07.10.2016 12:29, edgar.sol...@web.de wrote:
> On 07.10.2016 12:21, Rahkonen Jukka (MML) wrote:
>> Mail reason for potentially keeping the ECW/JP2 driver: it is faster. At 
>> least I am remembering it was fast and therefore I tried to test it again. 
>> There is rather a long lag in opening JPEG2000 images through imageio-ext + 
>> GDAL while with native ecw binaries the initial opening is very fast.  And 
>> the size of the ecw binaries is about 3 MB only.
> 
> yeah, i guess we can keep it because of it's small footprint, but as we are 
> moving into a x64 world, it will not run there anymore. 
> 
> will have to have a look why it doesn't activate anymore. ..ede

ok, checked it. works instantly w/ the latest snapshot. some further 
investigation (5hrs of digging ;) showed

A) make sure you use or enforce a 32bit java in the start batch.

B) make sure to _not_ copy GDAL support to lib/native. it contains the same but 
incompatible dll files like the ECW support, but is preferred in the library 
path leading to 'procedure not issues'

C) if that doesn't work, also make sure you have MS C-runtime 2008 installed.
  https://www.microsoft.com/en-us/download/details.aspx?id=29

if that still doesn't work please send the complete start log. openjump.log or 
copy/paste cmd terminal output.

..ede

PS: not sure how to deal with this. switching java.library.path's before 
loading the dll's might work. will have to have a look at it. Jukka can you 
please test the performance differences for ECW/JP2 between GDAL and ECW sdk, 
so i can make an informed decision if it is worth the effort to make both work 
simultaneously?

PPS: that's the german error, after exposing it w/ some additional logging (OJ 
r5068 w/ '-v debug')

java.lang.UnsatisfiedLinkError: 
E:\proj_oj-core_svn-4.4\lib\native\x86\jecw.dll: Die angegebene Prozedur wurde 
nicht gefunden
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.vividsolutions.jump.workbench.imagery.ecw.ECWImageFactory._isAvailable(ECWImageFactory.java:132)
at 
com.vividsolutions.jump.workbench.imagery.ecw.ECWImageFactory.isAvailable(ECWImageFactory.java:103)
at 
org.openjump.OpenJumpConfiguration.addImageFactory(OpenJumpConfiguration.java:223)
at 
org.openjump.OpenJumpConfiguration.postExtensionInitialization(OpenJumpConfiguration.java:192)
at 
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:473)
at 
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:397)

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread edgar . soldin
On 07.10.2016 12:21, Rahkonen Jukka (MML) wrote:
> Mail reason for potentially keeping the ECW/JP2 driver: it is faster. At 
> least I am remembering it was fast and therefore I tried to test it again. 
> There is rather a long lag in opening JPEG2000 images through imageio-ext + 
> GDAL while with native ecw binaries the initial opening is very fast.  And 
> the size of the ecw binaries is about 3 MB only.

yeah, i guess we can keep it because of it's small footprint, but as we are 
moving into a x64 world, it will not run there anymore. 

will have to have a look why it doesn't activate anymore. ..ede

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread edgar . soldin
still better than the native ECW reader in PLUS, which is limited java 32bit on 
MacOSX and Windows. as far as i am aware there is no 32bit java avail anymore 
for MacOSX.

on Linux and MacOSX users may install GDAL in the system and that should work 
as well if we deliver it to be placed under lib/native.

..ede

On 07.10.2016 12:08, Giuseppe Aruta wrote:
> does gdall ecw/jp2 support require gdal installed?  And as far as I remember 
> we only provide  Win and Linux distros - no MacOSX
> 
> 
> 2016-10-07 11:44 GMT+02:00 >:
> 
> yeah, something is fishy there. tried it for 5min myself lately, not sure 
> whats wrong, but on the other hand, why not simply remove it in favor of GDAL?
> 
> ..ede
> 
> On 07.10.2016 09 :28, Rahkonen Jukka (MML) wrote:
> > Hi,
> >
> >
> >
> > I am running r5052 Plus with jre8, 32-bit. I guess that I should have 
> ECW/JP2 support now, but log from the startup says that native ECW/JP2 
> libraries are not loaded. What to do?
> >
> >
> >
> > -Jukka-
> >
> >
> >
> >
> >
> >
> >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> >
> >
> >
> > ___
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net 
> 
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel 
> 
> >
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net 
> 
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel 
> 
> 
> 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> 
> 
> 
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread Rahkonen Jukka (MML)
Hi,

Mail reason for potentially keeping the ECW/JP2 driver: it is faster. At least 
I am remembering it was fast and therefore I tried to test it again. There is 
rather a long lag in opening JPEG2000 images through imageio-ext + GDAL while 
with native ecw binaries the initial opening is very fast.  And the size of the 
ecw binaries is about 3 MB only.

About six terabytes of good test images with CC-BY 4.0 license are available 
from http://kartat.kapsi.fi/files/orto/etrs-tm35fin/. They have 12000x12000 
pixels in one tile and OpenJPEG driver can't open them but ECW/JP2 can.

Direct link to one directory
http://kartat.kapsi.fi/files/orto/etrs-tm35fin/mavi_v_25000_50/2016/N44/10m/1/


-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 7. lokakuuta 2016 12:44
Vastaanottaja: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] How to activate ECW/JP2?

yeah, something is fishy there. tried it for 5min myself lately, not sure whats 
wrong, but on the other hand, why not simply remove it in favor of GDAL?

..ede

On 07.10.2016 09:28, Rahkonen Jukka (MML) wrote:
> Hi,
> 
>  
> 
> I am running r5052 Plus with jre8, 32-bit. I guess that I should have ECW/JP2 
> support now, but log from the startup says that native ECW/JP2 libraries are 
> not loaded. What to do?
> 
>  
> 
> -Jukka-
> 
>  
> 
>  
> 
> 
> 
> --
>  Check out the vibrant tech community on one of the world's 
> most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> 
> 
> 
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

--
Check out the vibrant tech community on one of the world's most engaging tech 
sites, SlashDot.org! http://sdm.link/slashdot 
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread Giuseppe Aruta
does gdall ecw/jp2 support require gdal installed?  And as far as I
remember we only provide  Win and Linux distros - no MacOSX


2016-10-07 11:44 GMT+02:00 :

> yeah, something is fishy there. tried it for 5min myself lately, not sure
> whats wrong, but on the other hand, why not simply remove it in favor of
> GDAL?
>
> ..ede
>
> On 07.10.2016 09:28, Rahkonen Jukka (MML) wrote:
> > Hi,
> >
> >
> >
> > I am running r5052 Plus with jre8, 32-bit. I guess that I should have
> ECW/JP2 support now, but log from the startup says that native ECW/JP2
> libraries are not loaded. What to do?
> >
> >
> >
> > -Jukka-
> >
> >
> >
> >
> >
> >
> >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> >
> >
> >
> > ___
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread edgar . soldin
yeah, something is fishy there. tried it for 5min myself lately, not sure whats 
wrong, but on the other hand, why not simply remove it in favor of GDAL?

..ede

On 07.10.2016 09:28, Rahkonen Jukka (MML) wrote:
> Hi,
> 
>  
> 
> I am running r5052 Plus with jre8, 32-bit. I guess that I should have ECW/JP2 
> support now, but log from the startup says that native ECW/JP2 libraries are 
> not loaded. What to do?
> 
>  
> 
> -Jukka-
> 
>  
> 
>  
> 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> 
> 
> 
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] How to activate ECW/JP2?

2016-10-07 Thread Rahkonen Jukka (MML)
Hi,

I am running r5052 Plus with jre8, 32-bit. I guess that I should have ECW/JP2 
support now, but log from the startup says that native ECW/JP2 libraries are 
not loaded. What to do?

-Jukka-


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel