Re: [gdal-dev] RPC and DEM = Too many points (441 out of 441) failed to transform

2011-07-08 Thread Goo Creations
case, but try it anyway. > > http://lists.osgeo.org/pipermail/gdal-dev/2010-June/024846.html > > On Fri, Jul 8, 2011 at 1:08 PM, Goo Creations wrote: > >> Hi, >> >> I've seen that there are quite a lot of messages on this problem, but none >> of them helped. Whe

[gdal-dev] RPC and DEM = Too many points (441 out of 441) failed to transform

2011-07-08 Thread Goo Creations
Hi, I've seen that there are quite a lot of messages on this problem, but none of them helped. When running the following command: gdalwarp -rpc raw.tif out.tif with a raw.tif and raw.rpb file, the image "orthorectifies" correctly. The moment I run: gdalwarp -rpc -to RPC_DEM

Re: [gdal-dev] Remove projection info

2011-06-21 Thread Goo Creations
Thanks Frank, that worked! On Tue, Jun 21, 2011 at 1:29 PM, Frank Warmerdam wrote: > On 11-06-21 07:05 AM, Goo Creations wrote: > >> Hi all, >> >> I'm looking for a way to remove any projection and CRS information from an >> image. I've tried: >&

[gdal-dev] Remove projection info

2011-06-21 Thread Goo Creations
Hi all, I'm looking for a way to remove any projection and CRS information from an image. I've tried: gdal_translate -a_srs "" in.tif out.tif but without any success. Does anyone know how to do this (or by using CreateCopy() via source code)? Thanks _

[gdal-dev] Merge images without coordinates

2011-06-05 Thread Goo Creations
Hi all This is maybe not the right place to ask, but since gdal provides merge functionality, this is the place to start. gdal_merge provides functionality to merge images with coordinates. I now want to merge images WITHOUT any coordinates, hence do a pixel-by-pixel matching. I will be able to i

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

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

2011-06-03 Thread Goo Creations
1 at 12:21 PM, Even Rouault wrote: > 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 *mInputDatas

[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();

Re: [gdal-dev] Memory loss with RasterIO

2011-05-27 Thread Goo Creations
Hey Thanks. I'll try playing around with different block sizes, to reduce fragmentation. On Fri, May 27, 2011 at 12:55 PM, Even Rouault wrote: > You're perhaps running into memory fragmentation issues if your buffer is > too > big. And yes, GDAL maintains internally a block cache whose blocks

[gdal-dev] Memory loss with RasterIO

2011-05-27 Thread Goo Creations
Hi all, I've come across some weird memory loss: *uint *data = new uint[region->width*region->height]; int x = 0, y = 0; dataset->GetRasterBand(band)->RasterIO(GF_Read, x, y, width, height, data, width, height, GDT_UInt32, 0, 0); delete [] data; * This code is executed a few thousand times with d

Re: [gdal-dev] GDAL build problems under Linux debian x86_64

2011-05-16 Thread Goo Creations
e, or is this permanent and I should try to find a solution? Chris On Mon, May 16, 2011 at 11:30 AM, Antonio Valentino < antonio.valent...@tiscali.it> wrote: > Hi Goo Creations, > > Il giorno Mon, 16 May 2011 11:23:05 +0200 > Goo Creations ha scritto: > > > I have proble

Re: Re: RE: [gdal-dev] GDAL build problems under Linux debian x86_64

2011-05-16 Thread Goo Creations
I have problems with: CONFIGURE_SHELL=/bin/bash (works!) export(works!) CONFIGURE_SHELL (error: CONFIGURE_SHELL: command not found) ./configure --with-pg=/usr/bin/pg_config ...(error: configure: WARNING: you should use --build, --host, --target checking build system type... Invalid

Re: RE: [gdal-dev] GDAL build problems under Linux debian x86_64

2011-05-16 Thread Goo Creations
Hi I still have the problem Ubuntun 10.04. I've tried the above solutions without any sucess. Any Ubuntu users have a solution? Chris On Mon, May 16, 2011 at 10:28 AM, sigfr...@tiscali.it wrote: > Hi all, > > also setting the CONFIGURE_SHELL variable before running > configure worked for me: >

[gdal-dev] gdalwarp not using DEM with RPC

2011-05-06 Thread Goo Creations
Hi all I have a image with the necessary DEM and RPB file. When I use: gdalwarp -to "RPC_DEM=/tmp/dem.dem" -to "METHOD=RPC" raw.tif ortho.tif OR gdalwarp -to "RPC_DEM=/tmp/dem.dem" -rpc raw.tif ortho.tif But when I warp the image, I see no difference between ortho.tif that was generated with t

[gdal-dev] Removing GCPs from tiff

2011-04-12 Thread Goo Creations
Hi all I've got a tiff file with a number of stored GCPs. How can I remove these GCPs from the file? I've tried: SetGCPs(int nGCPCount, const GDAL_GCP *pasGCPList, const char *

[gdal-dev] Can't read transformation coefficients from tiff

2011-04-07 Thread Goo Creations
Hi all I tried to read the transformation coefficients by using GDALDataset::GetGeoTransform. This function however returned CE_Failure, so i assume that the values are not stored in the metadat. When I view the image, the image is rotated. There is no world file or anything that could cause the r

[gdal-dev] gdalwarp without metatdat

2011-03-04 Thread Goo Creations
Hi again Sorry about this, the problem is solved. I actually needed gdal_translate. Sorry for the inconvenience. Chris ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdalwarp without metadata

2011-03-04 Thread Goo Creations
Hi all I'm using gdal warp to warp a jpeg (with world file) to GeoTiff. After the Tif was created, I can open it in any image viewer and the image looks fine (width, height and correct rotation) When I open the image in any GIS software (eg: QGIS or FreeView) the image is rotated twice as much as

Re: [gdal-dev] GDAL Error 4 - Again

2010-09-28 Thread GOO Creations
imported. On Tue, Sep 28, 2010 at 3:31 PM, GOO Creations <mailto:goocreati...@gmail.com>> wrote: Hi everyone I've looked through the mailing-list archive and I know this issue was addressed several 100 times, but I still can't find the problem: This is my code I u

Re: [gdal-dev] GDAL Error 4 - Again

2010-09-28 Thread GOO Creations
Yes, but this didn't help either. Chris On 2010/09/28 12:17 PM, Chaitanya kumar CH wrote: Chris, Did yo remember to make a call to GDALAllRegister() ? Python automatically calls that when the GDAL module is imported. On Tue, Sep 28, 2010 at 3:31 PM, GOO Creations <mailto:g

[gdal-dev] GDAL Error 4 - Again

2010-09-28 Thread GOO Creations
Hi everyone I've looked through the mailing-list archive and I know this issue was addressed several 100 times, but I still can't find the problem: This is my code I use to open an image: const char* f = "/home/goocreations/Documents/blue.pix"; GDALDataset *d = (GDALDataset*) GDALOpen(f,GA_U