[gdal-dev] Re: gdal_fillnodata error

2009-03-27 Thread Wesley Roberts
Dear list, Sometime last week I posted a question regarding errors associated with gdal_fillnodata. Brent Fraser kindly shared with me some C++ code he had written to approximate the workings of the python gdal_fillnodata app. Through trial and error (and some extra help from Brent) I have

[gdal-dev] creat a temp workplace

2009-03-27 Thread apachemaven
I am sorry to send again,because in the last email,I have not describe my problem exectly,and sent it - I want to handle some hdf data through a web service,and in the web service I handle

[gdal-dev] ogr2ogr C#

2009-03-27 Thread Sune Dogan, LIFA A/S
Hi Im developing a .NET C# project and need to convert from GML to ESRI Shape Simply i want to run this command: ogr2ogr -skipfailures -f ESRI Shapefile C:\shapefile.shp c:\gmlfile.gml which works fine from the FWTool Command tool. But i just want to do i in my application, can any one

[gdal-dev] create a workplace (location mapset etc)_

2009-03-27 Thread apachemaven
I want to handle some hdf data through a web service,and in the web service I handle the data by grass, so the problem comes out.The following is my setps: 1)translate the hdf4 to a tif by a FWTools2.2.8 which call the gdal command actually) for example I use the command gdal_translate [the

Re: [gdal-dev] Re: gdal_fillnodata error

2009-03-27 Thread Wesley Roberts
Hi Vincent and List, You are correct, the library was not in my path and the command you suggested worked perfectly. I think the problem lies in the number of versions of gdal I have installed on my machine. I have a recently downloaded svn version of gdal, gdal 1.5.2 and gdal 1.4.4. Version

Re: [gdal-dev] Re: gdal_fillnodata error

2009-03-27 Thread Vincent Schut
Wesley Roberts wrote: Hi Vincent and List, You are correct, the library was not in my path and the command you suggested worked perfectly. I think the problem lies in the number of versions of gdal I have installed on my machine. I have a recently downloaded svn version of gdal, gdal 1.5.2 and

Re: [gdal-dev] ogr2ogr C#

2009-03-27 Thread Tamas Szekeres
Hi, You'll have to re-implement the logic in ogr2ogr.cpp by using the ogr_csharp.dll. Refer to the following thread for more information: http://thread.gmane.org/gmane.comp.gis.gdal.devel/11789 Best regards, Tamas 2009/3/27 Sune Dogan, LIFA A/S s...@lifa.dk Hi Im developing a .NET C#

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

2009-03-27 Thread Benoît Andrieu
Hi, If you want to use GDAL in C / C++, take a look at the tutorial at http://www.gdal.org/gdal_tutorial.html. It is really straightforward, I used this for the integration of GDAL in our modules and it worked fine. Regards, Benoît Andrieu b...@ixsea.com benoit.andr...@gmail.com -

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

2009-03-27 Thread Ajmeri Iqbal
Hi Benoît Andrieu,Thanks for reply.i already saw that tutorial,but the problame is how to and which library to be linked using QT(most probably same way of C/C++).coz there is a three library named gdal16.dll, gdal_i.lib and gdal.lib.On Fri, 27 Mar 2009 11:33:42 +0100 Benoît Andrieu

RE: [gdal-dev] ogr2ogr C#

2009-03-27 Thread Randy George
Or do something ugly like use a .asmx to call your ogr2ogr cmdline as a Process: using System; using System.Web.Services; using System.Text; using System.IO; using System.Diagnostics; using System.Threading; using System.Security.Permissions; [WebService(Namespace =

[gdal-dev] suitable test viewer for new driver

2009-03-27 Thread Norman Barker
Hi, I have written a gdal driver and would like to hook this into an existing viewer (public domain) to demonstrate the code. The driver makes a fair few changes to the GDAL API so it isn't as simple as just adding to the format list. Would I be better to use openev or openev2, or perhaps

Re: [gdal-dev] python-gdal ComputStatistics return just two values

2009-03-27 Thread Even Rouault
Hi Ivan, I don't think there's a bug. The C API for ComputeBandStats is : CPLErr CPL_DLL CPL_STDCALL GDALComputeBandStats( GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress,

Re: [gdal-dev] ogr2ogr C#

2009-03-27 Thread Even Rouault
Note I've ported ogr2ogr to the Java bindings, so I guess it should be relatively easy to port it to C# as both languages are pretty close. Porting it from C++ to Java was rather straighforward (but very boring!). Replace NULL by null, TRUE by true, FALSE by false, - by ., printf by

Re: [gdal-dev] python-gdal ComputStatistics return just two values

2009-03-27 Thread Lucena, Ivan
Even, I see. You are right. With the absence of ComputeRasterStatistics() I got confused and I made the wrong assumption. BTW, why there is no wrapper for ComputeRasterStatistics()? That would work then: bd1.SetStatistics(bd2.ComputeRasterStatistics()) Not a big deal. The work around is

[gdal-dev] Is it a big thing to change ECW to support 16-bit imagery?

2009-03-27 Thread mohwawang
Hi all, When I used gdal_translate to convert a 16-bit QuickBird image to a ECW JPEG2000 compressed NITF image I got a Warning: ECW only supports Byte pixel data type, ignoring request for UInt16. Is it a big job (for example, change the algorithm of compression in ECW) or not so big a job

Re: [gdal-dev] python-gdal ComputStatistics return just two values

2009-03-27 Thread Lucena, Ivan
Actually... GetStatistics dows the same as ComputeRasterStatistcs() That is confusing... ---Original Message--- From: Lucena, Ivan ivan.luc...@pmldnet.com Subject: Re: [gdal-dev] python-gdal ComputStatistics return just two values Sent: Mar 27 '09 19:05 Even, I see.

Re: [gdal-dev] python-gdal ComputStatistics return just two values

2009-03-27 Thread Even Rouault
Le Friday 27 March 2009 20:05:11 Lucena, Ivan, vous avez écrit : Even, I see. You are right. With the absence of ComputeRasterStatistics() I got confused and I made the wrong assumption. BTW, why there is no wrapper for ComputeRasterStatistics()? That would work then:

Re: [gdal-dev] python-gdal ComputStatistics return just two values

2009-03-27 Thread Ivan Lucena
D'accord. Even Rouault wrote: Le Friday 27 March 2009 20:05:11 Lucena, Ivan, vous avez écrit : Even, I see. You are right. With the absence of ComputeRasterStatistics() I got confused and I made the wrong assumption. BTW, why there is no wrapper for ComputeRasterStatistics()? That would

Re: [gdal-dev] Is it a big thing to change ECW to support 16-bit imagery?

2009-03-27 Thread Mateusz Loskot
mohwawang wrote: Is it a big job (for example, change the algorithm of compression in ECW) or not so big a job to have ECW also support 16-bit imagery? Wrong question. The correct one is: are you allowed to change anything in ECW to support anything what is not supported? Best regards, --

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

2009-03-27 Thread Mateusz Loskot
Ajmeri Iqbal wrote: Hi Benoît Andrieu, Thanks for reply. i already saw that tutorial, but the problame is how to and which library to be linked using QT(most probably same way of C/C++). coz there is a three library named gdal16.dll, gdal_i.lib and gdal.lib. Sometimes it's a good idea to

Re: [gdal-dev] Is it a big thing to change ECW to support 16-bit imagery?

2009-03-27 Thread Ivan Lucena
Mo, See, GDAL does not implement the code that actually reads the ECW format. The GDAL ECW driver just make calls to a external library. That library is provided by the company that holds the copyright for that format [1]. So you would need to ask and negotiate with then first. But I