Re: [gdal-dev] gdal_merge: stacking and band statistics

2010-10-20 Thread Peter J Halls
Jason, as a heavy ArcGIS user and teacher, as well as GDAL, I think you may have missed something about ArcGIS. I have not tested the *outputs* of statistics calculations between GDAL and ArcGIS, however what you describe seems to be a display default. When any image is opened from di

Re: [gdal-dev] ogr.UseExceptions() doesn't raise an exception on a non-existant dataset [SEC=UNCLASSIFIED]

2010-10-20 Thread Ari Jolma
On 10/21/2010 04:58 AM, Pinner, Luke wrote: OGR doesn't raise an exception on attempting to open a non-existant dataset even if ogr.UseExceptions() has been called, GDAL does though. Is this intentional or a bug? Luke, It is a (bit annoying feature admittedly) feature. If none of the avai

RE: [gdal-dev] gdaldem color-relief color_text_files

2010-10-20 Thread Mark Millman
Thanks, as you say this doesn't really solve my problem but it is a useful tool, as was SpaceEyes3D Viewer color-relief editor. In exploring my problem I've written some Java code to interpolate shades within a color_text_file. If you set up a color-text-file with color differences at 1000 meter

[gdal-dev] ogr.UseExceptions() doesn't raise an exception on a non-existant dataset [SEC=UNCLASSIFIED]

2010-10-20 Thread Pinner, Luke
OGR doesn't raise an exception on attempting to open a non-existant dataset even if ogr.UseExceptions() has been called, GDAL does though. Is this intentional or a bug? GDAL version = 1.7.2 from osgeo import gdal,ogr gdal.UseExceptions() ogr.UseExceptions() ds=ogr.Open('foo') #No exception raised

