Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Etienne Tourigny
It would be nice to be able to specify many extensions in a comma-separated list such as nc,cdf,nc4. It can probably be done (metadata is just a string), but isn't standard. The Gdal driver tutorial states: GDAL_DMD_EXTENSION: The extension used for files of this type. If more than one pick the

Re: [gdal-dev] Converting ecw to tif for Geoserver

2013-02-10 Thread Etienne Tourigny
On Sat, Feb 9, 2013 at 12:11 PM, Paul Meems bontepaar...@gmail.com wrote: Thanks Even, The low-res option really helped. Now I can test the commands in seconds instead of hours. I did these commands which seem to produce a tif file with overviews and correct transparency. I've opened it in

Re: [gdal-dev] onestep vs twostep reproject and change format

2013-01-29 Thread Etienne Tourigny
See http://trac.osgeo.org/gdal/ticket/4484 On Tue, Jan 29, 2013 at 6:19 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon Terry Rankine terry.rank...@csiro.au: Hi Guys I have an ERS (ermapper) dataset I want to reproject into wsg84 and then change the file format to netcdf4. I am

Re: [gdal-dev] Can't create a ticket in Trac

2013-01-24 Thread Etienne Tourigny
Sometimes it's good to try with another browser (e.g. Chrome) when this kind of issues come up. cheers On Thu, Jan 24, 2013 at 4:01 PM, Jean-Claude Repetto jrepe...@free.fr wrote: On 24/01/2013 12:39, Jean-Claude Repetto wrote: Hello, I just tried to create a ticket, as I do usually. I

Re: [gdal-dev] gridding binary data

2013-01-23 Thread Etienne Tourigny
gdal_grid takes a vector file (e.g. shapefile) as input, it cannot take a raster (gtiff) as input please read the documentation before asking other questions http://www.gdal.org/gdal_grid.html Etienne On Wed, Jan 23, 2013 at 2:57 PM, David Hoese dho...@gmail.com wrote: Hi Norman, Yes this

[gdal-dev] how to test for version number in python with gdal 1.10 ?

2013-01-16 Thread Etienne Tourigny
Hi, Detection of gdal version in python using the following method fails when using gdal-1.10 . print gdal.VersionInfo(RELEASE_NAME) 1.10dev print( gdal.VersionInfo(RELEASE_NAME) = 1.7 ) False print( gdal.VersionInfo(RELEASE_NAME) = 1.10 ) True What is the recommended way to test for

Re: [gdal-dev] how to test for version number in python with gdal 1.10 ?

2013-01-16 Thread Etienne Tourigny
ok merci. It might be good to write this somewhere? Not sure where though, perhaps the gdal/ogr wiki page? Etienne On Wed, Jan 16, 2013 at 1:40 PM, Even Rouault even.roua...@mines-paris.org wrote: The following seems to work using VERSION_NUM: in 1.10dev: gdal.VersionInfo(VERSION_NUM)

Re: [gdal-dev] how to test for version number in python with gdal 1.10 ?

2013-01-16 Thread Etienne Tourigny
On Wed, Jan 16, 2013 at 2:12 PM, Mateusz Loskot mate...@loskot.net wrote: On 16 January 2013 16:07, Etienne Tourigny etourigny@gmail.com wrote: It might be good to write this somewhere? Not sure where though, perhaps the gdal/ogr wiki page? It's documented in the comments

Re: [gdal-dev] which formats support subdatasets?

2013-01-13 Thread Etienne Tourigny
Hi, Just a heads up that I pushed this to dev branch, and updated docs (gdal_utilities and gdal_datamodel) as well as output of --formats and --format commandline switches. Cheers, Etienne On Sat, Jan 12, 2013 at 11:09 AM, Etienne Tourigny etourigny@gmail.com wrote: Hi Ivan it seems

Re: [gdal-dev] which formats support subdatasets?

2013-01-12 Thread Etienne Tourigny
, Ivan ---Original Message--- From: Etienne Tourigny To: Even Rouault Cc: gdal-dev Subject: Re: [gdal-dev] which formats support subdatasets? Sent: Jan 11 '13 08:23 On Fri, Jan 11, 2013 at 11:03 AM, Even Rouault [LINK: compose.php?to=even.roua...@mines-paris.org

Re: [gdal-dev] which formats support subdatasets?

2013-01-11 Thread Etienne Tourigny
: Short Name: HDF4 Long Name: Hierarchical Data Format Release 4 Extension: hdf Help Topic: frmt_hdf4.html Supports: Subdatasets Regards, Etienne On Tue, Nov 20, 2012 at 10:43 AM, Etienne Tourigny etourigny@gmail.com wrote: Hi I'd like to be able to identify which raster and vector

Re: [gdal-dev] which formats support subdatasets?

2013-01-11 Thread Etienne Tourigny
On Fri, Jan 11, 2013 at 11:03 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon Etienne Tourigny etourigny@gmail.com: Hi, I'd just like to point out a patch I have submitted to report which raster drivers support subdatasets, using the DMD_SUBDATASETS metadata item. I have

