Correct me if I'm wrong (I'm not a Windows user), but FWTools may use the old python bindings. That is:
import gdal; instead of from osgeo import gdal; So, from my point of view, 2 fast solutions are: - Use OSGeo4W instead of FWTools, at least for gdal2wktraster.py execution ( http://osgeo4w.osgeo.org/) - "Hack" gdal2wktraster code using try - except: try: from osgeo import gdal except ImportError: import gdal On Mon, Feb 1, 2010 at 11:06 AM, mukesh karanwal <[email protected]>wrote: > Yeah, I had gone through this article and installed FW Tools still the > problem remains the same!! > do i need to change the system path and Gdal_Data variables again? > > > --- On *Mon, 2/1/10, Jorge Arévalo <[email protected]>* wrote: > > > From: Jorge Arévalo <[email protected]> > Subject: Re: [postgis-users] Error Using WKTRASTER! > To: "PostGIS Users Discussion" <[email protected]> > Date: Monday, February 1, 2010, 12:33 PM > > > On Mon, Feb 1, 2010 at 6:49 AM, mukesh karanwal > <[email protected]<http://us.mc459.mail.yahoo.com/mc/[email protected]> > > wrote: > >> Hi, >> >> I am trying to load raster data (Goetiff file) using "wktRaster" with the >> following command: >> >> *C:\Program Files\..\..>gdal2wktraster.py -r utmfile.tif -t utmtable -o >> utmfile.sql* >> As i execute this command from command prompt, it gives the following >> error: >> >> *File "C:\Program Files\..\..>gdal2wktraster.py" , line 32, in <module>* >> * from osgeo import gdal* >> * import error: no module named osgeo* >> >> I am having Python 2.5 with >> system path: C:\gdalwin32-1.6\bin >> GDAL_DATA: C:\gdalwin32-1.6\data >> >> how can i get rid of this error and store geotiff file in postgresql ? >> >> >> With Regards, >> Mukesh >> >> > Hi Mukesh, > > Probably, the solution to your problem is here: > > http://lists.osgeo.org/pipermail/gdal-dev/2009-December/022916.html > > Best regards, > Jorge > > >> >> _______________________________________________ >> postgis-users mailing list >> [email protected]<http://us.mc459.mail.yahoo.com/mc/[email protected]> >> http://postgis.refractions.net/mailman/listinfo/postgis-users >> >> > > -----Inline Attachment Follows----- > > > _______________________________________________ > postgis-users mailing list > [email protected]<http://us.mc459.mail.yahoo.com/mc/[email protected]> > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > > _______________________________________________ > postgis-users mailing list > [email protected] > http://postgis.refractions.net/mailman/listinfo/postgis-users > >
_______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
