Re: [gdal-dev] gdaladdo, overviews and NODATA

2012-02-22 Thread Ralf Suhr
Hi Armin, you can work around with removing the nodata value first, build the overviews and setting the nodata value again with gdal_edit.py. The script can be found in source directory gdal/swig/python/samples. Gr Ralf On Dienstag 21 Februar 2012 21:36:19 Armin Burger wrote: > Hi all > > I

[gdal-dev] Multi image segments in NITF file

2012-02-22 Thread Livneh Yehiyam
Hi Another NITF question. I want to create an NITF file with more than one image segment. I used the INUM create option to specify the number of image segments. Gdalinfo reports the correct number of sub datasets. I've noticed that all of the sub-datasets are created in the same size and pixel f

Re: [gdal-dev] Postgis Raster driver improvements.

2012-02-22 Thread Jorge Arévalo
Hello, I confirm the driver is called "PostGIS Raster" instead of "WKT Raster". The old name just remains in testing scripts. The rest is ok. And I'm in contact with David for everything related with the driver. Best regards, Jorge On Tue, Feb 21, 2012 at 10:48 PM, David Zwarg wrote: > Hi Frank

Re: [gdal-dev] comparing two rasters

2012-02-22 Thread jdmorgan
Hi Chaitanya, I am using data1[data1>0]=1 to convert any of the values in the row of data that is greater than 0 to a one. I am doing this because the values are varied, but I am only interested in the fact that there is a value at all. My end goal is to compare the two input rasters for pla

Re: [gdal-dev] Multi image segments in NITF file

2012-02-22 Thread Even Rouault
Selon Livneh Yehiyam : > > Hi > Another NITF question. > I want to create an NITF file with more than one image segment. I used the > INUM create option to specify the number of image segments. > Gdalinfo reports the correct number of sub datasets. > I've noticed that all of the sub-datasets are c

Re: [gdal-dev] Re: Hillshade + Topographic Map??

2012-02-22 Thread tim martin
Hi Donovan and board Yes that Tim Sutton tutorial is very good. I also found this one http://dirkraffel.com/2011/07/05/best-way-to-merge-color-relief-with-shaded-relief-map/ I ended up following this procedure and it has worked v well. I just setup a loop to use ImageMagik and combine the two

[gdal-dev] Error when importing/exporting to FileGDB

2012-02-22 Thread tim martin
Hi gdalers I have installed OSGeo4W and have checked the ogr formats and see that FileGDB is there. So I then tested a simple ESRI shapefile using the following command ogr2ogr -f "FileGDB" region.gdb region.shp this worked and I can see the data in ArcMap. I then tried a folder of shapefiles

Re: [gdal-dev] Re: Hillshade + Topographic Map??

2012-02-22 Thread Norman Vine
On Feb 22, 2012, at 8:42 AM, tim martin wrote: > Hi Donovan and board > > Yes that Tim Sutton tutorial is very good. > > I also found this one > > http://dirkraffel.com/2011/07/05/best-way-to-merge-color-relief-with-shaded-relief-map/ > > > > I ended up following this procedure and it has

Re: [gdal-dev] comparing two rasters

2012-02-22 Thread Chaitanya kumar CH
Try this Derek, for r in range(rows1): data1 = ds1.GetRasterBand(1).ReadAsArray(0, r, cols1, 1) print "data1: " + str(data1) data2 = ds2.GetRasterBand(1).ReadAsArray(0, r, cols2, 1) print "data2: " + str(data2) result_bools = np.logical_and((data1 > 0), (data2 > 0)) result_

Re: [gdal-dev] gdalwarp extent issues

2012-02-22 Thread Jay L.
I can confirm that gdal_retile.py also exhibits this behavior. I am testing the shift to negative longitude now to see if that "fixes" the issue. Should I also post to the ticket concerning the persistance of this error in gdal_retile? Jay On Wed, Feb 22, 2012 at 9:48 AM, J Luis wrote: > > >

Re: [gdal-dev] Using SWIG from a Driver

2012-02-22 Thread Even Rouault
Selon Michael Speth : > Greetings GDAL devs, >I am interested in developing a GDAL driver that calls out to a Java > library that accesses a database that we are developing using SWIG's > Java Bindings. Are there any examples of existing GDAL drivers using > the SWIG bindings? Not that I am

Re: [gdal-dev] compiling gdal on Obuntu via Parallels

