Re: [gdal-dev] Wrong number or type of arguments for overloaded function'CoordinateTransformation_TransformPoint'

2015-03-20 Thread Michael Aye
Even Rouault spatialys.com> writes: > > Brendan, > > thanks for the follow-up. I've just committed a fix so that the error > report is > hopefully clearer now: > > $ python swig/python/samples/tolatlong.py 0 0 byte.png > ERROR: Cannot import projection '' > > Even > I am struggling with

[gdal-dev] PDS Reader error

2014-12-08 Thread K . -Michael Aye
d file format. In [10]: gdal.VersionInfo() Out[10]: '1110100' Regards, Michael — Michael Aye Cassini UVIS and MAVEN IUVS team LASP, Boulder CO ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Re: python downsample API?

2012-04-11 Thread K . -Michael Aye
were asking? Thanks, Scott On Wed, Apr 11, 2012 at 6:31 AM, K.-Michael Aye wrote: Dear all, is there a Python API for downsampling a huge dataset? What I would like to do: * get my dataset * read out RasterXSize and RasterYSize * calculate how many lines and rows I need to skip to get a quick

[gdal-dev] python downsample API?

2012-04-11 Thread K . -Michael Aye
Dear all, is there a Python API for downsampling a huge dataset? What I would like to do: * get my dataset * read out RasterXSize and RasterYSize * calculate how many lines and rows I need to skip to get a quick overview image, e.g. 10 lines to skip. * Have a ReadAsArray interface where I can

[gdal-dev] Re: Lost in projections

2011-02-28 Thread K . -Michael Aye
the differences. HTH others, Michael On 2011-02-27 16:15:56 +0100, K.-Michael Aye said: I just can't get my head around it... :( I have a Mars DEM rasterdata set that is projected in polar stereographic with this Wkt: PROJCS["POLAR_STEREOGRAPHIC MARS", GEOGCS["GCS_

[gdal-dev] Lost in projections

2011-02-27 Thread K . -Michael Aye
I just can't get my head around it... :( I have a Mars DEM rasterdata set that is projected in polar stereographic with this Wkt: PROJCS["POLAR_STEREOGRAPHIC MARS", GEOGCS["GCS_MARS", DATUM["D_MARS", SPHEROID["MARS",3396190,169.8944472236118]], PRIMEM["Reference_Mer

[gdal-dev] What's the best/simplest gdal binary for Windows 7?

2011-02-22 Thread K . -Michael Aye
Dear all, I am providing some python/gdal based libraries to Windows 7 users who are no programmers, so no mingw or VisualStudio is available and I am a Mac User. Which of the several should I recommend them to install? Best regards, Michael ___

[gdal-dev] Re: GDALGetRandomRasterSample in gdalinfo.py

2011-01-25 Thread K . -Michael Aye
On 2011-01-26 00:19:52 +0100, Christopher Barker said: I only see that in commented out code -- so that may be from when gdal was imported differently. Uff, sorry for the noise. It's late here, need to go to bed. But thanks for the help! Michael _

[gdal-dev] GDALGetRandomRasterSample in gdalinfo.py

2011-01-25 Thread K . -Michael Aye
Dear all, I am puzzled how this function works in the current gdalinfo.py from here: http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/gdalinfo.py because I can't see any 'import' that would make this function known? Could somebody lift the veil for me? ;) Best regards, Michael ___

[gdal-dev] Driver registering in Python required?

2010-05-06 Thread K . -Michael Aye
Dear all, is registering of drivers still (or at all) required in Python? In the API tutorial i see: import gdal from gdalconst import * dataset = gdal.Open( filename, GA_ReadOnly ) if dataset is None: ... I am just puzzled because the first sentence of the tutorial states it's require

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-05-06 Thread K . -Michael Aye
'm happy. Best regards, Michael On 2010-05-04 16:30:53 +0200, William Kyngesburye said: Huh, did Enthought update their numpy also? If not, I'd expect the sameproblems. On May 4, 2010, at 9:19 AM, K.-Michael Aye wrote: ahh, thank you very much! Thanks to your update using Numpy1.4.1 Isucces

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-05-04 Thread K . -Michael Aye
, at 9:19 AM, K.-Michael Aye wrote: ahh, thank you very much! Thanks to your update using Numpy1.4.1 Isuccessfully married your GDAL frameworks with EPD. and I lived happily ever after having all I needed.. (that is, untilthe next cool software comes along. ;) Have a great week! Best regards, Mich

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-05-04 Thread K . -Michael Aye
+0200, William Kyngesburye said: Thanks. I probably would have forgotten to check before building andpackaging GDAL 1.7.2 this weekend. On Apr 30, 2010, at 8:54 AM, K.-Michael Aye wrote: Hi William, Numpy1.4.1 has been released, just to let you know. *hint,hint* ;) Best regards and a nice

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-04-30 Thread K . -Michael Aye
Hi William, Numpy1.4.1 has been released, just to let you know. *hint,hint* ;) Best regards and a nice weekend! Michael ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-04-21 Thread K . -Michael Aye
On 2010-04-21 18:17:35 +0200, Christopher Barker said: William Kyngesburye wrote: The problem is in Enthought's python, for using the retracted numpy, and they need to update their numpy (which could be a while if they don't want to use RC versions). I'm afraid I can't support using numpy 1.

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-04-21 Thread K . -Michael Aye
On 2010-04-19 20:54:57 +0200, William Kyngesburye said: On Apr 19, 2010, at 1:27 PM, Christopher Barker wrote: William Kyngesburye wrote: If you need to use GDAL with some other python module that uses numpy, in the same script, or in the same session, this could still be a problem. yup --

[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-04-19 Thread K . -Michael Aye
GDAL python *should* be able to use a later version of numpy than it wasbuilt for, it's only the python side of the interface that it caresabout, but I don't know what be happening at compile time that mightlock it in to a specific version of numpy, and python can be picky. If you are includ

[gdal-dev] KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

2010-04-19 Thread K . -Michael Aye
Hi! I am using quite successfully KyngChaos' Frameworks for GDAL (Thank you, William!) with a custom Python install from python.org on OSX. This install already includes most of the stuff I need for my daily work (numpy,scipy,matplotlib). But sometimes I need something special like mayavi2 and

[gdal-dev] Re: VRT creation with Python

2010-03-26 Thread Michael Aye
Frank Warmerdam wrote: > > > There is no public GDAL API for modifying the sourcefilename of a VRT. > Can you not just create the VRT files programmatically by inserting the > filename in a template text file? > I can, but that's still more coding than with my idea of manipulating meta-data, b

[gdal-dev] VRT creation with Python

2010-03-23 Thread Michael Aye
Dear all, I have some, as of yet unpublished, PDS data I am reading via a well working simple vrt definition looking like this: FC1_2005-06-23T21.55.54.000Z_ID10_019407_F1.img 8704 2 2184 LSB which is saved as a FC1.vrt file. How can I programmatically opening many mor