Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using UInt32 tiles #23

Closed
ihor-hrechka opened this issue Oct 6, 2017 · 10 comments
Closed

Using UInt32 tiles #23

ihor-hrechka opened this issue Oct 6, 2017 · 10 comments

Comments

@ihor-hrechka
Copy link

Hi and thanks again for your great work!

As I know by default the plugin works with data in Integer 16 bit format. Float32 also can be used with implementation of formatArray method, provided by you.

Is there any ability to use elevation map with data in UInt32 bit format without convertation with terrain provider?

GdalInfo:
capture

Please let me know if you need more info or data sample!
Thanks in advance!

@kaktus40
Copy link
Owner

kaktus40 commented Oct 7, 2017

Hello,
you should use formatArray with the implementation I gave you with one change:
temp = viewerIn.getFloat32(i, false) - offset;
becomes
temp = viewerIn.getUint32(i,false) - offset;
You should check the implementation of dataview here

@ihor-hrechka
Copy link
Author

Hi and thanks for your answer!

I tried to made this change but there is no result (globe is still flat). Please see screenshot bellow:

untitled

I made change 1. I also tried to change 2, 3 point but result the same.
Can you tell me where I made a mistake?

@kaktus40
Copy link
Owner

kaktus40 commented Oct 9, 2017

Did you configure bil/DDS plugin in geoserver?

@ihor-hrechka
Copy link
Author

Sorry, what do you mean "configure"? It works perfect with test data in Float32 format. Do I need to do some additional configuration for Uint32 data?

@kaktus40
Copy link
Owner

kaktus40 commented Oct 9, 2017

Well in my version of the bill/DDS plugin it seems you can define bil 8, bil 16 or bil 32 format with the endianness.
I think that bil 32 must be float format because I could indicate int 32 format!

@ihor-hrechka
Copy link
Author

For this layer (with images in Uint32 format) I'm using following settings:

capture

Is it OK in my case?

@kaktus40
Copy link
Owner

kaktus40 commented Oct 9, 2017

I think that OK. Now can you see something with float32?

@ihor-hrechka
Copy link
Author

With images in Float32 format - everything fine, but with images in Uint32 format - globe is flat.

@kaktus40
Copy link
Owner

Sorry I can't help you on this case because it seems being a limitation from geoserver or bil dds plug in. Maybe, it doesn't take unint32 format. You should post a request in the community of geoserver.

@ihor-hrechka
Copy link
Author

Understood. Anyway thanks for your answers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants