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
Valued Contributor
Posts: 669
Registered: ‎10-27-2015

API Reference Layered View - how it works

Dear all,

in the documentation I found this:

https://hexagongeospatial.fluidtopics.net/reader/7G7I~2KVfVH5Nn48PjXJjg/h65uJhgnvmiRMvRdDga4Mg

 

The NCSLayeredView plug-in enables your web page to load and display ECW and JPEG 2000 compressed images by specifying its URL. Is the NCSLayeredView a browser plug-in? 

Can someome please telle me how an user can take advantage of this API? thank you

For example, can I use this API with Open Layer?

 

thanks, regards

Giuseppe Maldera

Highlighted
Staff
Posts: 137
Registered: ‎05-31-2016

Re: API Reference Layered View - how it works

NCSLayeredView is a very old JavaScript library that is no longer being actively developed. So I would suggest using WMS/WMTS via Open Layers or Leaflet if possible.

 

All images that have a defined EPSG code can be easily displayed using Open Layers or Leaflet as WMS/WMTS layers.

Layers that do not have any spatial referencing can be displayed as WMS in Open Layers using the projection CRS:1

This is how the CRS:1 Projection can be defined in Open Layers

var projection = new ol.proj.Projection({
  code: 'CRS:1',
  units: 'pixels',
  extent: extent
});

 

 

But if you still want some samples on how to use NCSLayeredView, there are some samples that come with Apollo core.

http://localhost/erdas-apollo/#/examples

http://localhost/erdas-iws/samples/SimpleExampleHTML.htm

http://localhost/erdas-iws/samples/SampleIWSFrameset.htm?mode=HTML

Highlighted
Regular Contributor
Posts: 183
Registered: ‎03-04-2016

Re: API Reference Layered View - how it works

Hello

 

Any suggestion how to manage authentication best when working with leaflet to request the WMS?

 

Kind regards

Elodie