Hexagon Geospatial
MENU

ERDAS APOLLO & ECW/JP2

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
Frequent Contributor
Posts: 120
Registered: ‎11-25-2015

How to publish 1bit image in apollo core?

We have 1 bit unsigned image (only one color lines, texts, symbbols... ) and we want to ppublish in apollo core. We need "1bit output with tranparent backgroundd", only one color in the output. What is the (best) way (what format, how to prepare it, how to ppublish)? I found jpeg2 lossless compression, it looks well in the "base scale" but when we use zoom out - it looks any "midcolor" pixels between black lines and background. lossless ECW provide nearly different colors in the background. IMG - I'm not able to set transpoarent background.... Many thanks for help.

HonZa

Moderator
Moderator
Posts: 336
Registered: ‎11-16-2015

Re: How to publish 1bit image in apollo core?

Hi HonZa,

 

How is your original data?

If it is 1bit data, you can already use it in APOLLO Core, you just need to configure the styling properly.

For instance, you can use a formula to mask all pixels with the "0" value:

if INPUT1 = 0 then null else 1

1bit_style.PNG

 

And then, use a look up table.

1bit_style2.PNG

FYI, you can create you own look up table (C:\Program Files\Hexagon\ERDAS APOLLO\lib\etc\erm\lut and restart IIS + Core Console)

1bit_style3.PNG

 

Florent

Frequent Contributor
Posts: 120
Registered: ‎11-25-2015

Re: How to publish 1bit image in apollo core?

Hi Florent, many thanks for your response. My original data is tif file that is recoded in the imagine. What is the best format for the best performance in the apollo?

(I did the styling for the IMG that you wrote, and it looks for all scales; is it the 1bit IMG the best format? or is it there any way how to convert it into the JP2/ECW eithout lose quality for smaller scales ?)

HonZa

Moderator
Moderator
Posts: 336
Registered: ‎11-16-2015

Re: How to publish 1bit image in apollo core?

[ Edited ]

Difficult to say without testing which format is the best. But with ECW you cannot have 1bit images (maybe the same with JP2 I don't know). So the ECW may be bigger than the IMG and it would need some work to convert the IMG into ECW 8bit without loosing quality (and 0 should be masked with the alpha channel).

I would say it is maybe easier to test if the performances are already acceptable with the IMG because the data is already there.

Staff
Posts: 134
Registered: ‎05-31-2016

Re: How to publish 1bit image in apollo core?

For the best performance on IMG files make sure you have the Pyramid file generated.

 

Regards,

Phil

Frequent Contributor
Posts: 120
Registered: ‎11-25-2015

Re: How to publish 1bit image in apollo core?

OK, I understand that it is important to have pyramid layers for IMG. But do you think, IMG is the best format for this data?

Many thanks

Jan

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

Re: How to publish 1bit image in apollo core?

I think the best way to determine the best format for your 1bit images is to do some benchmarking.

 

To do this I would create some sample data in a number of different formats then test the performance on Apollo using Apache JMeter. Make sure the sample data is larger than the available memory on the machine so you can test reading the image from storage instead of memory cache.

The test plan you create will need to hit the WMS getmap request with a large selection of random coordinates.

 

The reason I suggest testing with JMeter is because you cannot test performance as a single user connected to a WMS service in a client. This is because you cannot push the limits of the service because you will probably only need 15 tiles per second for it to feel quick, this will not scale to multiple users possibly requiring hundreds of tiles per second. With JMeter you will be able to determine if your server can support multiple users.

 

 

Since the images are 1bit I have a feeling that IMG will meet your performance requirements but you will not know for sure without testing. You may find that ECW or JP2 is better, especially if you can use compression on your data.

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.