2012-02-22 Thread Even Rouault
Selon Stuart Edwards : > Hi > > This seems to be an old problem (see > http://www.osgeo.org/pipermail/gdal-dev/2009-October/022308.html) but when I > try to compile GDAL 1.9.0 from source using Obuntu 10.04 through Parallels > Desktop 6.0.12106 on OS X 10.6.8 (don't ask why this convoluted approa

Re: [gdal-dev] gdalwarp extent issues

2012-02-22 Thread Joaquim Luis
On 22-02-2012 00:54, Jay L. wrote: List, I am attempting to reproject 8 gtiffs, each in a local equirectangular projection, back to gcs for use in geoserver. I immediately went to gdalwarp to perform this task and am having an issue. The input files are stored in positive longitude, while t

Re: [gdal-dev] compiling gdal on Ubuntu via Parallels

2012-02-22 Thread Stuart Edwards
On Feb 22, 2012, at 10:16 AM, Even Rouault wrote: > Selon Stuart Edwards : > >> Hi >> >> This seems to be an old problem (see >> http://www.osgeo.org/pipermail/gdal-dev/2009-October/022308.html) but when I >> try to compile GDAL 1.9.0 from source using Ubuntu 10.04 through Parallels >> Desktop

Re: [gdal-dev] compiling gdal on Ubuntu via Parallels

2012-02-22 Thread Even Rouault
Selon Stuart Edwards : > > On Feb 22, 2012, at 10:16 AM, Even Rouault wrote: > > > Selon Stuart Edwards : > > > >> Hi > >> > >> This seems to be an old problem (see > >> http://www.osgeo.org/pipermail/gdal-dev/2009-October/022308.html) but when > I > >> try to compile GDAL 1.9.0 from source using

RE: [gdal-dev] compiling gdal on Ubuntu via Parallels

2012-02-22 Thread Kyle Shannon
On newer Ubuntu releases /usr/local/lib is not in the LD_LIBRARY_PATH. Either set it in your login script (export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH or add /usr/local/lib to /etc/ld.so.conf If you do the latter method, run sudo ldconfig after you are done and it should work. --

Re: [gdal-dev] compiling gdal on Ubuntu via Parallels

2012-02-22 Thread Stuart Edwards
that seems to have taken care of the problem - thanks! Stu On Feb 22, 2012, at 11:41 AM, Kyle Shannon wrote: > On newer Ubuntu releases /usr/local/lib is not in the LD_LIBRARY_PATH. > Either set it in your login script (export > LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH or add /usr/loca

Re: [gdal-dev] gdaladdo, overviews and NODATA

2012-02-22 Thread Armin Burger
On 21/02/2012 22:36, Frank Warmerdam wrote: On Tue, Feb 21, 2012 at 1:17 PM, Armin Burger wrote: Then I tried to set the NODATA value to 0 using Gdal-Python, and afterwards they had Band 1 Block=3000x1 Type=Byte, ColorInterp=Red NoData Value=0 Band 2 Block=3000x1 Type=Byte, ColorInterp=Gre

[gdal-dev] SetSpatialFilter

2012-02-22 Thread Ethan Alpert
Is it still true that the geometry used for SetSpatialFilter must have the same CRS as the layer? This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee respons

Re: [gdal-dev] SetSpatialFilter

2012-02-22 Thread Even Rouault
Le jeudi 23 février 2012 00:31:55, Ethan Alpert a écrit : > Is it still true that the geometry used for SetSpatialFilter must have > the same CRS as the layer? Yes, the only OGR driver that does the reprojection that I'm aware of is the FileGDB driver. Other drivers will happily ignore any CRS s

[gdal-dev] Re: learning GDAL with C/C++

2012-02-22 Thread joseph.nalluri
Frank Warmerdam wrote > > Joseph, > > I'd start with http://www.gdal.org/gdal_tutorial.html, the general purpose > API tutorial. It isn't comprehensive, but I think it is fairly good for > the > areas covered. > > Note that GDAL does not directly help with distributed processing. I > assume t

Re: [gdal-dev] Re: learning GDAL with C/C++

2012-02-22 Thread Frank Warmerdam
On Wed, Feb 22, 2012 at 7:12 PM, joseph.nalluri wrote: > Thanks. > I have a .bil file with an associated .hdr file with metadata. Do I have to > read in the .hdr file and manually prepare the variables or is there a > specified function? I could not find much info. about .hdr file. > I am not sure

[gdal-dev] Building GDAL with FileGDB support

2012-02-22 Thread Stuart Edwards
Hi - I am trying to build GDAL with FileGDB support on Ubuntu 10.4 using the recipe on the GDAL wiki. I have installed GDAL 1.9.0 in /usr/local/ and have placed FileGDB_API from the ArcGIS resource center at /usr/local. Configure --with-fgdb produces a config summary that shows 'yes' for 'w