Re: [gdal-dev] Countour polygons instead of lines

2017-10-19 Thread Jamie Adams
>From a user perspective, this can be done pretty easily using gdal_calc.py & gdal_polygonize.py. I've used this technique in the past several times. This doesn't help with gdal_contour of course, but is a viable way of doing the same thing. Maybe worth considering as a new python tool. Using a

Re: [gdal-dev] Preserve Source Raster Resolution When Merging

2016-08-25 Thread Jamie Adams
Hi Sam, If your gdal build has Rasterlite support, you can use that to store multiple rasters at their native resolution. For each raster do something like this, where table is a unique name for each raster. I used the file name for table, but it can be anything. gdal_translate -of Rasterlite

Re: [gdal-dev] Conversion from ASCII to GeoTIFF with gdalwarp: incorrect output

2014-10-14 Thread Jamie Adams
I would use the CENTER_LONG config argument. That will extend the raster past the -180/180 boundary depending on which side you want to extend. --config CENTER_LONG 180 Upper Left ( 176.0010322, -16.1523859) (176d 0' 3.72E, 16d 9' 8.59S) Lower Left ( 176.0010322, -18.2685614) (176d 0' 3.72E,

Re: [gdal-dev] Re: Mask and GEOTiff

2011-04-28 Thread Jamie Adams
You could run gdal_polygonize on the mask geotiff and then use the output vector with gdal_rasterize. That's the only way I can think of without writing a python script to do the pixel comparisons. Jamie On Thu, Apr 28, 2011 at 2:30 AM, canduc17 cand...@meeo.it wrote: I think gdal merge is

[gdal-dev] gdal_translate format listing is too long

2011-03-16 Thread Jamie Adams
Hello all, Question - is there some reason why gdal_translate needs to show a format listing when invoked on the command line with no arguments? On my system this outputs 61 lines which is nearly a maximized shell on my 24 monitor. Wouldn't requiring the --formats flag be more consistent with

[gdal-dev] kmlsuperoverlay nodata support

2010-10-11 Thread Jamie Adams
I'm evaluating the new kmlsuperoverlay driver in trunk and have been unable to get nodata values to show up as transparent in the output. Are there format specific creation options I should be using? - Jamie ___ gdal-dev mailing list

Re: [gdal-dev] OT: Need help with proj definition

2010-05-13 Thread Jamie Adams
I quickly ran this in a python shell: from osgeo import osr wkt = 'GEOGCS[GCS_ITRF_2000,DATUM[D_ITRF_2000,SPHEROID[GRS_1980,6378137.0,298.257222101]],PRIMEM[Greenwich,0.0],UNIT[Degree,0.0174532925199433]]' srs = osr.SpatialReference() srs.ImportFromWkt(wkt) srs.ExportToProj4()

[gdal-dev] flipping raster in python

2010-03-26 Thread Jamie Adams
I've written some simple Python code to flip a raster in relation to the y-axis. The raster is 2x19459 and has 4 bands of type Byte, and is written east to west (I have no idea why). The script proceeds normally for the first 2 bands, but slows way down after starting band 3. I let it run

Re: [gdal-dev] flipping raster in python

2010-03-26 Thread Jamie Adams
, inband.XSize, 1) flipline = numpy.fliplr(inline) outband.WriteArray(flipline, 0, i) inline = None inband = None outband = None Best regards, Even Le Friday 26 March 2010 21:22:54 Jamie Adams, vous avez écrit : I've written some simple Python code to flip a raster in relation

Re: [gdal-dev] No PROJ.4 translation for source SRS

2010-01-19 Thread Jamie Adams
There is no UTM zone specified in the input proj string. Is that the issue? On Tue, Jan 19, 2010 at 5:36 AM, Smart, Gary gary.sm...@goodrich.comwrote: I still can’t get to the bottom of this message – can anyone explain it… *ERROR 1: No PROJ.4 translation for source SRS, coordinate

Re: [gdal-dev] open source tool

2009-08-27 Thread Jamie Adams
You probably want these, specifically las2tin.exe : http://www.cs.unc.edu/~isenburg/lastools/ - Jamie 2009/8/27 Riki Tiki mongoose_r...@mail.ru hi, do you know any tools available for the conversion of LAS (LIDAR data) into Voronoi diagrams or TIN (triangular irregular networks)? thanks a

[gdal-dev] gdal2tiles altitude mode clampToSeaFloor ?

2009-07-29 Thread Jamie Adams
Hello all, Is there a way to get the 1.6 version of gdal2tiles to clamp tiles to the seafloor? I've tried modifying the script with altitudeMode gx:altitudeMode, but the tiles remain clamped to z=0. What's the correct approach? - Jamie ___ gdal-dev

Re: [gdal-dev] gdal and gras from svn, export problem GTIFF - UINT32

2009-04-27 Thread Jamie Adams
I had a similar issue with gdal gtiff output awhile back and solved it by using the internal gdal libtiff. Try using --with-libtiff=internal when compiling gdal. -Jamie On Mon, Apr 27, 2009 at 3:57 AM, massimo di stefano massimodisa...@yahoo.it wrote: Hi All, i'm having problems using gdal

Re: [gdal-dev] need suggestion on Linux OS

2009-04-22 Thread Jamie Adams
+1 for Ubuntu I too have been using Ubuntu 8.04 (Hardy) to compile and run GIS apps libs (grass, gdal, qgis, geos, proj, etc) and have had no problems at all. On Wed, Apr 22, 2009 at 9:55 AM, Roger André ran...@gmail.com wrote: I have been running a fairly complete open source GIS stack on a

Re: [Gdal-dev] gdaltransform v.1.6.0 - result differs from documentation

2009-04-18 Thread Jamie Adams
Looks like they may have added a towgs84 parameter to the proj definition for 31370: http://postgis.refractions.net/pipermail/postgis-commits/2008-May/000283.html That would likely explain the shift - the documentation probably hasn't been updated. On Sat, Apr 18, 2009 at 1:53 PM, geep999

Re: [gdal-dev] Help with Maine state plane US feet

2009-01-26 Thread Jamie Adams
Hey Michael, Have you tried EPSG 102684? There's a esri_extra file in the FWTools/share dir that has additional definitions, including Maine Stateplane West Nad83 Feet. Cheers, Jamie Adams On Mon, Jan 26, 2009 at 6:01 AM, Smith, Michael michael.sm...@maine.govwrote: I am trying to work

[gdal-dev] error using gdaltindex on grass rasters

2008-10-15 Thread Jamie Adams
Hello all, I needed to create a shapefile index of all the rasters in a grass mapset so I ran: ls /grass/location/mapset/cellhd/* | xargs gdaltindex all.shp and got this error: Warning 1: GRASS warning: Unable to open datum table file /usr/local/share/gdal/grass//etc/datum.table

Re: [gdal-dev] error using gdaltindex on grass rasters

2008-10-15 Thread Jamie Adams
I'm using GDAL 1.5.2 built on Ubuntu 8.04. On Wed, Oct 15, 2008 at 1:45 PM, Markus Neteler [EMAIL PROTECTED] wrote: On Wed, Oct 15, 2008 at 7:29 PM, Jamie Adams [EMAIL PROTECTED] wrote: Hello all, I needed to create a shapefile index of all the rasters in a grass mapset so I ran