Re: [gdal-dev] first time gdal-java exception
Ivan Lucena
ivan.lucena at pmldnet.com
Tue Jun 29 14:22:18 EDT 2010
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