Re: [gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Boris Dev
thanks..I am almost there...I think I am making a simple usage typo? gdalwarp without the option '-t_srs EPSG:4326' works OK. But it doesnt work with the command written exactly as you have it > > gdalwarp -t_srs EPSG:4326 in.jpg out.jpg > > After that command, I do not get anything processed (i

RE: [gdal-dev] gdal_merge: stacking and band statistics

2010-10-20 Thread Jason Roberts
Matt, Although I have not worked with multi-band HFA format, I have experimented fairly extensively with single-band, GDAL-produced, HFA-format files in ArcGIS 9.3.1 SP1. Maybe my experience will be interesting to you anyway. My experience was that calculating the statistics with GDAL and w

Re: [gdal-dev] gdal_merge: stacking and band statistics

2010-10-20 Thread Elijah Robison
Matt out of curiosity is this a new install of ArcGIS you're talking about, maybe version 9.2?  As I recall installs of 9.2 require a service pack to calc raster stats.  Otherwise, rasters show all black when loaded, etc. Elijah, VillaGIS, Inc., Branson, MO Matt Hanneman wrote: Hi, C

[gdal-dev] gdal_merge: stacking and band statistics

2010-10-20 Thread Matt Hanneman
Hi, Can anyone help a newbie? I have been trying to calculate statistics with gdal_merge when merging/stacking several tiffs together into a HFA format (see below for syntax). However, when loaded into ArcGIS it reports that there are no statistics calculated for any of the bands. Will the '

RE: [gdal-dev] DTED Elevations with Java and gdal

2010-10-20 Thread Corrado, George P.
Hey Even, So I was messing around with one of the gdal examples that prints a lot of debug info, which is nice. I found a thread where someone wanted to get elevation data at a certain point or pixel. I think it was Frank who responded to it. Anyway, I tried to follow along, and I think I'm

Re: [gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Even Rouault
NEATLINE is only a concept of geospatial PDF encoded according to the OGC Best Practice. Adobe-style have only bbox. That could be turned into a pseudo neatline I guess. Le mercredi 20 octobre 2010 19:26:36, Brent Fraser a écrit : > Hmmm. My PDF doesn't seem to have a neatline, only a MediaBox

Re: [gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Brent Fraser
Hmmm. My PDF doesn't seem to have a neatline, only a MediaBox and two BBoxes... Brent On 10/20/2010 9:04 AM, Even Rouault wrote: You don't need to convince anyone to add new functionnality. It already exists ;-) See the -cutline option of gdalwarp. Basically you use the NEATLINE reported by

Re: [gdal-dev] Re: [gdal_retile]reshape ecw

2010-10-20 Thread christian . mueller
The -ps parameter specifies the pixel width and pixel height of a tile. You must multiply these values. -ps 1000 1000 means 1000x1000 = 1 million pixels for each tile As a consequence, a tile needs 1 MB .. n MB , depending on your color model. The file size of the tiles my be smaller if co

[gdal-dev] Re: [gdal_retile]reshape ecw

2010-10-20 Thread Tacot
Hi, Why do you talk about million pixels? I'm trying now with this command: gdal_retile -of ECW -ps 1000 1000 -targetDir C:\GDAL\ECW Image.ecw It's not finished yet, but there's so many tiles!! I thought maybe using gdalbuildvrt, it could be a possibility. -- View this message in context: htt

Re: [gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Even Rouault
You don't need to convince anyone to add new functionnality. It already exists ;-) See the -cutline option of gdalwarp. Basically you use the NEATLINE reported by gdalinfo as the CUTLINE (that was the sole purpose of reporting the NEATLINE by the way !) The easiest way is to make a simple CSV lik

Re: [gdal-dev] [gdal_retile]reshape ecw

2010-10-20 Thread christian . mueller
The error does not occur in the gdal_retile.py python code, it occurs in the gdal C code. Your tile size is really large producing images with 100 millions of pixel. Try a smaller pixel size, each pixel needs some bytes, dependent on your color model. Quoting Tacot : Hi, I try to cut

Re: [gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Brent Fraser
Boris, Use gdalwarp to convert your jpeg to Geographic coordinates (I think it needs to be converted for KML anyways): gdalwarp -t_srs EPSG:4326 in.jpg out.jpg then use gdalinfo to get the corner coordinates. Currently the entire page of the PDF is rendered into the image. Perhaps we ca

[gdal-dev] [gdal_retile]reshape ecw

2010-10-20 Thread Tacot
Hi, I try to cut an image in several tiles. I use this command: gdal_retile -of ECW -ps 1 1 -targetDir C:\GDAL\ECW Image.ecw I obtain 4 tiles, but after I've got this message: "Traceback (most recent call last): File "C:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 941, in ? sys

[gdal-dev] PDF-->JPEG-->KML. Confused about association between KML bounding box and PDF's neatline and corner coordinates.

2010-10-20 Thread Boris Dev
My objective is to make a KML ground overlay with a geospatial PDF map. Using GDAL's translate utility I have converted the PDF to a JPEG. The next step and problem for me is to write the text of the KML ground overlay, which requires a text of bounding box information like this: 37.9190

Re: [gdal-dev] ESRI binary grids problem

2010-10-20 Thread Frank Warmerdam
Sebastian E. Ovide wrote: Hi All I've save a ESRI binary grid using ArcMAP (in Binary format) and using gdalinfo it looks like the RRD files are not read... Sebastian, Unfortunately, it is hard for me to figure out much without access to the dataset. For a counter example, I'll provide a

Re: [gdal-dev] Reading GML

2010-10-20 Thread Paul Meems
Even, You are completely right. I was a bit confused by all the numbers in the package names ;) I'm going the check my GML now. Thanks, Paul 2010/10/20 Even Rouault > Paul, > > you can find GDAL 1.8dev binary packages on Tamas site. They are identified > as > the -dev releases. > > Selon Chai

Re: [gdal-dev] Reading GML

2010-10-20 Thread Even Rouault
Paul, you can find GDAL 1.8dev binary packages on Tamas site. They are identified as the -dev releases. Selon Chaitanya kumar CH : > Paul, > > 1.7 doesn't support some geometry types that 1.8 does. GDAL1.8 is yet to be > released. You have to build it yourselves. > You can find a nightly snapsho

Re: [gdal-dev] Reading GML

2010-10-20 Thread Ari Jolma
On 10/20/2010 12:15 PM, Paul Meems wrote: Hi all, I have a GML which I want to convert to shapefile. I've started with checking the file with ogrinfo (v1.7.2). It returns "Unrecognised geometry type ." After searching a bit it seems GDAL v1.8 might read the GML properly. So I'm looking for the

Re: [gdal-dev] Reading GML

2010-10-20 Thread Chaitanya kumar CH
Paul, 1.7 doesn't support some geometry types that 1.8 does. GDAL1.8 is yet to be released. You have to build it yourselves. You can find a nightly snapshot of the source code for the trunk (1.8) at http://trac.osgeo.org/gdal/wiki/DownloadSource#NightlySnapshots Build hints: http://trac.osgeo.org/

[gdal-dev] Reading GML

2010-10-20 Thread Paul Meems
Hi all, I have a GML which I want to convert to shapefile. I've started with checking the file with ogrinfo (v1.7.2). It returns "Unrecognised geometry type ." After searching a bit it seems GDAL v1.8 might read the GML properly. So I'm looking for the binaries of GDAL v1.8. At Tamas his site I c

[gdal-dev] ESRI binary grids problem

2010-10-20 Thread Sebastian E. Ovide
Hi All I've save a ESRI binary grid using ArcMAP (in Binary format) and using gdalinfo it looks like the RRD files are not read... any ideas ? thanks g...@mapserver:~$ gdalinfo data/ie/rasters/ie_t02_q200/ Driver: AIG/Arc/Info Binary Grid Files: data/ie/rasters/ie_t02_q200/ data/ie/raste