RE: [gdal-dev] Set color table in NITF

2011-09-21 Thread Cole, Derek
to be taking, but its just not letting me modify the lookup table. Thanks From: Even Rouault [even.roua...@mines-paris.org] Sent: Monday, August 29, 2011 6:29 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Set color table in NITF Le mardi

[gdal-dev] Build GDAL - visual studio version

2011-09-20 Thread Cole, Derek
I built GDAL using nmake following the instructions here: http://trac.osgeo.org/gdal/wiki/BuildingOnWindows and building from Source Does this build require any of the MSvc* dlls or any other external DLLS? I am trying to use the GDAL library in a very simple Visual Studio 2010 project, and I

RE: [gdal-dev] Build GDAL - visual studio version

2011-09-20 Thread Cole, Derek
If GDAL is linked statically, and I recompile my library, will this still be the case? Can I recompile GDAL with MT instead of with the DLLs? From: Mateusz Loskot [mate...@loskot.net] Sent: Tuesday, September 20, 2011 11:51 AM To: Cole, Derek Cc: gdal-dev

[gdal-dev] Set color table in NITF

2011-08-29 Thread Cole, Derek
Hello, I am trying to create a NITF that uses a color lookup table. I found the option to add an RGB/LUT to the image, which didnt complain, however, when I had my LUT data to the image, it all seems to be kind of black and white. I know when I was displaying the images in my viewer (which I

RE: [gdal-dev] Writing data to CreateCopy files

2011-07-21 Thread Cole, Derek
and projection, coordinates, etc? Thanks Derek From: fwarmer...@gmail.com [fwarmer...@gmail.com] on behalf of Frank Warmerdam [warmer...@pobox.com] Sent: Friday, July 15, 2011 10:22 PM To: Cole, Derek Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Writing

[gdal-dev] Writing data to CreateCopy files

2011-07-15 Thread Cole, Derek
I have a couple of questions regarding this. Is the dataset that is returned from CreateCopy able to be used immediately? I would like to use it to get the first band from it, and use RasterIO on that band. Secondly - the data I am trying to write with RasterIO is unsigned char, but when I

RE: [gdal-dev] Creating modified copies of a file

2011-07-07 Thread Cole, Derek
-paris.org] Sent: Wednesday, July 06, 2011 5:32 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Creating modified copies of a file Le mercredi 06 juillet 2011 23:18:21, Cole, Derek a écrit : I have noticed that when attempting to do this, I am able to do a gdalinfo on the source

RE: [gdal-dev] Creating modified copies of a file

2011-07-07 Thread Cole, Derek
: Even Rouault [even.roua...@mines-paris.org] Sent: Thursday, July 07, 2011 2:13 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Creating modified copies of a file Le jeudi 07 juillet 2011 19:52:34, Cole, Derek a écrit : Well, I am about to give up on this I think and go

RE: [gdal-dev] Creating modified copies of a file

2011-07-07 Thread Cole, Derek
...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Thursday, July 07, 2011 2:48 PM To: gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Creating modified copies of a file Yes, the source data is a NITF. Here is the first few lines of the projection info in that source NITF: Coordinate

RE: [gdal-dev] Creating modified copies of a file

2011-07-07 Thread Cole, Derek
, or if someone else does, it might be nice to narrow down what exactly in the C++ API was causing the problem. Derek From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Thursday, July

RE: [gdal-dev] Creating modified copies of a file

2011-07-06 Thread Cole, Derek
Rouault [even.roua...@mines-paris.org] Sent: Tuesday, July 05, 2011 6:38 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Creating modified copies of a file Le mercredi 06 juillet 2011 00:26:06, Cole, Derek a écrit : Just as an interesting side-note: I tried to do a CreateCopy

RE: [gdal-dev] Creating modified copies of a file

2011-07-06 Thread Cole, Derek
-CreateCopy( , poDataset, FALSE, papszOptions, MyTextProgress, message); It seems to have no affect. Is it being passed properly? Derek From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com

RE: [gdal-dev] Creating modified copies of a file

2011-07-06 Thread Cole, Derek
be ~290MB right? I think uint16 is 4 bytes. This is still taking hours to copy. Thanks Derek From: Even Rouault [even.roua...@mines-paris.org] Sent: Wednesday, July 06, 2011 1:20 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Creating

RE: [gdal-dev] Creating modified copies of a file

2011-07-06 Thread Cole, Derek
at least. Derek From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Wednesday, July 06, 2011 3:04 PM To: gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Creating modified copies

[gdal-dev] Creating modified copies of a file

2011-07-05 Thread Cole, Derek
Hello, I think I started to ask about this before on this forum, but I have since used GDAL a bit more and might be better to generate a new thread. I have been using GDAL to read in NITF files, getting the RasterBand data, and manipulating it, and displaying the results in my viewer. Now, I

RE: [gdal-dev] Creating modified copies of a file

