[gdal-dev] installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Feb 18 00:08:57 EST 2010


ytrapaet,

gdal_translate is an executable program. You can use it directly from the
command line. Refer to http://www.gdal.org/gdal_utilities.html for python
scripts and other programs. Python scripts are indicated by .py extension.

On Thu, Feb 18, 2010 at 10:29 AM, anotherObject <ytrapaet at hotmail.com>wrote:

>
> Hello, i am new to using GDAL, from what I've looked into it seems great. I
> am using pythonwin to interact with GDAL.
>
> For installation, I followed the instructions here:
> http://www.gis.usu.edu/~chrisg/python/2009/install.html<http://www.gis.usu.edu/%7Echrisg/python/2009/install.html>(installing GDAL
> manually). All my windows system variables are identical to these
> instructions.
>
> I am now able to use GDAL in pythonwin - except i am unable to access the
> GDAL utilities (in my first task of utilizing GDAL, thei am in need  of the
> gdal_translate).
>
> If i can import the GDAL libraries, but cannot access the gdal_translate,
> does this indicate any specific problem? I am using pythonwin 2.5 and gdal
> 1.6.
>
> here is what happens in my pythonwin interactive window:
>
> >>> from osgeo import gdal
> >>> gdal
> <module 'osgeo.gdal' from 'C:\Python25\lib\site-packages\osgeo\gdal.pyc'>
> >>> gdal_translate
> Traceback (most recent call last):
>  File "<interactive input>", line 1, in <module>
> NameError: name 'gdal_translate' is not defined
> >>>
>
>
> thanks so much for any help on this, i would love to get moving with
> actually learning GDAL rather than setting it up!
> --
> View this message in context:
> http://n2.nabble.com/installing-GDAL-for-pythonwin-can-import-and-use-gdal-but-not-gdal-translate-tp4590165p4590165.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.241582N 80.142635E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100218/11ced07a/attachment.html


More information about the gdal-dev mailing list