[gdal-dev] first time gdal-java exception
ahmet temiz
ahmettemiz88 at gmail.com
Wed Jun 30 02:52:36 EDT 2010
thank you
No, I didn't know I had to do that.
I looked up the example you gave me.
it contains destroying of drivermanager as gdal.DestroyDriverManager();
but not explicit initializer.
Does "Driver driver = gdal.GetDriverByName(outputFormat);" make initialization ?
regards
2010/6/29 Ivan Lucena <ivan.lucena at pmldnet.com>:
> Hi there.
>
> Did you initialize the driver manager?
>
> Example: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/GDALGrid.java#L521
>
> Regards,
>
> Ivan
>
>
>> -------Original Message-------
>> From: ahmet temiz <ahmettemiz88 at gmail.com>
>> To: gdal-dev <gdal-dev at lists.osgeo.org>
>> Subject: [gdal-dev] first time gdal-java exception
>> Sent: Jun 29 '10 13:14
>>
>> hello
>>
>> when I tried gdal-java in first time, I got this exception:
>>
>> "Exception in thread "main" java.lang.UnsatisfiedLinkError:
>> org.gdal.ogr.ogrJNI.wkb25Bit_get()I"
>>
>> here is the code fragment that gives the exception:
>>
>>
>> Geometry lr1 = new Geometry(ogr.wkbLinearRing, null, null, null);
>>
>> lr1.AddPoint_2D(0, 0);
>> lr1.AddPoint_2D(10, 10);
>> lr1.AddPoint_2D(10, 0);
>> lr1.AddPoint_2D(0, 0);
>>
>> Geometry pol1 = new Geometry(ogr.wkbPolygon, null, null, null);
>> pol1.AddGeometry(lr1);
>>
>> might this exception have to do with my having generated gdal-java
>> from "rpm" for ubuntu?
>>
>> do you recommend me another way to get gdal-java for ubuntu ?
>>
>> regards
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
More information about the gdal-dev
mailing list