Re: [gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Jose Gomez-Dans
Hi On 6 December 2011 20:08, Martin Lambers wrote: > Hi Jose! > This might be slightly offtopic, but if you are using the latest GDAL > from svn, you could try the brand new GTA driver to store your files > in GTA format. Then you can use the gta tool, which was made for > exactly this kind of g

Re: [gdal-dev] how to combine overlapping rasters?

2011-12-06 Thread Brian Case
Etienne you can gdal_rasterise the polys into a alpha band, then add your alpha band to your image in a vrt. Brian On Tue, 2011-12-06 at 19:59 -0200, Etienne Tourigny wrote: > > A related question: How can I effectively mask (mark as nodata) raster > pixels inside a polygon? For example, I wo

Re: [gdal-dev] how to combine overlapping rasters?

2011-12-06 Thread Brian Case
Etienne if they overlap your limited to one of 2 options to mosaic gdalwarp or mapserver to get what ones are on top with gdalwarp i would imagine you would just need to play with the order on the command line. Brian On Tue, 2011-12-06 at 19:59 -0200, Etienne Tourigny wrote: > Hi all. > > I

[gdal-dev] how to combine overlapping rasters?

2011-12-06 Thread Etienne Tourigny
Hi all. I am trying to combine 2 overlapping rasters into a single raster. Specifically, I have a raster for land cover types covering South America and another one for Brazil. I want the values from the Brazil map to overlap the values from the South American map. To complicate things further, t

Re: [gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Martin Lambers
The GTA driver supports all GDAL metadata, including projection etc. It is stored in GTA tags. The gta tool will not touch it (unless you tell it to by using the 'gta tag' command or edit it in the GUI). So in this example the metadata ending up in the out*.gta files should be the same as in the in

Re: [gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Etienne Tourigny
The idea looks pretty cool! just curious: what happens to georeferencing data (projection and GT) and metadata when converting to (and from) GTA format? What is the status of metadata support in the GDAL driver? Etienne On Tue, Dec 6, 2011 at 6:08 PM, Martin Lambers wrote: > Hi Jose! > > On Tu

Re: [gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Martin Lambers
Hi Jose! On Tue, 6 Dec 2011 17:52:17 +, Jose Gomez-Dans wrote: > I'm trying to build a VRT file out of a number of multiband files > using gdalbuildvrt. Let's say I have N 7-band files, and I want build > 7 N-band files (i.e., I want to stack all the bands in the same > dataset). I have accomp

Re: [gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Even Rouault
Le mardi 06 décembre 2011 18:52:17, Jose Gomez-Dans a écrit : > Hi, > > I'm trying to build a VRT file out of a number of multiband files using > gdalbuildvrt. Let's say I have N 7-band files, and I want build 7 N-band > files (i.e., I want to stack all the bands in the same dataset). I have > acc

[gdal-dev] gdalbuilvrt and multiband files

2011-12-06 Thread Jose Gomez-Dans
Hi, I'm trying to build a VRT file out of a number of multiband files using gdalbuildvrt. Let's say I have N 7-band files, and I want build 7 N-band files (i.e., I want to stack all the bands in the same dataset). I have accomplished this thus far by having a prior step that creates a VRT for each

Re: [gdal-dev] Compile GDAL with swig(Java) on MAC OS X

2011-12-06 Thread William Kyngesburye
On Dec 6, 2011, at 4:40 AM, Even Rouault wrote: > Dennis, > >> >> This works well so far, but the libgdaljni.dylib is directly linked to >> libgdal in the base Folder. So, if copy my program to another location, >> I will get a UnsatisfiedLinkError. > > Yes, both libs must be accessible through

Re: [gdal-dev] Proposed patch for HUGE GML files

2011-12-06 Thread Even Rouault
Hi Sandro, > I'm here to submit to your attention an alternative gml:xlink > resolving method (GML driver) I've implemented for Tuscany Region. > As usual, very in-depth analysis and high quality patch. Here are my comments : * #include "sqlite3.h" in ogr/ogrsf_frmts/gml/gmlreaderp.h is not a

RE: [gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-06 Thread Pouliot, Christopher (DNR)
Ok, thanks. I'll have to check that out. -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Monday, December 05, 2011 10:36 AM To: Kyle Shannon Cc: Pouliot, Christopher (DNR); gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] RE: Editing KML files using ogr_

Re: [gdal-dev] Compile GDAL with swig(Java) on MAC OS X

2011-12-06 Thread Even Rouault
Dennis, > > This works well so far, but the libgdaljni.dylib is directly linked to > libgdal in the base Folder. So, if copy my program to another location, > I will get a UnsatisfiedLinkError. Yes, both libs must be accessible through the java.library.path property (or in a system library direct

[gdal-dev] Compile GDAL with swig(Java) on MAC OS X

2011-12-06 Thread dennis
Hi all, I have a question about compiling gdal. I want to write a program in java with gdal and I want to compile gdal in a way, so that the user can use the already compiled lib. What I did so far is, changing the java.opt and this. gdal:$ ./configure gdal:$ make gdal:$ cd swig/java gdal:$ ./