Re: [gdal-dev] HFA_USE_RRD vs USE_RRD

2008-08-01 Thread Mateusz Loskot
Maciej Sieczka wrote: Hi! If I use the followiwng syntax: gdaladdo --config HFA_USE_RRD YES --config USE_RRD YES some.tif 2 4 8 a small aux file and a big rrd file are created. If I use: gdaladdo --config USE_RRD YES some.tif 2 4 8 only a big aux is created. In the 1st case the sum of aux

[gdal-dev] HFA_USE_RRD vs USE_RRD

2008-08-01 Thread Maciej Sieczka
Hi! If I use the followiwng syntax: gdaladdo --config HFA_USE_RRD YES --config USE_RRD YES some.tif 2 4 8 a small aux file and a big rrd file are created. If I use: gdaladdo --config USE_RRD YES some.tif 2 4 8 only a big aux is created. In the 1st case the sum of aux and rrd file sizes is

Re: [gdal-dev] OGRSpatialReference::importFromWkt ()

2008-08-01 Thread Kyle Shannon
Thank you Mateusz, I called CPLLoad() to initialize a list of strings and then called ImportFromEsri() with that string and it worked. Thanks again. kss On Fri, Aug 1, 2008 at 1:42 PM, Mateusz Loskot <[EMAIL PROTECTED]> wrote: > Kyle Shannon wrote: > >> Hello all, >> I am using OGR Spatial refe

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Patrick Cannon
Hello Frank and everyone, Thank you for the replies. As Daniel and many of you suggested I checked the file handles and it is the issue. I had forgotten about that as I was stepping through the software. We have to have a lot of files open at one time in order to provide for "quiltting" of the

Re: [gdal-dev] OGRSpatialReference::importFromWkt ()

2008-08-01 Thread Mateusz Loskot
Kyle Shannon wrote: Hello all, I am using OGR Spatial references to reproject points to plot in google earth. I read an ascii raster and an associated prj file to define the source and destination spatial references. My program gets hung up with a certain *.prj file containing the text: PROJCS

[gdal-dev] OGRSpatialReference::importFromWkt ()

