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

2011-06-14 Thread Cole, Derek
Hrmm, that is sort of unfortunate. I have set up a tiling algorithm to read in tiles at a time of imagery data, which is already slow-ish, even doing it it with threads. Having to do a whole new read of the entire image at once (since it doesnt seem CreateCopy takes any block parameters) would b

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

2011-06-14 Thread Frank Warmerdam
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 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

[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 ___

[gdal-dev] "disformed" images in its positions

2011-06-14 Thread frederick keusch
Hi, i would like to use gdalwarp to solve a problem we have. Like i am a very new user of gdal I don't know, if gdalwarp really can solve the problem, but I hope so. The problem that we have are a kind of "disformed" images in its positions. The images have several shifts in various directions. Bu

Re: [gdal-dev] gdalbuildvrt does not support heterogenous band characteristics

2011-06-14 Thread Matt Wilkie
Likely Quickbird_06m10.tif has more or less bands than the previous files, or band bit depth is different. That was it, thanks. For some reason although they were all created from the same source and process (arcmap > export > selected area) some images are 8bit RGB and others 16bit grey

Re: [gdal-dev] gdalbuildvrt does not support heterogenous band characteristics

2011-06-14 Thread Brent Fraser
Matt, Likely Quickbird_06m10.tif has more or less bands than the previous files, or band bit depth is different. For example, don't try to include a 1 band 16-bit (e.g. gray scale) tiff in a VRT of 3 band, 8 bits each (e.g. RGB color) tiffs. What does gdalinfo say about this file (and

[gdal-dev] gdalbuildvrt does not support heterogenous band characteristics

2011-06-14 Thread Matt Wilkie
Hi Folks, what does this error mean? gdalbuildvrt -input_file_list img-list.txt mosaic.vrt 0...10Warning 6: gdalbuildvrt does not support heterogenous band characteristics . Skipping Quickbird_06m10.tif ...etc. thanks! -- matt wilkie Geomatics Anal

Re: [gdal-dev] ogr2ogr custom coordiante system

2011-06-14 Thread Eli Adam
Brian, What is the command that you tried? If you can construct the proper proj4 format, it should work for ogr. Exactly matching the string in PostGIS may not work and you may get a new number like 32,000 for a new SRID that was added in PostGIS. This slightly older thread sugges

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Frank Warmerdam
On 11-06-14 10:38 AM, Alex Mantaut wrote: Frank: Thanks for your reply. I thought that there could be a trim funcion on CPL... I will use that code to trim my string... Alex, In fact, with a quick check I see I have added a Trim() method to the CPLString to remove trailing white space

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

2011-06-14 Thread Cole, Derek
Sorry to spam the list, but I am wondering if this is related to the threading perhaps? I have tried to run this identical code in a single-threaded fashion, and it seems to work OK. Does the library perhaps have something going on that is signaling the file has been read prematurely? I have wat

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Alex Mantaut
Frank: Thanks for your reply. I thought that there could be a trim funcion on CPL... I will use that code to trim my string... Another question: To get several fields from the file's metadata, is it better to use GetMetadata() and then search within the array for the fields, or use GetMeta

[gdal-dev] ogr2ogr custom coordiante system

2011-06-14 Thread Brian Fischer
Hi Everyone, I was wondering if there are any help files or guides on how to define a custom coordinate system to use with the ogr2ogr.exe utility. I am trying to use it to load a shapefile into a PostGIS database. The shapefile is in a custom Minnesota County coordinate system. When I try to

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

2011-06-14 Thread Cole, Derek
I am afraid I won't be able to post a screenshot, or the original image that is causing this issue. I will also note, occaisionally the image fails to load at all, and I get a dump like this: ERROR 1: Marker is not compliant with its position ERROR 1: opj_read_header() failed ERROR 1: IReadBlo

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Frank Warmerdam
On 11-06-14 10:08 AM, Alex Mantaut wrote: Hi Frank: Thanks for your response. I wasn't sure if the whitespace was allways going to be there, because for some fields had the white space but others didn't. I will remove the trailing whitespace. Now, I'm trying to develop a modification

Re: [gdal-dev] HDF5 metadata format problems

2011-06-14 Thread Alex Mantaut
Hi Frank: Thanks for your response. I wasn't sure if the whitespace was allways going to be there, because for some fields had the white space but others didn't. I will remove the trailing whitespace. Now, I'm trying to develop a modification on the HDF5 driver to allow it to get the g