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 believe

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

2009-03-27 Thread mohwawang
Mateusz, License issue can be resolved through negotiation. Then back to the technique issue: Is it a big thing to change ECW to support 16-bit imagery? Mo --- On Fri, 3/27/09, Mateusz Loskot wrote: > From: Mateusz Loskot > Subject: Re: [gdal-dev] Is it a big thing to change ECW to suppor

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

2009-03-27 Thread Mateusz Loskot
mohwawang wrote: > Mateuse, > > So what's the answer to the "correct" question? Read the license. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ gdal-dev mailing list gdal-dev@lists.osgeo.org h

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

2009-03-27 Thread mohwawang
Mateuse, So what's the answer to the "correct" question? Mo --- On Fri, 3/27/09, Mateusz Loskot wrote: > From: Mateusz Loskot > Subject: Re: [gdal-dev] Is it a big thing to change ECW to support 16-bit > imagery? > To: "mohwawang" > Cc: gdal-dev@lists.osgeo.org > Date: Friday, March 27, 20

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

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, -- Ma

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 wor

[Gdal-dev] SWIG bindings in Linux

2009-03-27 Thread turtlewax
In the past I've opened threads on GDAL/Mono. This may have been too specific, so I'd like to rephrase the topic to include GDAL SWIG bindings for any language in Linux. Just looking for feedback. Has anyone succeeded in getting the bindings to work in Linux? I realize the buildbots generate

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: > >>> bd1.SetStat

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 > Subject: Re: [gdal-dev] python-gdal ComputStatistics return just two values > Sent: Mar 27 '09 19:05 > > Even, > > I see. You are right. Wit

[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 t

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 e

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 System.out.

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,

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

2009-03-27 Thread Lucena, Ivan
Hi there, I believe that ComputeBandStats() should return 4 values min, max, mean and stddev) [1] but the Python API is returning just mean and stddev. python: >>> bd.ComputeBandStats() (9.0071713001936118, 11.350094331448236) >>> bd.ComputeRasterMinMax() (-1.789618530273, 31.146185302

[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] 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 = "http://www.myserv

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 wroteHi, If

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 - Origi

Re: [gdal-dev] ogr 1.6 and ArcSDE 9.3sp1: not reading varchar2 fields

2009-03-27 Thread Michael Smith
Duarte, Why not create a view that has the TRANSLATE and TO_CHAR and then use that in OGR. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 3/27/09 5:44 AM, "Duarte Carreira" wrote: > I'm correcting the subject of the message - the problem is with NVARCHAR

[gdal-dev] How to use GDAL Library

2009-03-27 Thread Ajmeri Iqbal
Dear all,I want to use GDAL library in my project using QT.How could i use this library for Reading and writing the Raster images (i.e. JPEG,JPEG200,TIFF,GeoTiff,BMP,PNG,GIF, etc)please help me.Thanks in advance___ gdal-dev mailing list gdal-dev@lists.o

RE: [gdal-dev] ogr 1.6 and ArcSDE 9.3sp1: not reading varchar2 fields

2009-03-27 Thread Duarte Carreira
I'm correcting the subject of the message - the problem is with NVARCHAR fields (not varchar2). It seems this relates to utf issues/limitations in ogr. If I could use SQL functions this could be solved by the database itself. Like using TO_CHAR(field_name) or TRANSLATE(field_name USING CS_CHAR).

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 > Hi > > Im developing a .NET C# project an

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 g

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 1.4.4

[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

[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] 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 t

[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 finally