[gdal-dev] Insert non-standard tag into geotiff header

2011-06-03 Thread marine88
HI, I am new to this and was asked if I could insert a custom tag into the geotiff header. I have no clue on how to do this is this even possible? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Insert-non-standard-tag-into-geotiff-header-tp6436732p6436732.html Sent f

Re: [gdal-dev] Writing raster - 0 in every even column

2011-06-03 Thread Goo Creations
Thanks, GDALCopyWords was what I was looking for Thanks Chris On Fri, Jun 3, 2011 at 12:39 PM, Even Rouault wrote: > Le vendredi 03 juin 2011 12:32:16, Goo Creations a écrit : > > Ah, thanks. This solved the problem. > > I however face the problem that I don't know which data type the image > h

Re: [gdal-dev] Writing raster - 0 in every even column

2011-06-03 Thread Even Rouault
Le vendredi 03 juin 2011 12:32:16, Goo Creations a écrit : > Ah, thanks. This solved the problem. > I however face the problem that I don't know which data type the image has. > So I can't hardcode the array to unsigned short, since it might sometimes > be a int32 or even a float. So is there a way

Re: [gdal-dev] Writing raster - 0 in every even column

2011-06-03 Thread Goo Creations
Ah, thanks. This solved the problem. I however face the problem that I don't know which data type the image has. So I can't hardcode the array to unsigned short, since it might sometimes be a int32 or even a float. So is there a way to do this in a generic way? Chris On Fri, Jun 3, 2011 at 12:21

Re: [gdal-dev] Writing raster - 0 in every even column

2011-06-03 Thread Even Rouault
Le vendredi 03 juin 2011 12:13:41, Goo Creations a écrit : > Hi all > > I have a strange problem when writing to a GDAL dataset. I'm currently > doing the following: > > *GDALDataset *mInputDataset = (GDALDataset*) GDALOpen("in.tif", > GA_ReadOnly); > GDALDataType type = mInputDataset->GetRasterB

[gdal-dev] Writing raster - 0 in every even column

2011-06-03 Thread Goo Creations
Hi all I have a strange problem when writing to a GDAL dataset. I'm currently doing the following: *GDALDataset *mInputDataset = (GDALDataset*) GDALOpen("in.tif", GA_ReadOnly); GDALDataType type = mInputDataset->GetRasterBand(1)->GetRasterDataType(); int mWidth = mInputDataset->GetRasterXSize();