Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Frank Warmerdam
Benoit Andrieu wrote: Thanks for the answer Frank ! So in a first time I'll be looking at making a gdaladdo bis. By the way, do you know why Mapserver does "only" support nearest, average, bilinear, bicubic ? I thought it was using GDAL to do warping, but then it would natively support cubics

Re :[gdal-dev] How to use GDAL Library

2009-03-30 Thread Ajmeri Iqbal
Thanks Jürgen.i recoded with C-api and working fine.but now i have confusion about functionality of C-api and C++-api.shell i continue with C-api or build GDAL library with MinGW and use C++-api?On Mon, 30 Mar 2009 15:55:18 +0200 Jürgen E. Fischer wroteHi,On Mon, 30. Mar 2009 at 13:22:46 -,

Re :Re: Re :Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Ajmeri Iqbal
hi,following is my code.GDALDataset *poDataset;GDALAllRegister();poDataset = (GDALDataset *) GDALOpen( pszFilename, GA_ReadOnly );if( poDataset != NULL ){double adfGeoTransform[6];qDebug()<<"Driver: "<GetDriver()->GetDescription()<GetDriver()->GetMetadataItem   ( GDA

Re[2]: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Benoit Andrieu
That sounds like bad news for my dreams ! :( I was planning to make a try with IPP on some parts of GDAL (warping, geometry rasterization). Did you make some profiling ? I would be interested to know the results ! Regards, Benoît Andrieu > -Message reçu- > De: Adam Nowacki > À: "gdal

Re[2]: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Benoit Andrieu
Thanks for the answer Frank ! So in a first time I'll be looking at making a gdaladdo bis. By the way, do you know why Mapserver does "only" support nearest, average, bilinear, bicubic ? I thought it was using GDAL to do warping, but then it would natively support cubicspline and lanczos. I kno

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Adam Nowacki
Seth Price wrote: I actually hope to be addressing performance in my GSoC project. I'm interested in rewriting the GDAL resampling code to CUDA, so the graphics card does the hard work. For example, instead of processing one pixel at a time, the latest GeForce GTX 260 would be able to process 216

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Frank Warmerdam
Benoit Andrieu wrote: The quality after downsizing images with gdalwarp is so perfect that I am now willing to include this in my overviews. Is there any chances to have this include in future releases or is there any difficulties I am not aware of ? It is my intention to add a cubic resampling

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-30 Thread Joaquim Luis
Jorge Arévalo wrote: Hello, Thanks for the link Mateusz. OK, I need your opinion. I've been working during 1 year (still working) in a project that uses gdal library (developing some code), and Postgis, to transform vectorial data (MIF files) on PNG tiles to show over google maps. I use Po

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-30 Thread Jorge Arévalo
Hello, Thanks for the link, and for your opinion! I'll apply for the three projects. Best regards Jorge 2009/3/30 Mateusz Loskot > Mateusz Loskot wrote: > > Jorge Arévalo wrote: > >> The entire process could be improved by several ways: > >> > >> - I would like to have an enhaced PNG driver, t

Re[2]: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Benoit Andrieu
Wow ! Great !! CUDA is ideal for this kind of processing and should be "easy" to get very high performances. But maybe you should want to wait for OpenCL to get out from the specs phase ? You could support NVidia/ATI/Larrabee in a single shot... but you'll have to wait for some times... On my s

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-30 Thread Mateusz Loskot
Mateusz Loskot wrote: > Jorge Arévalo wrote: >> The entire process could be improved by several ways: >> >> - I would like to have an enhaced PNG driver, to reduce the size of >> the tiles. For this reason, I had a theoretical approach to >> NeuQuant algorithm and I used pngnq. I discovered the re

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-30 Thread Mateusz Loskot
Jorge Arévalo wrote: > The entire process could be improved by several ways: > > - I would like to have an enhaced PNG driver, to reduce the size of the > tiles. For this reason, I had a theoretical approach to NeuQuant > algorithm and I used pngnq. I discovered the relation between this > algorit

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Seth Price
One reason that warping is different than overviews is that warping has much more versatile resampling. For the current overview code, an integer number of pixels are combined into one pixel, and there is no overlap between resampling areas. For warping code, each destination pixel draws from sourc

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Seth Price
I actually hope to be addressing performance in my GSoC project. I'm interested in rewriting the GDAL resampling code to CUDA, so the graphics card does the hard work. For example, instead of processing one pixel at a time, the latest GeForce GTX 260 would be able to process 216. I'm hoping for CUD

[gdal-dev] using gcp's without giving coordinates

2009-03-30 Thread erik
Hello, I'm trying to convert a map from OziExplorer Map file fromat to Geotiff. FOr this i'm using the calibration points in the Map file as Ground Control Points. I do the following: gdal_translate \ -gcp 203 52 529000 4191000 \ -gcp 5174 3096 544000 4182000 \ -gcp 5201 99 544000 4191000 \ -gcp

Re[2]: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Benoit Andrieu
Thanks for the answer, > > Hi list ! > > > > I was wondering why the Lanczos and cubicspline are available in > > gdal_warp and not gdaladdo ? > > Benoît, > > The overview builder and warper use quite different mechanisms so there > is no close relationship between the resampling options avail

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-30 Thread Jorge Arévalo
Hello, Thanks for the link Mateusz. OK, I need your opinion. I've been working during 1 year (still working) in a project that uses gdal library (developing some code), and Postgis, to transform vectorial data (MIF files) on PNG tiles to show over google maps. I use Postgis to perform a previous

Re: [gdal-dev] ERROR 4: `AOI.tif' not recognised as a supported file format.

2009-03-30 Thread Oz Nahum
thanks, That does the trick. Oz. On Mon, Mar 30, 2009 at 7:02 PM, Even Rouault wrote: > Oz, > > See the hereafter a correction to insert in your code that will hopefully > fix > your issue. > > Le Monday 30 March 2009 17:25:13 Oz Nahum, vous avez écrit : > > Hi, > > I have encountered a weired pr

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Seth Price
The resampling code between gdal_warp and gdaladdo is completely separate, thus it is basically two different projects. For the Google Summer of Code application I'm about to submit I will be working on the resampling code in GDAL's warper and GRASS. If I have time (and my application is accepted!)

Re: [gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Frank Warmerdam
Benoît Andrieu wrote: Hi list ! I was wondering why the Lanczos and cubicspline are available in gdal_warp and not gdaladdo ? Benoît, The overview builder and warper use quite different mechanisms so there is no close relationship between the resampling options available in each case. The q

[gdal-dev] Availability of Lanczos and cubicspline in gdaladdo

2009-03-30 Thread Benoît Andrieu
Hi list ! I was wondering why the Lanczos and cubicspline are available in gdal_warp and not gdaladdo ? The quality after downsizing images with gdalwarp is so perfect that I am now willing to include this in my overviews. Is there any chances to have this include in future releases or is ther

Re: [gdal-dev] ERROR 4: `AOI.tif' not recognised as a supported file format.

2009-03-30 Thread Even Rouault
Oz, See the hereafter a correction to insert in your code that will hopefully fix your issue. Le Monday 30 March 2009 17:25:13 Oz Nahum, vous avez écrit : > Hi, > I have encountered a weired problem with gdal_rasterize. > > when I run the script from here > http://trac.osgeo.org/gdal/wiki/FAQRas

Re: [gdal-dev] utm projection in gdal_translate

2009-03-30 Thread Frank Warmerdam
Luca Fasano wrote: Hi, I want to create a GTiff copy to a data with projection overridden to *utm* using gdal_translate and its "a_srs" parameter. If I try to do this I obtain a wrongly located data. Command I use is like following: $ gdal_translate -of GTiff -a_srs "+proj=utm +datum=WGS84 +z

[gdal-dev] ERROR 4: `AOI.tif' not recognised as a supported file format.

2009-03-30 Thread Oz Nahum
Hi, I have encountered a weired problem with gdal_rasterize. when I run the script from here http://trac.osgeo.org/gdal/wiki/FAQRaster#HowcanIcreateablankrasterbasedonavectorfilesextentsforusewithgdal_rasterize When I run: #!/usr/bin/env python from osgeo import gdal from osgeo import osr from o

[gdal-dev] How to use GDAL Library

2009-03-30 Thread Jürgen E . Fischer
Hi, On Mon, 30. Mar 2009 at 13:22:46 -, Ajmeri Iqbal wrote: > D:/QT_Projects/ImageRW/main.cpp:34: undefined reference to > `GDALDataset::GetRasterCount()' Are you using the C++ API directly? That won't work from MinGW unless GDAL is also built with MinGW. The C-API will work. Jürgen --

Re: Re :Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Benoît Andrieu
Well... Have you checked your path to your include files ? Could I see the part of the code where the errors occured ? Thx Benoît Andrieu b...@ixsea.com benoit.andr...@gmail.com - Original Message - From: Ajmeri Iqbal To: b...@ixsea.com Cc: gdal-dev@lists.osgeo.org Sent: M

Re :Re: Re :Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Ajmeri Iqbal
Hi,Thanks Benoît Andrieubea for your reply.you are right, there is no need any cpp file. but when i build the same code given in GDAL tutorial with QT Creator popups the following error.g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mt

Re: Re :Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Benoît Andrieu
Hi ! You won't need any cpp files. Personally, I am using the FWTools package which bundles dll, libs and headers files. You just have to compile using gdal_priv.h Then link to gdal_i.lib Then provide with your runtime all the dlls which gdal_fw.dll is depending to. You will find which dlls it i

[gdal-dev] utm projection in gdal_translate

2009-03-30 Thread Luca Fasano
Hi, I want to create a GTiff copy to a data with projection overridden to *utm* using gdal_translate and its "a_srs" parameter. If I try to do this I obtain a wrongly located data. Command I use is like following: $ gdal_translate -of GTiff -a_srs "+proj=utm +datum=WGS84 +zone= " src dst.tiff

Re :Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Ajmeri Iqbal
Hi,Actually i m working on Generic image reading/writing and display on viewer with all of its information, so i think i need all listed library. but dont know how to use them in my code.i have downloded gdal_i.lib, gdal.dll and its include .h files..h files contains only the prototype function

Re: Re :Re: [gdal-dev] How to use GDAL Library

2009-03-30 Thread Benoît Andrieu
Hi, I am using FWTools 2.2.9 So I am releasing my softwares with most of the dlls (you can use depends to find which). The linking is done with : gdal_i.lib geos_i.lib geotiff_i.lib libtiff_i.lib proj_i.lib But yo may want to use more or less libraries... Regards, Benoît Andrieu b...@ixsea.co