[gdal-dev] ReadAsArray with Windows 7

Frank Warmerdam warmerdam at pobox.com
Fri Oct 21 13:49:25 EDT 2011


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 shell
you should have a python interpreter available which will find
the GDAL/OGR Python bindings.  So you could do something like:

  python your.py

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
python bindings, or possibly a mismatch between the version of
Python he built for, and the version you are running.

(or something else...)

Best regards,

On Fri, Oct 21, 2011 at 10:36 AM, Discourse Maps <discoursemap at live.com> wrote:
> Sure.  Though I'm not too saavy with the open source programming.
> How do I go about acquiring and installing OSGeo4W binaries?
>
>> Date: Fri, 21 Oct 2011 10:14:39 -0700
>> Subject: Re: [gdal-dev] ReadAsArray with Windows 7
>> From: warmerdam at pobox.com
>> To: discoursemap at live.com
>> CC: gdal-dev at lists.osgeo.org
>>
>> On Fri, Oct 21, 2011 at 6:34 AM, Discourse Maps <discoursemap at live.com>
>> 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, Windows 7, and using
>> > 'ReadAsArray'.  Python crashes almost every time.
>> >
>> > Any help is most appreciated.
>>
>> Jimmy,
>>
>> It looks like the folks running into the problem were all using
>> Tamas' binaries. Would you be willing to see if you can reproduce
>> the problem with the OSGeo4W binaries? If so, please file a ticket
>> against GDAL with all the details and hopefully someone will be
>> able to dig into it.
>>
>> Best regards,
>> --
>>
>> ---------------------------------------+--------------------------------------
>> I set the clouds in motion - turn up   | Frank Warmerdam,
>> warmerdam at pobox.com
>> light and sound - activate the windows | http://pobox.com/~warmerdam
>> and watch the world go round - Rush    | Geospatial Software Developer
>



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer


More information about the gdal-dev mailing list