Re: [gdal-dev] Subsetting based on geo-coordinates.

2009-07-29 Thread Frank Warmerdam
Belaid MOA wrote: Hi Everyone, Sorry to bother again! I am looking for a cheap/dirty way of subsetting a GTiff image based on a rectangle specified in the geo-coordinates. Does GDAL has already something for that? Belaid, You want the -projwin switch for gdal_translate. It will take the

[gdal-dev] Subsetting based on geo-coordinates.

2009-07-29 Thread Belaid MOA
Hi Everyone, Sorry to bother again! I am looking for a cheap/dirty way of subsetting a GTiff image based on a rectangle specified in the geo-coordinates. Does GDAL has already something for that? Thank you very much in advance. With best regards. ~Belaid. > Date: Wed, 29 Jul 2009 16:35:16

RE: [gdal-dev] JPEG format - TestCapability

2009-07-29 Thread Belaid MOA
Thank you very much Frank. With best regards. Belaid Moa. > Date: Wed, 29 Jul 2009 16:35:16 -0400 > From: warmer...@pobox.com > To: belaid_...@hotmail.com > CC: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] JPEG format - TestCapability > > Belaid MOA wrote: > > Thank you all for your reply

Re: [gdal-dev] Error in GDAL compiling with HDF4

2009-07-29 Thread Frank Warmerdam
Limei Ran wrote: ... checking for FMEObjects... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lhdf4... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lmfhdf... no configure: error: HDF4 support requested with arg "/nas/uncch/depts/cep/emc/lran/m

Re: [gdal-dev] JPEG format - TestCapability

2009-07-29 Thread Frank Warmerdam
Belaid MOA wrote: Thank you all for your reply. Somehow I could not get TestCapability to work. I get the compilation error: "class GDALDriver has no member named TestCapability". According to the gdal_priv.h and GDAL Doc, the GDALDriver class does not have TestCapability function. Am I mi

RE: [gdal-dev] JPEG format - TestCapability

2009-07-29 Thread Belaid MOA
Thank you all for your reply. Somehow I could not get TestCapability to work. I get the compilation error: "class GDALDriver has no member named TestCapability". According to the gdal_priv.h and GDAL Doc, the GDALDriver class does not have TestCapability function. Am I missing something? W

Re: [gdal-dev] JPEG format.

2009-07-29 Thread Frank Warmerdam
Belaid MOA wrote: That's excellent to know! Thanks a lot Martin. Instead of getting segfault, I could use that to exist peacefully in case the driver does support the Create() function. Just of out of curiosity, why JPEG driver does not have the create function and only supports CreateCopy()?

Re: [gdal-dev] JPEG format.

2009-07-29 Thread Even Rouault
Le Wednesday 29 July 2009 20:46:47 Martin Chapman, vous avez écrit : > Good question. I imagine it is extra work for Frank that falls low on the > priority list. :) Another problem is that if you want to create a big raster, it might not hold entirely into RAM (a JPEG file uncompressed into RAM

RE: [gdal-dev] JPEG format.

2009-07-29 Thread Belaid MOA
That's excellent to know! Thanks a lot Martin. Instead of getting segfault, I could use that to exist peacefully in case the driver does support the Create() function. Just of out of curiosity, why JPEG driver does not have the create function and only supports CreateCopy()? The Create(

Re: [gdal-dev] JPEG format.

2009-07-29 Thread Martin Chapman
Good question. I imagine it is extra work for Frank that falls low on the priority list. :) Martin -Original Message- From: Belaid MOA Date: Wed, 29 Jul 2009 18:46:28 To: ; Subject: RE: [gdal-dev] JPEG format. That's excellent to know! Thanks a lot Martin. Instead of gettin

[gdal-dev] gdal2tiles altitude mode clampToSeaFloor ?

2009-07-29 Thread Jamie Adams
Hello all, Is there a way to get the 1.6 version of gdal2tiles to clamp tiles to the seafloor? I've tried modifying the script with & , but the tiles remain clamped to z=0. What's the correct approach? - Jamie ___ gdal-dev mailing list gdal-dev@lists

RE: [gdal-dev] JPEG format.

2009-07-29 Thread Belaid MOA
Special thanks Even. You are always quick and to the point! Thank you very much. As you pointed out, I was handling JPEG in the same manner as GTiff; I did not use the MEM driver first. With best regards. ~Belaid. > From: even.roua...@mines-paris.org > To: gdal-dev@lists.osgeo.org > Subje

Re: [gdal-dev] python gdal gdal.ReprojectImage produces no data

