APOLLO & ECW/JP2 Discussions

Wondering how others have configured their ERDAS APOLLO server or what data they are crawling? The ERDAS APOLLO Discussion board is a place to find information, share ideas and more. Join the community, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 23
Registered: ‎11-21-2016
Accepted Solution

Catalog Explorer (the new one) can't read my ecwp

Hi,

 

I have just installed the new ERDAS Apollo Client - Catalog Explorer. It works very fast - at first i was thinking that when i am adding to map my ecw file, it is added as a ecwp (but is still WMS - very fast).

When i noticed that i am using WMS instead of ECWP i have tried to add ecwp. For the given example (ecwp://demo-apollo.hexagongeospatial.com/SampleIWS/images/geodetic/bluemarble.ecw) it works fine - at least the image was displayed. But for my image it returs error - request failed.

 

My ECWP works fine in ERDAS Imagine 2020 so i guess it is set propoerly

ecwp://demo.intergraph.pl/Orto/RGB_2016.ecw

 

Is it a bug?

 

Highlighted
Moderator
Moderator
Posts: 385
Registered: ‎11-16-2015

Re: Catalog Explorer (the new one) can't read my ecwp

Hi,

 

It seems to be a bug, I have also an issue with ecwp and other layers, you could submit a support ticket for that.

This functionality might have bug(s) as it is still in an experimental phase:

ecwp.PNG

Highlighted
Staff
Posts: 5
Registered: ‎12-23-2019

Re: Catalog Explorer (the new one) can't read my ecwp

Hi tmalej, I just tried to load ecwp://demo.intergraph.pl/Orto/RGB_2016.ecw, and looking at the console the error is:

Access to XMLHttpRequest at 'http://demo.intergraph.pl/erdas-iws/ecwp3.dll?cmd=0&v=1&layer=/Orto/RGB_2016.ecw' from origin 'http://trident-dev.luciad.com:8080' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains the invalid value 'localhost'.

This makes me suspect that CORS is incorrectly configured on the server.

Unfortunately due to CORS being a security feature CORS failures areren't reported to the application, the only way to check them if via opening the console.

 

The header sent was:

Access-Control-Allow-Origin: localhost

So this should work if you change your CORS setting to '*' or the serer name.

 

Also I know this feature is marked as being in an experimental phase, but don't let that dissuade you from reporting bugs. Everything should work, it's more that some features aren't implemented yet, and browser support is limited.

 

Tim.

Highlighted
Contributor
Posts: 23
Registered: ‎11-21-2016

Re: Catalog Explorer (the new one) can't read my ecwp

[ Edited ]

Hi,

 

I am refreshing the topic as we have already Catalog Explorer v2.

 

I have already set the CORS properly - for today the external link demo.intergraph.pl is not available but i have tried to use ECWP on local machine using localhost - still not working. (It still working fine in ERDAS Imagine)

 

Does anyone has working ECWP service? - except demo-apollo.hexagongeospatial.com

 

Regards,

Tomek

 

 

 

Highlighted
Technical Evangelist
Posts: 968
Registered: ‎07-30-2015

Re: Catalog Explorer (the new one) can't read my ecwp

Got "request failed" error when request ECW @ CE->DATA->ECWP->Endpoint URL. I use the latest CE 1.0.0.1299

Looks like a bug.

 

Please log a bug againt CE or Apollo.

 

best

Qu

Highlighted
Contributor
Posts: 23
Registered: ‎11-21-2016

Re: Catalog Explorer (the new one) can't read my ecwp

Hi Haiyan,

 

After Tim suggestions (on email) I have found that there is still CORS problem.

 

Access to XMLHttpRequest at 'http://war-hsiv-papoll/erdas-iws/ecwp3.dll?cmd=0&v=1&layer=/Orto/RGB_2016.ecw' from origin 'http://war-hsiv-papoll:8080' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'localhost, *', but only one is allowed.

 

This need to be fixed first. 

 

I will let you know about the results.

 

Regards,

Tomek

Highlighted
Contributor
Posts: 23
Registered: ‎11-21-2016

Re: Catalog Explorer (the new one) can't read my ecwp

Hi,

 

The solution that works for me:

 

  1. Reconfigure ERDAS Apollo - do not check "Enable CORS" option - "*" is not respected
  2. Go to IIS and add Access-Control-Allow-Origin with value "*"

 

Thanks everyone for help

 

Tomek

Highlighted
Technical Evangelist
Posts: 968
Registered: ‎07-30-2015

Re: Catalog Explorer (the new one) can't read my ecwp

Hi Tomek,

 

Thanks so much for the update.

 

My situation is little different.

 

In my CE 2.0 instance, there is no error in CE console.

But after click on "Get Information" button, it kept "Loading..."
I unchecked "Enable CORS" option, and added "Access-Control-Allow-Origin *" to IIS->Default Web Site->HTTP Response Headers.

The same ECWP can be opened in IMAGINE without issue.

 

CE.jpg

Highlighted
Contributor
Posts: 23
Registered: ‎11-21-2016

Re: Catalog Explorer (the new one) can't read my ecwp

Ye, it`s different.

 

Anyway for me now WMS works much faster than ECWP which is a little bit suprising.

I rember that in Geospatial Portal in 2016 ECWP was super fast.

 

Tomek

Highlighted
Technical Evangelist
Posts: 968
Registered: ‎07-30-2015

Re: Catalog Explorer (the new one) can't read my ecwp

Yes, ECWP browser plug-in was super fast.

But nowdays morden browser dropped plug-in support, so no more ECWP browser plug-in.

 

best

haiyan