[gdal-dev] JP2KAK driver - nitf, j2p blocks, with color space of YCC

2011-02-22 Thread David Burken
Hi Frank, all, Just fyi we had some nitf data that had jp2 blocks with ycc color space(JP2_sYCC_SPACE=18) . ossim was crashing because the bands were set to 3 in the nitf but kakadu was expanding only one channel. I checked gdal and it was returning only one band(no crash). Anyway feeding

Re: [gdal-dev] How to use GDAL C++ dynamically?

2011-02-22 Thread Mikhail Tchernychev
I just tried: If I declare make functions of OGRSFDriverRegistrar as virtual, everything is working as expected. Most of the functions of other classes are virtual, why those are not? Best Regards, Mikhail On 2/22/2011 2:43 PM, Even Rouault wrote: Le mardi 22 février 2011 23:14:50, Mikhai

Re: [gdal-dev] How to use GDAL C++ dynamically?

2011-02-22 Thread Mikhail Tchernychev
This is what I normally do, however it's not much less pain, even it's simple. I typically write a wrapper to execute all GetProcAdress() functions at once and store pointers in the class. Taking into number of GDAL functions, its' would be very challenging. Mikhail On 2/22/2011 2:43 PM, Eve

Re: [gdal-dev] How to use GDAL C++ dynamically?

2011-02-22 Thread Even Rouault
Le mardi 22 février 2011 23:14:50, Mikhail Tchernychev a écrit : >Hello List, > > I wonder if someone could point me into the right direction. I would > like to use > GDAL as loaded DLL at run time, with LoadLibray() call under windows > and corresponding > calls under Linux. I see that most

[gdal-dev] How to use GDAL C++ dynamically?

2011-02-22 Thread Mikhail Tchernychev
Hello List, I wonder if someone could point me into the right direction. I would like to use GDAL as loaded DLL at run time, with LoadLibray() call under windows and corresponding calls under Linux. I see that most of the functions are virtual, so it seems it is made with this in mind. I

Re: [gdal-dev] What's the best/simplest gdal binary for Windows 7?

2011-02-22 Thread Roland Duhaime
Michael, I am running Windows 7 and I use the Osgeo4w installer with the advanced install option to select the specific gdal and python libraries that I need. The default gdal1.8 is recommended. Osgeo4w can be found here: http://trac.osgeo.org/osgeo4w/ Without knowing your specific application

Re: [gdal-dev] Re: Gdal2tiles in Gdal18 and creating KMZ files

2011-02-22 Thread Roland Duhaime
I have been working with the png creation option under "gdal_translate -of kmlsuperoverlay" to create kmz files that include transparency. I haven't had much luck with controlling specific colors that becomes transparent, or even maintaining transparency in the source HFA file. The handling of tr

[gdal-dev] What's the best/simplest gdal binary for Windows 7?

2011-02-22 Thread K . -Michael Aye
Dear all, I am providing some python/gdal based libraries to Windows 7 users who are no programmers, so no mingw or VisualStudio is available and I am a Mac User. Which of the several should I recommend them to install? Best regards, Michael ___

[gdal-dev] 2011 FOSS4G Call for Papers

2011-02-22 Thread Frank Warmerdam
Folks, The call for presentations for FOSS4G 2011 in Denver is now open. The full announcement follows: Open Source Geospatial Conference Calls for Speakers Education for All Levels of Ability and Experience DENVER, Feb. 22, 2011 -- The Free and Open Source Software for Geospatial (FOSS4G) c

Re: [gdal-dev] GDAL JP2KAK plugin for lossless 16 bit

2011-02-22 Thread Frank Warmerdam
On 11-02-22 11:31 AM, Frederic CLAUDEL wrote: Hi, I've been trying to create a lossless JPEG2000 image from a signed 16-bit DEM (stored in a TIFF file), but have had no success so far with JP2KAK. My DEM has large NoData regions (value is DTED NoData : -32767) I tried different GDAL versions (1.7

[gdal-dev] GDAL JP2KAK plugin for lossless 16 bit

2011-02-22 Thread Frederic CLAUDEL
Hi, I've been trying to create a lossless JPEG2000 image from a signed 16-bit DEM (stored in a TIFF file), but have had no success so far with JP2KAK. My DEM has large NoData regions (value is DTED NoData : -32767) I tried different GDAL versions (1.7 1.8), and different versions of KAKADU (6.3