2009-07-29 Thread Jachym Cepicky
Hi Frank (and others), > Jachym, > > The problem is that your output file does not have a geotransform set, > so ReprojectImage() does not realize the output file overlaps the > area available from the input file. You need to set the geotransform > before calling ReprojectImage(). Setting the co

RE: [gdal-dev] JPEG format.

2009-07-29 Thread Martin Chapman
Use: if (!pDriver->TestCapability(ODrCCreateDataSource)) to test create capabilties of the driver. I think jpeg driver only supports CreateCopy(). You could use the Memory dataset to create a different size dataset and then use the jpeg driver to save it to disk. Martin From

Re: [gdal-dev] JPEG format.

2009-07-29 Thread Even Rouault
Le Wednesday 29 July 2009 19:44:41 Belaid MOA, vous avez écrit : > Hi Everyone, > When I try to use GDALCreate() on the JPEG driver, I got the following > error: "GDALDriver::Create() ... no create method implemented for this > format." Does is this mean that JPEG driver does not have its GDALCre

[gdal-dev] Error in GDAL compiling with HDF4

2009-07-29 Thread Limei Ran
Hi: I am having the following errors when I was compiling GDAL with HDF4 on a 64bits Linux server: == Command: >./configure --prefix=/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/gdal-1.6.1/local --with-static-proj4=/nas/uncch/depts/cep/emc/lran/mims/sa_06_200

[gdal-dev] JPEG format.

2009-07-29 Thread Belaid MOA
Hi Everyone, When I try to use GDALCreate() on the JPEG driver, I got the following error: "GDALDriver::Create() ... no create method implemented for this format." Does is this mean that JPEG driver does not have its GDALCreate() function implemented? Any example on how to use JPEG driver is

Re: [gdal-dev] OGR OCI Driver improvement

2009-07-29 Thread Frank Warmerdam
Nicolas Simon wrote: Dear developpers, I use OCI driver for a while and I found some problems These problems are blocking for me and I already have solution for some of them. My firsts questions are organisational. What to do to have the code I proposed tested by other people sharing the sa

[gdal-dev] OGR OCI Driver improvement

2009-07-29 Thread Nicolas Simon
Dear developpers, I use OCI driver for a while and I found some problems These problems are blocking for me and I already have solution for some of them. My firsts questions are organisational. What to do to have the code I proposed tested by other people sharing the same problem ? How to get

Re: [gdal-dev] python gdal gdal.ReprojectImage produces no data

2009-07-29 Thread Frank Warmerdam
Jachym Cepicky wrote: Hi I would like to write "custom" version of the gdalwarp tool in Python using gdal.ReprojectImage() function, but the only result I get, is just a empty "black" image. The code would look like this: # --- python code start --- from osgeo import gdal # let's

Re: [gdal-dev] Re: [SoC] GDAL WKTRaster weekly report #9

2009-07-29 Thread Mateusz Loskot
Mateusz Loskot wrote: Frank Warmerdam wrote: You also mention a doubt about how to handle the 16BF type, which is apparently "16-bit float". I have never seen such a thing before and I'm not sure why it is part of the WKTRaster specification. I would suggest removing it. I had same impression

Re: [gdal-dev] Re: [SoC] GDAL WKTRaster weekly report #9

2009-07-29 Thread Mateusz Loskot
Frank Warmerdam wrote: Is there any mechanism currently for creating overviews? How have you been testing overviews? Frank, I suppose you are asking for the GDAL driver. However, just to confirm, gdal2wktraster can generate WKT Raster datasets with overviews (in regular blocking mode). Unde

[gdal-dev] RE: GDAL WKTRaster weekly report #9

2009-07-29 Thread John Donovan
> You also mention a doubt about how to handle the 16BF type, which is > apparently "16-bit float". I have never seen such a thing before and I'm not > sure why it is part of the WKTRaster specification. I would suggest removing > it. It is a format, also called a half-float, used by the likes of

[gdal-dev] python gdal gdal.ReprojectImage produces no data

2009-07-29 Thread Jachym Cepicky
Hi I would like to write "custom" version of the gdalwarp tool in Python using gdal.ReprojectImage() function, but the only result I get, is just a empty "black" image. The code would look like this: # --- python code start --- from osgeo import gdal # let's have georeferenced geot

Re: [gdal-dev] Problem with nodata values

2009-07-29 Thread Rainer M Krug
On Fri, Jul 24, 2009 at 5:44 PM, Frank Warmerdam wrote: > Rainer M Krug wrote: >> >> Hi >> >> I have a geotiff and want to use gdalwarp to warp to it into a >> different projection. >> I do the following: >> >> gdalwarp -s_srs EPSG:32734 -t_srs '+proj=longlat +ellps=WGS84 >> +no_defs' Outeniqua.tif