Re: [gdal-dev] GDAL and JAVA

2010-03-30 Thread Frank Warmerdam
GongYing Hsu wrote: Excuse me! Is there has any tutorial about GDAL for JAVA? What I use is JDK 1.6 and gdal1.7.1. So how do I set up the GDAL for JAVA?? Thank you very much. GongYing Hsu, I believe the best information on the Java bindings for GDAL are at: http://trac.osgeo.org/gdal/wiki/G

[gdal-dev] GDAL and JAVA

2010-03-30 Thread GongYing Hsu
Excuse me! Is there has any tutorial about GDAL for JAVA? What I use is JDK 1.6 and gdal1.7.1. So how do I set up the GDAL for JAVA?? Thank you very much. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

RE: [gdal-dev] Preventing .aux.xml output without disabling PAM

2010-03-30 Thread Shaw, Jonathan-P29740
Good suggestion... I tried that, also, but the .aux.xml file is still written to the normal location unless the file system rejects it (due to being on a read-only directory or device, for instance). Jonathan -Original Message- From: Pinner, Luke [mailto:luke.pin...@environment.gov.au]

RE: [gdal-dev] Preventing .aux.xml output without disabling PAM

2010-03-30 Thread Pinner, Luke
Perhaps set the GDAL_PAM_PROXY_DIR environment var to some temp directory and delete the directory after processing? Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Shaw, Jonathan-P29740 Sent: Wednesday, 31 March 2010 7

Re: [gdal-dev] Commit r19248

2010-03-30 Thread Christopher Barker
Ari Jolma wrote: The point is that the byte buffer may contain data basically in any GDALDataType (that's an argument to ReadRaster). The receiving end needs to know what's the type to understand the bytes object. Perl data buffer objects do not carry that information, and it seems that Python

[gdal-dev] Preventing .aux.xml output without disabling PAM

2010-03-30 Thread Shaw, Jonathan-P29740
I need to override the projection and geotransform for some of the sources I process, but I want my changes effective in memory only. The following code should do that (or so I thought), but it causes the file S:\Maps\aux_test.bmp.aux.xml to be generated, even though I am trying to prevent that by

Re: [gdal-dev] Commit r19248

2010-03-30 Thread Ari Jolma
Christopher Barker wrote: Ari Jolma wrote: But is the string object useful from Python programmer's point of view then? (maybe NumPy?) yes, a python string (or, in newer versions, a bytes object) can be used to create various objects with compatible binary represent ions: images, numpy array

Re: [gdal-dev] Commit r19248

2010-03-30 Thread Ari Jolma
Andrey Kiselev wrote: On Mon, Mar 29, 2010 at 11:23:08PM +0300, Ari Jolma wrote: That would mean copying from the initial buffer directly into Perl arrays within a typemap - I haven't done that because of the complication of several datatypes. To change that would mean - not to break exi

[gdal-dev] how to set raster bands with gdalwarp

2010-03-30 Thread easyl
I am making map tiles from a PNG (in RGBA color) with following commands. gdal_translate -of VRT -a_srs EPSG:4326 -gcp ... source.png source.vrt gdalwarp -of VRT -s_srs EPSG:4326 -t_srs EPSG:900913 source.vrt source_web.vrt gdal2tiles -p mercator -z 2-11 -w google source_web.vrt By the gdalwar

Re: [gdal-dev] Contours from the python interface

2010-03-30 Thread Frank Warmerdam
Martin Raspaud wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I rebound on the previous contour thread to ask if it is possible to burn contours/borders into raster programatically with python ? Martin, Yes. The gdal_fillnodata.py utility is just a python script,and you can examine

Re: [gdal-dev] Converting contour lines (Shape files) into DEM

2010-03-30 Thread Frank Warmerdam
Jan Hartmann wrote: Frank, is there a description of the way the smoothing is done, or should I look it up in the code? Jan, It does a user defined number of iterations of 3x3 average filtering, only altering the interpolated pixels. The algorithm discussion, such as it is, is attached to th

Re: [gdal-dev] gdal2tiles - transparent area on base image becomes opaque in tiles

2010-03-30 Thread easyl
open base_mercator.vrt it should looks like ... ... 4 Try to manually modify base_mercator.vrt ... Red Green Blue Alpha ... ...

Re: [gdal-dev] Commit r19248

2010-03-30 Thread Andrey Kiselev
On Mon, Mar 29, 2010 at 11:23:08PM +0300, Ari Jolma wrote: > I was wrong in saying that there are no "unnecessary" memory copies in > Perl. It seems that the raster data is copied to a buffer, from which it > is copied to another buffer maintained by Perl. I then have an extra > layer of Perl

[gdal-dev] Contours from the python interface

2010-03-30 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I rebound on the previous contour thread to ask if it is possible to burn contours/borders into raster programatically with python ? Thanks, Martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora -

Re: [gdal-dev] Converting contour lines (Shape files) into DEM

2010-03-30 Thread Jan Hartmann
Frank, is there a description of the way the smoothing is done, or should I look it up in the code? BTW: there is a description of the algorithm used in GRASS to create contour lines: https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.contour/README This looks much more adapted to the