RE: [gdal-dev] Downsample with averaging?

2011-02-22 Thread Jay Jennings
Brilliant ! That works well, and fast. For the record, a command like: gdal_translate -outsize 3.125% 3.125% .tif _dzm32.tif serves to extract the 32:1 reduced-resolution level from a file created with a command like: gdaladdo -r cubic .tif 2 4 8 16 32 64 128 256 and the result is

Re: [gdal-dev] Re: [Qgis-developer] Issue saving shapefiles with REAL15 values

2011-02-22 Thread Chaitanya kumar CH
Anita, Is it possible to send a small sample data to my email for testing? Doesn't matter if the ID field values are wrong. On Tue, Feb 22, 2011 at 9:21 PM, Anita Graser wrote: > Hi, > > I used the following ogr2ogr command: > > ogr2ogr -sql "select * from nw where NAME = 'Am Johannesberg'" new

Re: [gdal-dev] Re: [Qgis-developer] Issue saving shapefiles with REAL15 values

2011-02-22 Thread Anita Graser
Hi, I used the following ogr2ogr command: ogr2ogr -sql "select * from nw where NAME = 'Am Johannesberg'" new.shp nw.shp The resulting shp contains correct geometries, but the values in ID,N,15,0 fields are broken. I guess that shows that it's a GDAL/OGR problem. Thanks, best wishes, Ani

[gdal-dev] Re: [Qgis-developer] Issue saving shapefiles with REAL15 values

2011-02-22 Thread Anita Graser
Am 22.02.2011, 14:49 Uhr, schrieb Barry Rowlingson : On Tue, Feb 22, 2011 at 12:37 PM, Anita Graser wrote: You can extract just one record, and share that one. How? If I use QGIS, the values will be broken. ogr2ogr on the command line? ogr2ogr results in the same broken values. Loo

Re: [gdal-dev] Downsample with averaging?

2011-02-22 Thread Jean-Claude Repetto
Le 22/02/2011 16:39, Jay Jennings a écrit : >> there is a gdal method to extract a single overview level from a tif but I can never >> remember it maybe someone will chime in... If so, that would be really helpful. Does anyone know how to extract a single overview from a pyramid’d image such

RE: [gdal-dev] Downsample with averaging?

2011-02-22 Thread Jay Jennings
>> there is a gdal method to extract a single overview level from a tif but I >> can never >> remember it maybe someone will chime in... If so, that would be really helpful. Does anyone know how to extract a single overview from a pyramid'd image such as made from a command like: gdaladdo .

Re: [gdal-dev] Re: [Qgis-developer] Issue saving shapefiles with REAL15 values

2011-02-22 Thread Chaitanya kumar CH
Anita, First, let us isolate the source of this error. QGIS or GDAL/OGR. Use ogr2ogr to clip the part you did with QGIS. See the extents of the clipped shapefile using ogrinfo and use it with the ogr2ogr utility. http://www.gdal.org/ogr2ogr.html On Tue, Feb 22, 2011 at 6:07 PM, Anita Graser wrot

[gdal-dev] Re: [Qgis-developer] Issue saving shapefiles with REAL15 values

2011-02-22 Thread Anita Graser
Am 22.02.2011, 13:19 Uhr, schrieb Paolo Cavallini : Il giorno mar, 22/02/2011 alle 13.16 +0100, Anita Graser ha scritto: I have a shapefile containing fields of type REAL15. I'd like to cut an area of interest out of this shapefile using QGIS "Save as ..." function. The resulting shapefile st

Re: [gdal-dev] Downsample with averaging?

2011-02-22 Thread Norman Vine
On Feb 21, 2011, at 3:26 PM, Jay Jennings wrote: > Hello list, > (using GDAL 1.8.0) I am trying to create a 32:1 down-sampled overview of a > GeoTiff satellite image. My first thought was gdal_translate, with args such > as “-outsize 3.125% 3.125%”… which produces surprisingly high quality giv

Re: [gdal-dev] Downsample with averaging?

2011-02-22 Thread Chaitanya kumar CH
Jay, The external overview files are created in TIFF format. I checked. However, most of the metadata will be lost. You can recover the metadata by using gdal_translate with "-outsize 3.125% 3.125%". It will read the metadata from the original file and the pixels from the level 32 overview. Regar