[gdal-dev] Python Bindings ReadAsArray and ReadRaster Errors

2013-01-03 Thread Jay L.
List, I am attempting to open a multi-band image using the PDS driver. I have a working, GDAL readable label that I can run gdalinfo and gdal_translate on without error. I am attempting to access a number of bands and operate on them using NumPy. band.ReadAsArray() is failing silently in proces

Re: [gdal-dev] ENVI datasets with rotation

2013-01-03 Thread Even Rouault
Le jeudi 03 janvier 2013 15:05:15, Carl Godkin a écrit : > Happy 2013 everyone, > > We've come across some ENVI data sets (.bsq + .hdr files) in which the "map > info" keyword of the .hdr file looks like this: > > map info = {UTM, 1, 1, 408953.26, 3290904.2, 3.400, 3.400, 17, North, > WGS-84,

Re: [gdal-dev] kml file does not open with ogrinfo but works with GE

2013-01-03 Thread Even Rouault
Le jeudi 03 janvier 2013 13:08:28, Roger Bivand a écrit : > If you change utf-16 in the first line to utf-8, then change line 2: The encoding specification is indeed incorrect (UTF-16 is a 2-byte encoding, and the file is really ASCII / UTF-8) --> the software that generated that file should be

Re: [gdal-dev] gdal_translate with the -epo flag

2013-01-03 Thread Jean-Claude Repetto
Le 03/01/2013 17:29, Robb K. Wright a écrit : I'm interested in trying out the -epo flag with gdal_translate, but it doesn't seem to exist within the current Windows binaries Which version ? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://l

Re: [gdal-dev] gdal_translate with the -epo flag

2013-01-03 Thread Stefano Iacovella
Hi Robb, The doc states that (GDAL >= 1.10) for -epo and -eco so 1.9.2 miss them. Kind Regards, stefano --- 41.95581N 12.52854E http://www.linkedin.com/in/stefanoiacovella http://twitter.com/#!/Iacovellas 2013/1/3 Robb K. Wright : > > I'm int

[gdal-dev] gdal_translate with the -epo flag

2013-01-03 Thread Robb K. Wright
I'm interested in trying out the -epo flag with gdal_translate, but it doesn't seem to exist within the current Windows binaries from the gisinternals site though the web docs (http://www.gdal.org/gdal_translate.html) have it listed Usage: gdal_translate [--help-general] [-ot {Byte/In

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Kees kling
On 01/03/2013 03:31 PM, Even Rouault wrote: That is not that easy, because it is embedded in in c++ applications. Meanwhile I reinstalled the old version and can go on with my work, but i think there is something wrong Checking with ogrinfo your.dataset -spat xmin ymin xmax ymax might be an easy

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Even Rouault
> That is not that easy, because it is embedded in in c++ applications. > Meanwhile I reinstalled the old version and can go on with my work, but > i think there is something wrong Checking with ogrinfo your.dataset -spat xmin ymin xmax ymax might be an easy way to try to reproduce Other thing I

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Kees kling
On 01/03/2013 03:16 PM, Even Rouault wrote: I compiled both libs with geos support and the loader gives me libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x7fe171f78000) libgeos-3.2.2.so => /usr/lib/libgeos-3.2.2.so (0x7fe16f29f000) so that won't be the problem. hum, then you mu

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Even Rouault
> I compiled both libs with geos support and the loader gives me > libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x7fe171f78000) > libgeos-3.2.2.so => /usr/lib/libgeos-3.2.2.so (0x7fe16f29f000) > so that won't be the problem. hum, then you must provide a way to reproduce that beha

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Kees kling
On 01/03/2013 03:06 PM, Even Rouault wrote: Selon Kees kling : Hi, last week I upgraded my ubuntu and also the gdal library. I was using version libgdal.so.1.15.0, now I compiled and installed version libgdal.so.1.16.2. In my application i'm using OGRLayer SetSpatialFilter and it was working

Re: [gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Even Rouault
Selon Kees kling : > Hi, > > last week I upgraded my ubuntu and also the gdal library. I was using > version libgdal.so.1.15.0, now I compiled and installed version > libgdal.so.1.16.2. > In my application i'm using OGRLayer SetSpatialFilter and it was working > in the old version, but in the new

[gdal-dev] ENVI datasets with rotation

2013-01-03 Thread Carl Godkin
Happy 2013 everyone, We've come across some ENVI data sets (.bsq + .hdr files) in which the "map info" keyword of the .hdr file looks like this: map info = {UTM, 1, 1, 408953.26, 3290904.2, 3.400, 3.400, 17, North, WGS-84, units=Meters, rotation=-6.0} It's interesting because we have a

[gdal-dev] Ogr and setSpatialFilter

2013-01-03 Thread Kees kling
Hi, last week I upgraded my ubuntu and also the gdal library. I was using version libgdal.so.1.15.0, now I compiled and installed version libgdal.so.1.16.2. In my application i'm using OGRLayer SetSpatialFilter and it was working in the old version, but in the new version the GetFeatureCount r

Re: [gdal-dev] kml file does not open with ogrinfo but works with GE

2013-01-03 Thread Roger Bivand
If you change utf-16 in the first line to utf-8, then change line 2: http://www.google.com/kml/ext/2.2"; xmlns="http://www.opengis.net/kml/2.2";> to http://www.opengis.net/kml/2.2";> and the final line from to to match, gdalinfo recognises the file. Then: > ogrListLayers("test.kml") [1] "Po

[gdal-dev] Ogr2Ogr OGR_STYLE Query

2013-01-03 Thread Ben Crane
Hi all, I have a relatively simple initial query. When I upload a MapInfo TAB file into PostGIS using Ogr2Ogr and specifying the OGR_STYLE column to be added to the upload I get a nice text field such as: "SYMBOL(a:0,c:#d1,s:12pt,id:"mapinfo-sym-72,ogr-sym-1",o:#ff)" Now, one small proble

[gdal-dev] kml file does not open with ogrinfo but works with GE

2013-01-03 Thread Agustin Lobo
A program (Mission Planner for Ardupilot) http://code.google.com/p/ardupilot-mega/wiki/MPTlog produces kml files with track information that can be represented with the same program and GE, but I cannot open them with ogrinfo: $ ogrinfo test.kml FAILURE: Unable to open datasource `test.kml' with th

Re: [gdal-dev] PCIDSK .pix feature attribute information not visible in geomatica.

2013-01-03 Thread RKSingh
Hello, The attributes don't get lost but they are hidden. I tried in Geomatica with Attribute manager->Table Definition to un-check and check in particular field and clicked Apply, then they are visible. I think this is not proper solution to see the attributes data. If anybody find some other so