Matt,<br><br>Thank you, installing gdal-python fixed my problem. I just have to figure out how to deal with ECW ad MrSID formats in OSGeo4W...<br><br>Best regards,<br>Aleksey<br><br><div class="gmail_quote">On Tue, Oct 20, 2009 at 12:33 PM, Matt Wilkie <span dir="ltr"><<a href="mailto:matt.wilkie@gov.yk.ca">matt.wilkie@gov.yk.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Aleksey,<br>
<br>
With osgeo4w as Ivan noted you need to install the gdal-python package. O4w doesn't register it's python on the windows registry, so unless you run your .py script from inside the o4w shell it won't find the right python either.<br>
<br>
There are a number of python scripts in C:\Osgeo4w\bin\ which you can use as a model for your own to get started.<br>
<br>
cheers,<br>
<br>
matt wilkie<br>
--------------------------------------------<br>
Geomatics Analyst<br>
Information Management and Technology<br>
Yukon Department of Environment<br>
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9<br>
867-667-8133 Tel * 867-393-7003 Fax<br>
<a href="http://environmentyukon.gov.yk.ca/geomatics/" target="_blank">http://environmentyukon.gov.yk.ca/geomatics/</a><br>
-------------------------------------------- <br><div><div></div><div class="h5">
<br>
<br>
Aleksey Naumov wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear GDAL users,<br>
<br>
My apologies if this is a repeated question, I searched the mail acrhives and found a few discussions on this subject, but no resolution, AFAIK. I may have overlooked a good thread, would appreciate a link.<br>
<br>
My problem is being able to do scripting with GDAL using Python 2.5 (this version is important because of integration/compatibility with a number of other packages, mainly IPython), and I need to be able to do it on Windows. I attempted a few approaches, but could not figure out how to get all the pieces to work together:<br>
- FWTools 2.4.5; however it comes with Python 2.3, an older version<br>
- OSGEO4W<br>
- Went through the Express setup and chose GDAL (+ GRASS, QGIS).It installed Python 2.5.2; however on "import gdal" I get error "No module named gdal".<br>
- I looked through the Advanced setup and tried it a few times with various options related to GDAL, however was not able to get it to work. Are there specific options that should be enabled to make GDAL/Python scripting possible in OSGEO4W?<br>
- Tried to "easy_install gdal", this finds GDAL 1.6.1 and puts a suitable *.egg into C:\Python25\Lib\site-packages. But when I try to "import gdal" I get the error stating that gdal16.dll was not found.<br>
<br>
Is there a way to achieve this on Windows? Do I need to compile GDAL on my windows box; if so, should I be using Cygwin or try to download MS VC++?<br>
<br>
Thank you<br>
<br>
Aleksey<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
</div></div></blockquote></div><br>