Re: [gdal-dev] using gdal from c#

2012-12-19 Thread Etienne Tourigny
Speaking of which - wouldn't it be time to retire the links to fwtools from the wiki download page? Or perhaps move it to a separate page with a link to it? Seems to me there are quite a few issues, and people are frequently suggested not to use fwtools any more, since it's quite old. Etienne

Re: [gdal-dev] gdalwarp produces all black output

2012-11-29 Thread Etienne Tourigny
On Thu, Nov 29, 2012 at 2:02 AM, mortac8 ashley_c_m...@raytheon.com wrote: Newbie question here. I am trying to convert a DTED1 image to GeoTiff. The below command gives me a mosaic.tif image that is totally black. gdalwarp -ot Int16 n29.dt1 mosaic.tif Here is a link to my source image:

Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Etienne Tourigny
On Thu, Nov 29, 2012 at 3:54 PM, Chaitanya kumar CH chaitanya...@gmail.com wrote: Joe, What was the full warning message about the normalized/laundered field name? Field name is modified when the name is longer than 10 characters or when a field with same name exists. Check the name of the

Re: [gdal-dev] CRS not defined with BMP

2012-11-28 Thread Etienne Tourigny
As far as I know, bmp files (like jpeg and gif and probably others) only support ESRI World files. This is not a true CRS definition though, it only indicated the geotransform. Even though it is not standard, it would be convenient to update these drivers to read an associated .prj file

Re: [gdal-dev] gdalwarp question - probably pretty simple

2012-11-23 Thread Etienne Tourigny
I think only one alpha band is supported? On Fri, Nov 23, 2012 at 2:08 PM, David Strip g...@stripfamily.net wrote: On 11/22/2012 10:40 PM, David Strip wrote: I've got a geotiff which gdalinfo reports as 2 bands, with band 2 interpreted as alpha. The projection is Maryland State Plane. The

[gdal-dev] which formats support subdatasets?

2012-11-20 Thread Etienne Tourigny
Hi I'd like to be able to identify which raster and vector formats support subdatasets (or multipl layers). A quick grep search (grep SUBDATASETS frmts/*/*.cpp) showed which GDAL drivers can report subdatasets. Am I missing something? I think it would be nice to include this info in the driver

[gdal-dev] building overviews and ignoring NODATA?

2012-11-20 Thread Etienne Tourigny
Hi all, I just noticed that GDALBuildOverViews disregards all nodata pixels. While this is useful in many cases, sometimes it can be desired to NOT overlook nodata pixels. For example, I have a raster of sparse data (many nodata pixels), that I am using gdaladdo to make down-sampled versions.

Re: [gdal-dev] building overviews and ignoring NODATA?

2012-11-20 Thread Etienne Tourigny
, Etienne Tourigny a écrit : Hi all, I just noticed that GDALBuildOverViews disregards all nodata pixels. While this is useful in many cases, sometimes it can be desired to NOT overlook nodata pixels. For example, I have a raster of sparse data (many nodata pixels), that I am using gdaladdo

Re: [gdal-dev] Speed up gdaltranslate for really big tiffs

2012-11-16 Thread Etienne Tourigny
You know you can have a single file with many overview levels, right? Why so many files? On Fri, Nov 16, 2012 at 7:56 PM, Billy Newman newman...@gmail.com wrote: In general I having problems generating big tiffs in a timely manner. I also have the following scenario in which I am trying to

Re: [gdal-dev] Motion: Release next major GDAL version as GDAL/OGR 1.10

2012-11-12 Thread Etienne Tourigny
+1 for 1.10 Etienne On Mon, Nov 12, 2012 at 6:26 PM, Howard Butler hobu@gmail.com wrote: +0 Howard I don't like that we're changing the version macro and changing our versioning pattern 10+ years down the road. Assumptions about GDAL_VERSION_NUM are likely baked in many places, and

Re: [gdal-dev] Which version number for the next GDAL release : 1.10 or 2.0 ?

2012-11-08 Thread Etienne Tourigny
Hi, I think it should be 1.10, I don't see any major difference with 1.9 and no major api changes. I see it more like an incremental release than a major milestone. I recall some time ago a discussion about the unification of ogr and gdal, and that goal still seems pretty far (unless I missed

Re: [gdal-dev] Is there any way of accesing the GDAL utilities from C#?

2012-11-06 Thread Etienne Tourigny
Hi for now you can use them as command-line apps only, although Even did mention he wanted to make them available as (python) bindings - this might make it in 2.0 cheers Etienne On Wed, Nov 7, 2012 at 2:45 AM, Dev3 devda...@tengshe.in wrote: Hi All! I am trying to do some data processing in

Re: [gdal-dev] OGR-VFK in 1.9

2012-11-05 Thread Etienne Tourigny
in any case, the vfk driver would be optional (or at least could be disabled), so should not create any problems for people that do not compile it, right? Etienne On Mon, Nov 5, 2012 at 7:49 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon Martin Landa landa.mar...@gmail.com: Hi,

