[gdal-dev] import georaster using gdal java api

Matuszak Marcin mmatuszak at rootnode.net
Tue Oct 12 07:08:08 EDT 2010


I did not read javadoc with sufficient attention. Calling delete on
dataset solve the problem.

Thanks.
On Tue, 12 Oct 2010 05:53:49 -0500, "Ivan Lucena"
<ivan.lucena at pmldnet.com> wrote:
> Hi,
> 
> The is nothing especial in calling the GeoRaster driver's CreateCopy
> from C or Java but can you try to use the same
> Java code to CreateCopy other formats, like GTIFF to HFA, for
> example? Just to see if there is anything missing.
> 
> Regards,
> 
> Ivan
> 
>>  -------Original Message-------
>>  From: mmatuszak at rootnode.net
>>  To: gdal-dev at lists.osgeo.org
>>  Subject: [gdal-dev] import georaster using gdal java api
>>  Sent: Oct 12 '10 04:15
>>
>>  Hi,
>>  I am facing problem which I am not able to jump over:)
>>  I created georaster table using instruction from oracle website
>>  http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14254/geor_operations.htm
>>  Using gdal_translate and pl/sql I am able to import geotiff into
>>  Oracle.
>>  Then using gdal to export from oracle I am receiving proper image.
>>  But doing the same in java
>>
>>  oracle_driver.CreateCopy("georaster:"+db_connection, datasource,
>>  0, new String[] { "INSERT=VALUES(" + id + ",
>>  SDO_GEOR.INIT('GEORASTER_RDT_01'))",
>>  "blockxsize=512", "blockysize=512", "blockbsize=3"});
>>
>>  and then exporting it again I got image full of black colour.
>>  What am I doing wrong?
>>
>>
>>  _______________________________________________
>>  gdal-dev mailing list
>>  gdal-dev at lists.osgeo.org
>>  http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>

-- 
Pozdrawiam,
Matuszak Marcin



More information about the gdal-dev mailing list