2011-07-05 Thread Cole, Derek
to the meta). Are you suggesting I just add another band to the already opened file? Not entirely sure I like this approach, but it may be doable. Derek From: Chaitanya kumar CH [chaitanya...@gmail.com] Sent: Tuesday, July 05, 2011 1:35 PM To: Cole, Derek Cc: gdal-dev

RE: [gdal-dev] Creating modified copies of a file

2011-07-05 Thread Cole, Derek
into the file manually. Bummer. Derek From: Even Rouault [even.roua...@mines-paris.org] Sent: Tuesday, July 05, 2011 2:09 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek; Chaitanya kumar CH Subject: Re: [gdal-dev] Creating modified copies of a file Le

[gdal-dev] gdalinfo fails on jpeg2000 compressed nitf

2011-07-01 Thread Cole, Derek
Hello, I have been trying to use the v2 OpenJPEG2000 driver with GDAL to read NITF files that have been compressed with jpeg2000. When I am trying to actually load these files and display them, my software sometimes succeeds, sometimes fails, sometimes gives bogus results. I also

RE: [gdal-dev] Building Overviews for Tiles of Large images

2011-06-15 Thread Cole, Derek
, and if a user zooms out, make another read into a fraction of the buffer size to get the downsampled version of the tile. Thanks Derek From: Chaitanya kumar CH [chaitanya...@gmail.com] Sent: Saturday, June 11, 2011 8:58 AM To: Cole, Derek Cc: gdal-dev

RE: [gdal-dev] CreateCopy() with same metadata, different raster data

2011-06-15 Thread Cole, Derek
...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Frank Warmerdam [warmer...@pobox.com] Sent: Wednesday, June 15, 2011 10:44 AM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] CreateCopy() with same metadata, different raster data On 11-06-14 09:18 PM, Cole, Derek wrote: Hrmm

RE: [gdal-dev] OpenJPEG2000 issues when reading blocks at a time

2011-06-14 Thread Cole, Derek
...@gmail.com] Sent: Monday, June 13, 2011 11:13 PM To: Cole, Derek Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] OpenJPEG2000 issues when reading blocks at a time Derek, Can you provide a screenshot of the displayed image. Especially the scrambled blocks

RE: [gdal-dev] OpenJPEG2000 issues when reading blocks at a time

2011-06-14 Thread Cole, Derek
populated? Derek From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Tuesday, June 14, 2011 10:28 AM To: Chaitanya kumar CH Cc: gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev

[gdal-dev] CreateCopy() with same metadata, different raster data

2011-06-14 Thread Cole, Derek
Is it possible to use CreateCopy() to easily copy in to a new image modified raster data based off the old image? I know all the metadata is going to be the same, I have simply changed the data after reading it from the original, and need to store it back to disk. Thanks

RE: [gdal-dev] CreateCopy() with same metadata, different raster data

2011-06-14 Thread Cole, Derek
: Tuesday, June 14, 2011 7:23 PM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] CreateCopy() with same metadata, different raster data On 11-06-14 07:04 PM, Cole, Derek wrote: Is it possible to use CreateCopy() to easily copy in to a new image modified raster data based off the old image? I

[gdal-dev] OpenJPEG2000 issues when reading blocks at a time

2011-06-13 Thread Cole, Derek
Hello, I have the following code: qDebug(tilePosX: %i , this-tilePosX); qDebug(tilePosY: %i , this-tilePosY); float * floatData = (float *) CPLMalloc(sizeof(float)*nXSize*nYSize); poBand-RasterIO( GF_Read, this-tilePosX*nXSize, this-tilePosY*nYSize, nXSize, nYSize, floatData,

[gdal-dev] Finding Actual Bits Per pixel

2011-06-10 Thread Cole, Derek
Similar to another ongoing thread, I am needing to convert imagery to 8 bit to display in my own viewer. This has presented me with a few issues. It seems like no matter what of the GDALDataTypes I perform a sizeof() operation on, be it GDT_Byte or GDT_Float32, the size is always 4 bytes.

[gdal-dev] RE: Finding Actual Bits Per pixel

2011-06-10 Thread Cole, Derek
. Derek From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Friday, June 10, 2011 4:15 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Finding Actual Bits Per pixel Similar to another

[gdal-dev] Building Overviews for Tiles of Large images

2011-06-10 Thread Cole, Derek
Hello again, I am reading over some of the documentation and information I can find on GDAL. I have some pretty large NITF images that I want to break up for purposes of displaying in a viewer I am developing. My current plan is to tile the images into 1024x1024 blocks. The full images are

[gdal-dev] Adding jasper support to gdal build

2011-06-08 Thread Cole, Derek
Hello all, i am trying to add jasper support to gdal so I can read jpeg2000 in NITF files. I downloaded the version of jasper off the site, and configured it like so: ./configure --enable-shared --prefix=/home/dcole/dump/jasper-1.900.1.uuid make make install which created bin and lib

[gdal-dev] RE: Adding jasper support to gdal build

2011-06-08 Thread Cole, Derek
fast From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Cole, Derek [dc...@integrity-apps.com] Sent: Wednesday, June 08, 2011 3:51 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Adding jasper support to gdal build Hello all