Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-06 Thread Brian Case
Aneesh i believe the only driver that supports layer andf dataset style tables is the libkml driver Brian On Thu, 2012-01-05 at 18:06 +0530, Aneesh Muralidharan wrote: > Chaithanya, > > Ahhh that explains it ! Thanks a lot. By the way where do I find out > these information (like DXF driver do

Re: [gdal-dev] Open Grib File

2012-01-06 Thread Chaitanya kumar CH
Pascal, The data is written into the buffer array. The function returns the CE_None or CE_None. On Fri, Jan 6, 2012 at 7:11 PM, Jaugeas, Pascal (External) < pascal.jaugeas.exter...@cassidian.com> wrote: > ** > Hello, > > another problem > > I try to read data of a band of a grib File. I thi

RE: [gdal-dev] Open Grib File

2012-01-06 Thread Jaugeas, Pascal (External)
Hello, another problem I try to read data of a band of a grib File. I think , in C# dev, I must use ReadRaster function: My code : for (int j = 1; j <= rows; j++) { for (int k = 1; k <= cols; k++) { byte[] buffer ={1,1}; CPLErr err = band.ReadRaster(0, 0, cols, rows, buffer, col

Re: [gdal-dev] Re: GDAL Java Binding meomory problem under intensive method calls

2012-01-06 Thread Even Rouault
> Can I implement ogrtindex in Java as well? I've scanned quickly ogrtindex.cpp and I believe that all the APIs it uses are exposed in the Java bindings, so yes it looks like it is doable. I see that there's a large part of the code that does various checks. You can probably skip some of them if y

[gdal-dev] Re: GDAL Java Binding meomory problem under intensive method calls

2012-01-06 Thread easyl
your are right! It fixed the problem!! Actually I have another question (after fixing the violation bug). Can I implement ogrtindex in Java as well? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GDAL-Java-Binding-meomory-problem-under-intensive-method-calls-tp7155011p7

Re: [gdal-dev] Re: GDAL Java Binding meomory problem under intensive method calls

2012-01-06 Thread Even Rouault
Hi, ok I found what was going on. The issue is the call to ogr2ogr which calls ogr.RegisterAll(). The effect of calling ogr.RegisterAll() when it has already been called is to reload the drivers, which will invalidate any opened datasource, like the one you use indirectly for the source layers. Th

[gdal-dev] Re: GDAL Java Binding meomory problem under intensive method calls

2012-01-06 Thread easyl
directly using ogr2ogr and ogrinfo from http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/ I made a following test cae. somehow I noticed that the error occurs when the S57 data more than 1mb == public class TestViolation { public static void main(Str