Re: [gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Etienne Tourigny
I guess you are using gdalwarp (although you didn't specifically mention it). You should be using gdal_translate with the -srcwin option Etienne On Mon, Oct 29, 2012 at 6:47 AM, Luis Lisboa luislisboa1...@gmail.com wrote: Greetings I have a raster image and I want to crop a piece of it(usin

Re: [gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Etienne Tourigny
, Etienne Tourigny etourigny@gmail.com wrote: I guess you are using gdalwarp (although you didn't specifically mention it). You should be using gdal_translate with the -srcwin option Etienne On Mon, Oct 29, 2012 at 6:47 AM, Luis Lisboa luislisboa1...@gmail.com wrote: Greetings

Re: [gdal-dev] Removing Nodata pixels from raster

2012-10-26 Thread Etienne Tourigny
you can surely identify the valid pixels with visualization software such as qgis, using the valuetool plugin, to identify the 4 corners of the valid region. Another option is to compress the gtiff with e.g. DEFLATE compression like this gdal_translate -co COMPRESS=DEFLATE in.tif out.tif

Re: [gdal-dev] [update] Re: Travis CI continuous integration service for GDAL

2012-10-14 Thread Etienne Tourigny
Hi On Sun, Oct 14, 2012 at 7:49 AM, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Even, Il 14/10/2012 11:54, Even Rouault ha scritto: Hi Antonio, I suppose that at this point you already used git remote add NAME URL git fetch NAME In the context I described, would be NAME

Re: [gdal-dev] [update] Re: Travis CI continuous integration service for GDAL

2012-10-11 Thread Etienne Tourigny
Hi On Wed, Oct 10, 2012 at 5:55 PM, Even Rouault even.roua...@mines-paris.org wrote: Le mercredi 10 octobre 2012 21:49:49, Etienne Tourigny a écrit : Hi Even, the main advantage of github is that you can manage patches/pull requests more easily, and it's easy for someone to setup a fork

Re: [gdal-dev] [ OGR SQL: Excecuting select where column name starts with _ SO: Windows 7, GDAL/OGR 1.9.x

2012-10-11 Thread Etienne Tourigny
try enclosing the column with single or double quotes? On Tue, Oct 9, 2012 at 5:35 PM, Gabriel Fusca gabrielfu...@suremptec.com.ar wrote: Hi, I´m getting a sql parsing error when I tried to execute a query to a shapefile where column name starts with _. When i execute a query like :

Re: [gdal-dev] [update] Re: Travis CI continuous integration service for GDAL

2012-10-10 Thread Etienne Tourigny
IMHO git (with github) is a great platform for collaboration. You might find yourself swamped with pull requests though... cheers Etienne On Wed, Oct 10, 2012 at 5:34 AM, Angelos Tzotsos gcpp.kal...@gmail.com wrote: On 10/10/2012 02:16 AM, Even Rouault wrote: Le dimanche 07 octobre 2012

Re: [gdal-dev] [update] Re: Travis CI continuous integration service for GDAL

2012-10-10 Thread Etienne Tourigny
, and then more patches after review etc Which works fine, but a bit clumsy compared to github forks and pull requests. On Wed, Oct 10, 2012 at 4:24 PM, Even Rouault even.roua...@mines-paris.org wrote: Le mercredi 10 octobre 2012 15:48:48, Etienne Tourigny a écrit : IMHO git (with github

Re: [gdal-dev] [update] Re: Travis CI continuous integration service for GDAL

2012-10-10 Thread Etienne Tourigny
On Wed, Oct 10, 2012 at 4:52 PM, Mateusz Loskot mate...@loskot.net wrote: On 10 October 2012 20:49, Etienne Tourigny etourigny@gmail.com wrote: Hi Even, the main advantage of github is that (...) Guys, you're discuss apples (Even on Git) and oranges (Etienne on GitHub). sort of - I'm

Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons

2012-10-08 Thread Etienne Tourigny
generally speaking new features do not go into current stable version (1.9), they will be incorporated into next stable version (probably 2.0). Etienne On Mon, Oct 8, 2012 at 9:57 AM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 03:21 PM, maning sambale wrote: Thanks! Is this

Re: [gdal-dev] update to overview resampling methods?

2012-10-05 Thread Etienne Tourigny
also any objection I change the parameters to upper case in gdaladdo docs, to be in line with the names in the code? Etienne On Fri, Oct 5, 2012 at 4:18 PM, Etienne Tourigny etourigny@gmail.com wrote: Hi Even, thanks for you time On Fri, Oct 5, 2012 at 1:36 PM, Even Rouault even.roua

Re: [gdal-dev] OGR SQL: Excecuting select where column name contains .

2012-10-04 Thread Etienne Tourigny
Hi, You haven't said which platform and binding/command line you are using. In linux command line you would probably replace . with \. Also column name should probably enclosed in quotes, not brackets. Etienne On Thu, Oct 4, 2012 at 8:29 AM, Odd Ragnar Lydersen odd-ragnar.lyder...@powel.no

Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver

2012-09-27 Thread Etienne Tourigny
Jukka, nice that you noticed this new feature I added - was about to advertise it here! The goal of adding this feature was not to make it available in mapserver, but for using in desktop applications as a reference for multiple files with different projections (e.g. landsat archives). cheers

Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver

2012-09-27 Thread Etienne Tourigny
the associated raster layer? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: Etienne Tourigny [mailto:etourigny@gmail.com] Lähetetty: 27. syyskuuta 2012 15:27 Vastaanottaja: Rahkonen Jukka Kopio: gdal-dev@lists.osgeo.org Aihe: Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver

Re: [gdal-dev] gdal_polygonize.py

2012-09-23 Thread Etienne Tourigny
Also, can you run any of the executables like gdalinfo? On Sun, Sep 23, 2012 at 3:02 PM, Even Rouault even.roua...@mines-paris.org wrote: Le dimanche 23 septembre 2012 19:57:50, Jeff Lake a écrit : am I missing something here?? installed gdal 1.9.1 from source configure vars .. ./configure

Re: [gdal-dev] gdal_polygonize.py

2012-09-23 Thread Etienne Tourigny
, Jeff Lake ad...@michiganwxsystem.com wrote: Yes I can .. but have a feeling its running 1.8.0 I installed earlier from RPM is there going to be a 1.9.1 RPM for el5 ?? -Jeff Lake MichiganWxSystem.com AllisonHouse.com TheWeatherCenter.net GRLevelXStuff.com On 9/23/2012 15:59, Etienne

Re: [gdal-dev] gdalwarp with packbits compression: output too large

2012-09-13 Thread Etienne Tourigny
To save size and disk i/o you can also use a vrt intermediate file gdalwarp -of vrt -r bilinear infile ofile.vrt gdal_translate -co COMPRESS=PACKBITS ofile.vrt ofile.tif rm ofile.vrt On Thu, Sep 13, 2012 at 12:57 PM, Eli Adam ea...@co.lincoln.or.us wrote: Rutger, There are some notes on this

Re: [gdal-dev] Compilation of gdal for reading hdf4 with python

2012-08-31 Thread Etienne Tourigny
Have you tried the gdal docs on this topic? http://trac.osgeo.org/gdal/wiki/HDF http://www.gdal.org/frmt_hdf4.html Etienne On Fri, Aug 31, 2012 at 8:59 AM, David1980 dleimb...@zebris.com wrote: The link doesnt work anymore, if you happen to read this: Do you know where this texts are now ?

Re: [gdal-dev] Compiling GDAL with HDF5 Support

2012-08-30 Thread Etienne Tourigny
are you using the gdalinfo that you installed? You can find this out with which gdalinfo to make sure that hdf5 support was builtin, try gdalinfo --formats also when you did configure, did it give you any errors about hdf5? and try gdalinfo --debug on file.hdf Etienne On Thu, Aug 30, 2012 at

Re: [gdal-dev] can't handle grib file

2012-08-24 Thread Etienne Tourigny
On Fri, Aug 24, 2012 at 7:27 PM, Giuseppe Amatulli giuseppe.amatu...@gmail.com wrote: Ciao Years ago to handling easily grib file i was using CDO http://www.nersc.gov/users/software/vis-analytics/climate-data-operators-cdo/ . it can also convert grib to geoTiff. I doubt cdo can convert

Re: [gdal-dev] write JPEG2000 with codek KAKADU without .tif

2012-08-16 Thread Etienne Tourigny
On Thu, Aug 16, 2012 at 8:53 AM, Evgeniy Borovenskiy eborovens...@scanex.ru wrote: No, at the moment I use the variant in which the file '.tif' with the use of the driver GTiffDataset is created. And then through CreateCopy() JPEG2000 is created. I'd like to create a JPEG2000 file straigh

Re: [gdal-dev] Units of dimension variable in NetCDF is 'km'

2012-08-07 Thread Etienne Tourigny
Hi, km units are supposed to work... Here is the code where km units are detected, which set the WKT units to 1000m. /* add units to PROJCS */ if ( pszUnits != NULL ! EQUAL(pszUnits,) ) { if ( EQUAL(pszUnits,m) ) {

Re: [gdal-dev] Units of dimension variable in NetCDF is 'km'

2012-08-07 Thread Etienne Tourigny
seem to remember something like this in a ticket I filed. I thought it was fixed in 1.9.1. kss On Tue, Aug 7, 2012 at 5:38 AM, Etienne Tourigny etourigny@gmail.com wrote: Hi, km units are supposed to work... Here is the code where km units are detected, which set the WKT units

Re: [gdal-dev] gdalsrsinfo ERROR - failed to load SRS definition

2012-07-30 Thread Etienne Tourigny
There might be an other tool that can translate WKT or PROJ.4 strings to/from GML CRS definition? Etienne On Mon, Jul 30, 2012 at 12:28 PM, Even Rouault even.roua...@mines-paris.org wrote: Selon Piero Campalani piero.ca...@gmail.com: Thanks Even, I suspected this, GML is still not that

Re: [gdal-dev] how to create NETCDF with several 3D variables?

2012-07-23 Thread Etienne Tourigny
Hi glad you like the driver. Interesting that you were able to create a 3d file like that! I had thought of it but never tested. Those NETCDF_DIM_* metadata I added to be able to deal with 3d variables in a clean manner. I'm afraid you cannot combine several variables (or subdatasets as gdal

Re: [gdal-dev] New OGR driver: Imageset

2012-07-23 Thread Etienne Tourigny
It might be worth enhancing gdaltindex, using gdal's native exif file reading. Etienne On Mon, Jul 23, 2012 at 12:38 PM, Nicolas Simon nicolas.si...@spw.wallonie.be wrote: Hi For me it looks like a variant of gdaltindex with input made from specials fields (EXIF data).

Re: [gdal-dev] how to create NETCDF with several 3D variables?

2012-07-23 Thread Etienne Tourigny
Chris is right - the netcdf driver in gdal was designed to read netcdf data and create netcdf files from other formats, not write complex files. Anything else is a hack - better to use other tools if you want to combine bands, variables, etc. Etienne On Mon, Jul 23, 2012 at 2:07 PM, Chris

Re: [gdal-dev] Convert to temperature in degrees C in MODIS Ocean Color?

2012-07-19 Thread Etienne Tourigny
You can try gdal_calc.py, although that requires python support svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal_calc.py On Thu, Jul 19, 2012 at 12:46 AM, sigologo dlopeza...@gmail.com wrote: Hello Everyone I'm trying import A20030012003008.L3m_8D_NSST_4, with gdal with this script:

Re: [gdal-dev] Convert to temperature in degrees C in MODIS Ocean Color?

2012-07-19 Thread Etienne Tourigny
I mean it requires the gdal python bindings and python installed. You don't need python skills - it's a command-line program. Although you may need to understand the numpy syntax if you have a complex formula. In your case it would be something like gdal_calc.py -A input1.tif

Re: [gdal-dev] How to compile gdal 1.9.1 from GDAL'S SVN ?

2012-07-17 Thread Etienne Tourigny
Looking at the osgeo4w current package page[1], it looks like gdal 1.9.1-RC2-2 is available, which I think is identical to gdal-1.9.1 Did you try qgis with the osgeo4w installer or the standalone installer? [1] http://download.osgeo.org/osgeo4w/versions.html Etienne On Tue, Jul 17, 2012 at

Re: [gdal-dev] Temporal statistics

2012-07-13 Thread Etienne Tourigny
Provided you can convert the format to netcdf, you could use a tool like cdo which does exactly what you want CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data. https://code.zmaw.de/projects/cdo/ gdal supports netcdf output, you might have to do

Re: [gdal-dev] Tiling aerial photos

2012-07-12 Thread Etienne Tourigny
You should generate the stats for every file, as you will probably get incorrect results with your method for f in *.tif; do gdalinfo -stats $f ; done On Thu, Jul 12, 2012 at 9:03 AM, Duarte Carreira dcarre...@edia.pt wrote: Hi Paul. I had to build a big vrt. The one trick that got it

Re: [gdal-dev] [newbie] regridding netCDF

2012-07-09 Thread Etienne Tourigny
Tom, gdaltransform is for transforming individual points, not entire datasets What you want to achieve can be done with the gdalwarp command-line tool [1] . See [2] and [3] for more information regarding netcdf support in gdal. You will need gdal version 1.9 to work properly with netcdf files

Re: [gdal-dev] Read image from zip with python and GDAL

2012-07-03 Thread Etienne Tourigny
you have to use /vsitar and not /vsigzip - because it is a tar file On Tue, Jul 3, 2012 at 2:00 PM, Anton Korosov anton.koro...@nersc.no wrote: Dear Even, thank you very much for the info. I'm imressed by the gdal once again! Though I have a problem with LANDSAT tar.gz: fram:rawtar -tf

Re: [gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Etienne Tourigny
As referenced in SetFromUserInput [1] you can force a morphFromESRI by prefixing a WKT definition (file or WKT string) with ESRI:: I'm pretty sure that gdalwarp uses SetFromUserInput to get the SRS definition. [1]

Re: [gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Etienne Tourigny
automatically On Fri, Jun 29, 2012 at 11:03 AM, Matthieu Rigal ri...@rapideye.net wrote: Brilliant ! I am sorry, I had never seen that possibility. But it works perfectly. Thanks again Etienne, Matthieu On Fri, Jun 29, 2012 at 3:30 PM, Etienne Tourigny etourigny@gmail.com wrote

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-25 Thread Etienne Tourigny
For informatioon: the problem was that Paolo was using custom netcdf libraries and did not add the proper option to configure --with-netcdf=/usr/local Etienne On Wed, Jun 20, 2012 at 5:47 AM, Paolo Corti pco...@gmail.com wrote: On Tue, Jun 19, 2012 at 7:48 PM, Etienne Tourigny etourigny

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-25 Thread Etienne Tourigny
:25 PM, Paolo Corti wrote: On Mon, Jun 25, 2012 at 4:41 PM, Etienne Tourigny etourigny@gmail.com wrote: For informatioon: the problem was that Paolo was using custom netcdf libraries and did not add the proper option to configure --with-netcdf=/usr/local Thanks again to Etienne

Re: [gdal-dev] zonal statistics with gdal

2012-06-20 Thread Etienne Tourigny
Distributing software via dropbox is a rather unusual practice, you might consider hosting it elsewhere... Etienne On Wed, Jun 20, 2012 at 6:53 AM, chenliang wang hi181904...@msn.com wrote: Hi, Anssi Cool ! Open Foris Geospatial Toolkit is a great geospatial library . Unfortunately, I can't

Re: [gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?

2012-06-20 Thread Etienne Tourigny
You could combine them as a multi-band gtiff file for example On Wed, Jun 20, 2012 at 9:50 AM, dcd dennis.d...@glel.carleton.ca wrote: Le mardi 19 juin 2012 23:55:49, dcd a écrit : Hi, Is it possible to spatially subset an HDF4Image that contains multiple subdatasets using gdal_translate

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-19 Thread Etienne Tourigny
On Tue, Jun 19, 2012 at 2:25 PM, Paolo Corti pco...@gmail.com wrote: Hi Etienne I would guess your netcdf and gdal installation do not have netcdf-4 support. And probably a 'gdalinfo file' shows the hdf5 driver picks it up, right? That was! I was missing out the --enable-netcdf-4 option:

[gdal-dev] how to programatically clear PAM information such as stats and histogram

2012-06-18 Thread Etienne Tourigny
Hi devs, I would like to know if there is a way with existing C api to clear PAM information related to statistics and histogram. Currently, if a raster file is modified outside of gdal, the .aux.xml file may be invalid. The approaches I can see are 1) Removing the .aux.xml file - but it may

Re: [gdal-dev] Reading NetCDF using VB.NET

2012-06-16 Thread Etienne Tourigny
Read my last email more attentively, you will see links the SDK built by Tamas Szekeres, which supposedly work with csharp On Sat, Jun 16, 2012 at 4:03 PM, Siebe Bosch si...@hydroconsult.nl wrote: Thanks Etienne, You're probably right that I will need the latest GDAL in stead of the one in

Re: [gdal-dev] Reading NetCDF using VB.NET

2012-06-16 Thread Etienne Tourigny
:\GDALVS\release-1600\bin\gdal\csharp\gdal_csharp.dll Is this the correct one? I can add it to VS2008, however VS warns me that the system cannot find the reference specified. On 14-06-12 20:51, Etienne Tourigny wrote: If you read the GDAL download page [1] you will find this: The latest

Re: [gdal-dev] Reading NetCDF using VB.NET

2012-06-16 Thread Etienne Tourigny
, however VS warns me that the system cannot find the reference specified. On 14-06-12 20:51, Etienne Tourigny wrote: If you read the GDAL download page [1] you will find this: The latest FWtools version for Windows, 2.4.7, dates back to a pre-1.6 GDAL version. In order to benefit from

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-15 Thread Etienne Tourigny
That file does not use the bigfile flag, but it is probably a netcdf-4 file (with hdf5 storage). Regardless, bigfiles are supported since gdal-1.9.0 on 32-bit platforms. I would guess your netcdf and gdal installation do not have netcdf-4 support. And probably a 'gdalinfo file' shows the hdf5

Re: [gdal-dev] GDAL GeoTiff tegs problem

2012-06-15 Thread Etienne Tourigny
To make sure it's recognized as WGS84 datum/spheroid you should use SetWellKnownGeogCS(WGS84) instead of SetGeogCS(...), and no need for convertToRadians Also, the arguments to SetGeogCS() are probably optional in your case This might solve this problem and the other one you sent in another

[gdal-dev] netcdf driver does not support VSIFILE

2012-06-15 Thread Etienne Tourigny
All VSIFILE interfaces (/vsicurl/ , /vsigzip/ , etc.) do not work with the netcdf driver. As the netcdf driver uses libnetcdf, I'm not sure the driver can be modified to use the large file API. Can someone comment on this? The GTiff driver support VSI, how is this done given that the driver

Re: [gdal-dev] netcdf driver does not support VSIFILE

2012-06-15 Thread Etienne Tourigny
On Fri, Jun 15, 2012 at 12:44 PM, Even Rouault even.roua...@mines-paris.org wrote: Selon Etienne Tourigny etourigny@gmail.com: All VSIFILE interfaces (/vsicurl/ , /vsigzip/ , etc.) do not work with the netcdf driver. As the netcdf driver uses libnetcdf, I'm not sure the driver can

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-14 Thread Etienne Tourigny
On Thu, Jun 14, 2012 at 4:15 AM, Rutger kass...@gmail.com wrote: Hey David, David Hoese wrote On 6/13/12 10:00 AM, gdal-dev-request@.osgeo wrote I'm not sure at the moment, it's VIIRS data.  I'm playing around with different existing remapping tools, I have one that works called

Re: [gdal-dev] Reading NetCDF using VB.NET

2012-06-14 Thread Etienne Tourigny
If you read the GDAL download page [1] you will find this: The latest FWtools version for Windows, 2.4.7, dates back to a pre-1.6 GDAL version. In order to benefit from the latest and greatest, you can refer to the other binary builds mentionned above. If you want to support netcdf files, you

Re: [gdal-dev] GDAL spatial reference issue

2012-06-13 Thread Etienne Tourigny
A few ESRI ids correspond to ESRI authid codes - but not all so it's not fool-proof... Assuming the esri code DOES correspond to EPSG code, you would basically use OSRImportFromEPSG( latestWkid) In your example, thelatestWkid : 3857 corresponds to EPSG:3857 which is the WGS 84 /

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-12 Thread Etienne Tourigny
* Perhaps * there is a conflict/mismatch between osgeo4w and Tamas's install? As far as I know both packages include netcdf... I have no idea, sorry... Etienne On Tue, Jun 12, 2012 at 4:16 AM, Rutger kass...@gmail.com wrote: Hey, Etienne Tourigny-3 wrote did you install the gdal-python

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Etienne Tourigny
To use geolocation arrays with gdalwarp you probably need to add the -geoloc argument Etienne On Tue, Jun 12, 2012 at 6:08 AM, Rutger kass...@gmail.com wrote: Hello David, A while back i did some tests with GDAL geolocation arrays using MODIS swath data. I found that specifying the s_srs tag

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Etienne Tourigny
Not sure about the java bindings - but why don't you use the CreateCopy() function, which will take care of everything for you? I'd bet the error is because you didn't include the band_list parameter. Etienne On Tue, Jun 12, 2012 at 8:31 AM, Imran Rajjad raj...@gmail.com wrote: Dear List,

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-11 Thread Etienne Tourigny
On Mon, Jun 11, 2012 at 4:54 AM, Rutger kass...@gmail.com wrote: Hey Etienne, Thanks alot for the suggestions, here's are my results: I made a minimal install of osgeo4w and tried to run the earlier script, it results in the same error. I didnt notice anything different. I have tried it

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-11 Thread Etienne Tourigny
On Mon, Jun 11, 2012 at 11:27 AM, Rutger kass...@gmail.com wrote: Hey, I installed the latest OSGeo4W version (as mentioned in the quickstart at the website: http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe). During installation i unchecked every package except GDAL. The OSGeo4W shell

Re: [gdal-dev] [NEW] Multi-threaded warping

2012-06-10 Thread Etienne Tourigny
Even - good stuff! Can you comment on the usage of openmp for multi-threading? Is the multi-threading in gdal entirely based on pthreads (in linux)? It's my understanding that openmp is much easier to manage but offers less fine-grained control - is that required for multi-thread warping? Of

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Etienne Tourigny
.  In fact, I couldn't open any datasets. kss -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Etienne Tourigny Sent: Friday, June 08, 2012 9:10 AM To: Rutger Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Etienne Tourigny
On Fri, Jun 8, 2012 at 5:56 PM, Rutger kass...@gmail.com wrote: Hey, Thank you all for the replies, i really appreciate the help. @Anton, i have tried many different ways of refering to the file. Full path, file only, back and forward slashes, double slashes etc. All have the same result. I

Re: [gdal-dev] How to Import one Subdataset to Netcdf

2012-06-08 Thread Etienne Tourigny
Please consult the docs at http://www.gdal.org/frmt_netcdf.html You need to use one of the SUBDATASET_XX_NAME values for example gdal_translate NETCDF:fnl_19990801_00_00.nc:T_CDC_3_CCY_10 tmp1.tif On Fri, Jun 8, 2012 at 7:13 PM, sigologo dlopeza...@gmail.com wrote: Hello Everyone  I'm import

[gdal-dev] CreateCopy() from gtiff file does not initialize AREA_OR_POINT metadata

2012-05-31 Thread Etienne Tourigny
When using a driver's CreateCopy function to copy a source dataset in GTiff format, It seems that the AREA_OR_POINT metadata is not initialized. This is seemingly for performance reasons as shown in the code below. However, it has the unwanted side-effect that the AREA_OR_POINT metadata item

[gdal-dev] proj.4 +b parameter has different precision on i386 vs. amd64

2012-05-29 Thread Etienne Tourigny
Hi list, It seems that the +b parameter of Proj.4 strings generated by gdal can have different precisions, dependent on the architecture (i386 vs. ams64) for various linux flavors and gdal versions (1.6 - 1.9). The CRS from EPSG:4131 can have slightly different values: ( +b=6356075.413140239 vs.

Re: [gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Etienne Tourigny
Hi chao you should install gdal using the ubuntugis (stable or unstable) repository . 1.6.3 is really old, plus you shouldn't install the debian packages on ubuntu. see: https://launchpad.net/~ubuntugis http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries If you really have to build it see:

Re: [gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Etienne Tourigny
is still supported. best, Chao 2012/5/27 Etienne Tourigny etourigny@gmail.com Hi chao you should install gdal using the ubuntugis (stable or unstable) repository . 1.6.3 is really old, plus you shouldn't install the debian packages on ubuntu. see: https

Re: [gdal-dev] Help with GDAL and HDF4 MODIS data

2012-05-18 Thread Etienne Tourigny
I can confirm the bug on linux 64bit. Please file a bug report and attach a small dataset (1MB) or whith the link you sent in your second mail. I suspect that the gdal hdf4 driver does not handle something spedific in this hdf-eos dataset. On Fri, May 18, 2012 at 12:54 PM, Christopher Mutel

Re: [gdal-dev] Backport Ingres plugin

2012-05-14 Thread Etienne Tourigny
you probably have to modify configure and possibly some makefiles also. On Mon, May 14, 2012 at 2:14 PM, Tyler Mitchell tyler.mitch...@actian.com wrote: Hi all, just looking for a tip on backporting the OGR Ingres plugin from 1.9 to 1.8.  Anything in particular that comes to mind to watch for?

Re: [gdal-dev] gdal.AutoCreateWarpedVRT returning different results than osr.CoordinateTransformation

2012-05-06 Thread Etienne Tourigny
Billy, You might consider creating a warped image with a larger pixel size (a multiple of your real target size, say 3000m) to calculate the correct extents and then throwing it away. Etienne On Sat, May 5, 2012 at 6:22 PM, Billy Newman newman...@gmail.com wrote: Still very confused. I have

Re: [gdal-dev] Displaying vector files

2012-05-06 Thread Etienne Tourigny
You can also create a custom application based on QGis, if you do not want the entire QGis interface or if you want to customize the UI (or integrate it with your existing application). Etienne On Sun, May 6, 2012 at 5:17 AM, Jean-Claude Repetto jrepe...@free.fr wrote: On 05/06/12 09:40, akshay

Re: [Qgis-user] Re: [gdal-dev] Problems with gdal and hdf files

2012-05-02 Thread Etienne Tourigny
On Wed, May 2, 2012 at 9:43 AM, Agustin Lobo alobolis...@gmail.com wrote: You are right. I was confusing bands and subdatasets. The following does not work: $ gdal_translate -b 4  lndsr.L5169054_05420101216.hdf test.tif Input file contains subdatasets. Please, select one of them for reading.

Re: [gdal-dev] Problems with gdal and hdf files

2012-05-02 Thread Etienne Tourigny
On Wed, May 2, 2012 at 9:54 AM, Even Rouault even.roua...@mines-paris.org wrote: but there is no way to actually select 1 or more specific subdatasets It is possible to select one subdataset. You must use the name reported in the lines that contain SUBDATASET_XXX_NAME. For example :

Re: [gdal-dev] Libgeotiff 1.4.0 Released

2012-04-20 Thread Etienne Tourigny
Frank - i believe that this version is also in gdal trunk right? Etienne On Fri, Apr 20, 2012 at 1:53 PM, Frank Warmerdam warmer...@pobox.com wrote: Folks, I am pleased to announce the release of libgeotiff 1.4.0.  There are no changes since 1.4.0RC2.  This release includes:  * An upgrade

Re: [gdal-dev] Enabling DAP appears to disable several other formats

2012-04-20 Thread Etienne Tourigny
can you please update the relevant wiki page? All you need is an osgeo id http://trac.osgeo.org/gdal/wiki/BuildingOnMac Etienne On Fri, Apr 20, 2012 at 1:51 PM, Charlie Sharpsteen ch...@sharpsteen.net wrote: On Thu, Apr 19, 2012 at 6:48 PM, Charlie Sharpsteen ch...@sharpsteen.net wrote: On

Re: [gdal-dev] How to change variable names in netCDF?

2012-04-19 Thread Etienne Tourigny
If you use gdal-1.9 the driver will use the variable name from the original netcdf file (if any). for example, if you use the following command the original filename will be preserved. gdal_translate -of netcdf in.nc out.nc However, if copying from other formats (such as gtiff), or creating a

Re: Re: [gdal-dev] How to change variable names in netCDF?

2012-04-19 Thread Etienne Tourigny
any advice which way is better,  (e.g. parsing of names through string options, making reserved metadata with a name, modification of Python APIs, etc)? Kind regards, Asuka Etienne Tourigny etourigny@gmail.com wrote: If you use gdal-1.9 the driver will use the variable name from

<    1   2   3   4   >