[gdal-dev] Still Confused about datum transformations

2011-10-21 Thread dev4cx4m9z
I have received many useful suggestions, but I am still struggling with what should be a simple problem. I am trying to translate a series of lat/lon coordinates in WGS84 coordinates to lat/lon coordinates for my map (AGD66). The code is below, and seems to mirror sample code in the GDAL tutorials.

[gdal-dev] Creating JPEGs with gdal2tiles using 4-band GeoTIFFs (RGB+NIR)

2011-10-21 Thread Josh Doe
Hello, I've gotten 4-band imagery from USGS for Virginia, and it's stored in GeoTIFF format. The bands are R, G, B, and NIR. I tried running gdal2tiles directly on one of these files, and got a bad result, since it interpreted the NIR band as an alpha channel. I tried looking in the source to ignor

Re: [gdal-dev] ogr2ogr different behaviour on different OS platforms (Windows 7 vs XP)

2011-10-21 Thread Even Rouault
Le vendredi 21 octobre 2011 22:26:07, hda...@gmail.com a écrit : > Hi, > > I use the same ogr2ogr 1.8.1 running on both Windows 7 (64-bit) and XP. I > got the expected result from Windows 7, but XP gave me warning and errors. > The ogr2ogr command is: > > ogr2ogr.exe -f PostgreSQL "PG:dbname=nam

[gdal-dev] ogr2ogr different behaviour on different OS platforms (Windows 7 vs XP)

2011-10-21 Thread hda...@gmail.com
Hi, I use the same ogr2ogr 1.8.1 running on both Windows 7 (64-bit) and XP. I got the expected result from Windows 7, but XP gave me warning and errors. The ogr2ogr command is: ogr2ogr.exe -f PostgreSQL "PG:dbname=name user=user password=pwd host=host_name port=5432" OCI:name/pwd@serviceID:tab

Re: [gdal-dev] ReadAsArray with Windows 7

2011-10-21 Thread Tamas Szekeres
2011/10/21 Frank Warmerdam > > If the problem with your script persists when using the OSGeo4W > python environment then I should be able to reproduce it with a > suitable bug report. If it does not happen with OSGeo4W then > the issue likely relates to Tamas's use of SWIG version for the > pytho

Re: [gdal-dev] ReadAsArray with Windows 7

2011-10-21 Thread Tamas Szekeres
2011/10/21 Frank Warmerdam > On Fri, Oct 21, 2011 at 6:34 AM, Discourse Maps > wrote: > > Hi, > > > > I was wondering if the issue mentioned in a past thread has every been > > addressed. > > > http://osgeo-org.1803224.n2.nabble.com/Gdal-Python-Win7-crash-with-ReadAsArray-td4398401.html > > > >

Re: [gdal-dev] get metadata from dataset

2011-10-21 Thread Frank Warmerdam
On Fri, Oct 21, 2011 at 10:56 AM, Travis Kirstine wrote: > How do you get the "image structure metadata" (source_color_space, > interleave etc) displayed in gdalinfo using the API > > python > > ds = gdal.Open('file.tif', 0) > ds.Metadata > returns a empty dict Travis, You need to fetch the

[gdal-dev] get metadata from dataset

2011-10-21 Thread Travis Kirstine
How do you get the "image structure metadata" (source_color_space, interleave etc) displayed in gdalinfo using the API python ds = gdal.Open('file.tif', 0) ds.Metadata returns a empty dict Regards ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] ReadAsArray with Windows 7

2011-10-21 Thread Frank Warmerdam
Jimmy, Visit http://osgeo4w.osgeo.org/ and follow the instructions. You will need to go through "advanced install" and ensure the "gdal-python" package is selected for installation. After it completes you should have an OSGeo4W shell icon on your desktop. You can launch that and from within that

Re: [gdal-dev] ReadAsArray with Windows 7

2011-10-21 Thread Frank Warmerdam
On Fri, Oct 21, 2011 at 6:34 AM, Discourse Maps wrote: > Hi, > > I was wondering if the issue mentioned in a past thread has every been > addressed. > http://osgeo-org.1803224.n2.nabble.com/Gdal-Python-Win7-crash-with-ReadAsArray-td4398401.html > > I am having much the same issues with GDAL 1.6.1,

[gdal-dev] ReadAsArray with Windows 7

2011-10-21 Thread Discourse Maps
Hi, I was wondering if the issue mentioned in a past thread has every been addressed. http://osgeo-org.1803224.n2.nabble.com/Gdal-Python-Win7-crash-with-ReadAsArray-td4398401.html I am having much the same issues with GDAL 1.6.1, Windows 7, and using 'ReadAsArray'. Python crashes almost ever

Re: [gdal-dev] New mloskot-github-gdal-20111018.7z

2011-10-21 Thread Etienne Tourigny
>From this page it seems like it's quite easy using just "git svn", and doesn't require an extra tool. http://trac.parrot.org/parrot/wiki/git-svn-tutorial Instructions there are: git svn clone -s -r 4:HEAD https://svn.parrot.org/parrot # choose some recent-ish commit -s is for --stdlayout w

Re: [gdal-dev] New mloskot-github-gdal-20111018.7z

2011-10-21 Thread Mateusz Łoskot
On 21 October 2011 07:54, Antonio Valentino wrote: > It seems that the svn2git [1] tool (based on git-svn) is able to import > svn repositories with branches in a proper way. > I never used it an I don't know if it allows to push changes back to > svn. > Anyway since Julien only needs to generate

Re: [gdal-dev] New mloskot-github-gdal-20111018.7z

2011-10-21 Thread Julien Malik
Antonio, It seems that the svn2git [1] tool (based on git-svn) is able to import svn repositories with branches in a proper way. I never used it an I don't know if it allows to push changes back to svn. Anyway since Julien only needs to generate a patch, svn2git should be good for its purposes.

Re: [gdal-dev] New mloskot-github-gdal-20111018.7z

2011-10-21 Thread Antonio Valentino
Hi Mateusz, hi Julien, Il giorno Thu, 20 Oct 2011 21:59:27 +0100 Mateusz Łoskot ha scritto: > 2011/10/20 Julien Malik : > > Sorry I think I was not clear enough : my goal is to generate a > > patch for inclusion in a gdal-1.8.0 debian package [1] > > No plan at all for committing it in the gdal