2008-08-01 Thread Kyle Shannon
Hello all, I am using OGR Spatial references to reproject points to plot in google earth. I read an ascii raster and an associated prj file to define the source and destination spatial references. My program gets hung up with a certain *.prj file containing the text: PROJCS["USA_Contiguous_Alber

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Mateusz Loskot
Frank Warmerdam wrote: > wow wrote: >> Hi, >> I wanna set new field value to an existing shape file which has been >> opened with update access, but it doesn't work, my code like this: >> >> OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = >> pFeature->GetFieldIndex("Name"); >> pFe

Re: [gdal-dev] Question about GDAL 1.4.5 release date

2008-08-01 Thread Frank Warmerdam
Daniele Romagnoli wrote: Hi list, we are thinking about tagging a version of our ImageIO-Ext project (actually based on GDAL 1.4.4). In such a context I would like to know if a date for the release #1.4.5 has already been estimated. And what about GDAL 1.5.3? Daniele, I'd *like* to proceed

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Frank Warmerdam
wow wrote: Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = pFeature->GetFieldIndex("Name"); pFeature->UnsetField(nIdx); pFeature->SetFi

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Mateusz Loskot
wow wrote: > Hi, > I wanna set new field value to an existing shape file which has been > opened with update access, but it doesn't work, my code like this: > > OGRFeature* pFeature = pLayer->GetFeature(2); > int nIdx = pFeature->GetFieldIndex("Name"); > pFeature->UnsetField(nIdx); > pFe

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Mateusz Loskot
Frank Warmerdam wrote: > At this point I'd normally try running in the debugger to track down > the failure, and/or running things under something like valgrind. If Patrick uses POSIX system, then I'd try to write a test program and monitor errno value if it's gets set to EMFILE [1] [1] http://ww

Re: [gdal-dev] Guidance sought on using gdal-translate

2008-08-01 Thread Frank Warmerdam
Christopher Hunt wrote: Hi Frank et. al, Sorry to be a pest. I've been trying tons of things, trawling tons of search results, and I'm really no better off than I was a few days ago. :-P In summary I have an aerial photo image of an airport with three well known points (expressed in lat/long

Re: [gdal-dev] Tiled vs Stripped TIFs, how many overviews and why (wirh gdaladdo)?

2008-08-01 Thread Maciej Sieczka
Nikos Alexandris pisze: On Fri, 2008-08-01 at 13:52 +0200, Maciej Sieczka wrote: Regarding disk usage you might find some hints here: https://trac.osgeo.org/qgis/ticket/605#comment:7 Maciek (or Maciej?), It's like Matt vs Matthew. Cheers, Maciek -- Maciej Sieczka www.sieczka.org __

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Frank Warmerdam
Patrick Cannon wrote: Hi Frank, Is there a limit to the number of GDALDatasets that can be open at one time? My program is set to automatically open raster images from a database. There are over 2254 charts in the database. Each record has the path to the actual file on disk. In auto mode

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Lucena, Ivan
Patrick, What is the DBMS that you are using? Since the image are unmanaged (file system) the DBMS should face the same file-handles limitation, no? Anyway, do you really need to have all 2254 files opened at the same time? Just curiosity. Best regards, Ivan Mateusz Loskot wrote: Daniel M

Re: [gdal-dev] Tiled vs Stripped TIFs, how many overviews and why (wirh gdaladdo)?

2008-08-01 Thread Nikos Alexandris
On Fri, 2008-08-01 at 13:52 +0200, Maciej Sieczka wrote: > Nikos Alexandris pisze: > > There has been a lot of discussion lately about using > > gdal_translate/gdalwarp with or without the "-co TILED=YES" option, > > about overviews and more. How can I determine what is best for my 300 > > photo

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Mateusz Loskot
Daniel Morissette wrote: > Patrick Cannon wrote: >> >> I do not think this is a memory issue because with the program running >> and 1000+ datasets open it has not hit the swap. >> >> If it is not a limit in the library, do you have any ideas? >> > > Could you be running out of file handles? > >

Re: [gdal-dev] GDALDataset limits?

2008-08-01 Thread Daniel Morissette
Patrick Cannon wrote: I do not think this is a memory issue because with the program running and 1000+ datasets open it has not hit the swap. If it is not a limit in the library, do you have any ideas? Could you be running out of file handles? By default, at least on my Ubuntu box, there

[gdal-dev] GDALDataset limits?

2008-08-01 Thread Patrick Cannon
Hi Frank, Is there a limit to the number of GDALDatasets that can be open at one time? My program is set to automatically open raster images from a database. There are over 2254 charts in the database. Each record has the path to the actual file on disk. In auto mode it gets to around 1004 o

Re: [gdal-dev] Tiled vs Stripped TIFs, how many overviews and why (wirh gdaladdo)?

2008-08-01 Thread Maciej Sieczka
Nikos Alexandris pisze: There has been a lot of discussion lately about using gdal_translate/gdalwarp with or without the "-co TILED=YES" option, about overviews and more. How can I determine what is best for my 300 photos? I want faster loading and as less disk usage as possible... what every

Re: [gdal-dev] Guidance sought on using gdal-translate

2008-08-01 Thread Christopher Hunt
Hi Frank et. al, Sorry to be a pest. I've been trying tons of things, trawling tons of search results, and I'm really no better off than I was a few days ago. :-P In summary I have an aerial photo image of an airport with three well known points (expressed in lat/longs). I'm wanting the i

[gdal-dev] Update existing shape file

2008-08-01 Thread wow
-- To the world you're little, but to a person you're the world. Chen Xuexia -- Original -- From: "wow"<[EMAIL PROTECTED]>; Date: Fri, Aug 1, 2008 11:21 AM To: "gdal-dev"; Subject: [gd