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

OutOfMemory Error- GeotiffTranslate #8

Closed
Akimh opened this issue Apr 28, 2015 · 6 comments
Closed

OutOfMemory Error- GeotiffTranslate #8

Akimh opened this issue Apr 28, 2015 · 6 comments

Comments

@Akimh
Copy link

Akimh commented Apr 28, 2015

Hello,
I tried to use your GeotiffTranslate app, but I got an OutOfMemoryError (java heap space). I encreased the heap space to 2048 MB but I got the same error. My Ifsar-DEM (.tif format, 16 bit int, grey band) has a size of 350 Mb.
Java version 8 (32 bit) on a win 7 64 bit machine.
See screenshot.
oomerror.
Thank you.

@kaktus40
Copy link
Owner

Hello,
You have a very very big image. If you have installed gdal, could you
send me the return of this command:
gdalinfo /yourDEM//./
I fear you'll have to cut your image and make a folder with more
manageable images.

For your information a pixel needs 4_8 bits=32 bits to be stored in
memory. If the resolution of your image is 3000 X 3000 ,you'll need at
least 3000_3000 *32=275 Mo. For the good work of java, it's around 300
Mo. Also GeotiffTranslate works on two images, the first is the old
image and the second the new so finally you'll need 600 Mo of memory to
work with an image of 3000 X 3000 pixels...

On 28/04/2015 20:47, Akimh wrote:

Hello,
I tried to use your GeotiffTranslate app, but I got an
OutOfMemoryError (java heap space). I encreased the heap space to 2048
MB but I got the same error. My Ifsar-DEM has a size of 350 Mb.

Java version 8 (32 bit) on a win 7 64 bit machine.
See screenshot.
oomerror
https://cloud.githubusercontent.com/assets/12158315/7377552/9193675c-ed93-11e4-98b7-07becbccdbf6.JPG.
Thank you.


Reply to this email directly or view it on GitHub
#8.

@Akimh
Copy link
Author

Akimh commented Apr 29, 2015

Hello,
thank you for your quick reply.
Screenshot of the result of the gdalinfo:

gdalinfo_dem

As you mentioned, I used a smaller part of my image and it worked perfect.
Thank you very much.

@kaktus40
Copy link
Owner

It's really a big size => you must cut the size of your original tif!!

On 29/04/2015 20:34, Akimh wrote:

Hello,
thank you for your quick reply.
Screenshot of the result of the gdalinfo:

gdalinfo_dem
https://cloud.githubusercontent.com/assets/12158315/7398394/329ee3de-ee5b-11e4-8045-9830864acd19.JPG


Reply to this email directly or view it on GitHub
#8 (comment).

@Akimh
Copy link
Author

Akimh commented May 1, 2015

Thank you for your support and I have another question.
When I try to load the elevation data into a Cesium scene, I got a black view.
black view

My Code :

var ol3d = new olcs.OLCesium({map: map});
var scene = ol3d.getCesiumScene();

    var terrainProvider = new Cesium.GeoserverTerrainProvider({            
    url : "http://localhost:8080/geoserver/Denali/wms",
    layerName: 'Denali:Denali_IfsarDEM_Cut',
        styleName:"raster",            
        waterMask: false        
});        
scene.terrainProvider = terrainProvider;
ol3d.setEnabled(false);

@kaktus40
Copy link
Owner

kaktus40 commented May 3, 2015

Sorry, I can't help you about open-layer Cesium library. Did you test
your terrain in a classical Cesium?

On 01/05/2015 22:39, Akimh wrote:

Thank you for your support and I have another question.
When I try to load the elevation data into a Cesium scene, I got a
black view.
black view
https://cloud.githubusercontent.com/assets/12158315/7436902/904ab0ae-effe-11e4-955e-6664a079c300.JPG

My Code :

var ol3d = new olcs.OLCesium({map: map});
var scene = ol3d.getCesiumScene();

| var terrainProvider = new Cesium.GeoserverTerrainProvider({
url : "http://localhost:8080/geoserver/Denali/wms",
layerName: 'Denali:Denali_IfsarDEM_Cut',
styleName:"raster",
waterMask: false
});
scene.terrainProvider = terrainProvider;
ol3d.setEnabled(false);
|


Reply to this email directly or view it on GitHub
#8 (comment).

@Akimh
Copy link
Author

Akimh commented May 4, 2015

I will give it a try. Thank you.

@kaktus40 kaktus40 closed this as completed May 9, 2015
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