<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">OK. Thank you. Sounds very good.<br>I'll just use the bindings that come with FWTOOLS.<br>That is preferable.<br><br>Sorry to have the dunce cap on,<br>but I can't seem to figure out how to use the FWTOOLS Python bindings.<br>Could you point me to a doc that has a recipe for using them?<br><br>If I write import ogr or import osgeo into a python script,<br>I get an error if I don't copy gdal15.dll and geos_c_fw.dll <br>from C:\gdalwin32-1.5\bin to c:\program files\fwtools2.1.0\bin<br>or put C:\gdalwin32-1.5\bin in the path.<br><br>Best regards,<br>-Vince<br><br></div><hr id="stopSpelling">> Date: Thu, 14 Aug 2008 12:00:41 -0400<br>> From: fwtools-request@lists.maptools.org<br>> Subject: FWTools Digest, Vol 46, Issue 8<br>> To: fwtools@lists.maptools.org<br>> <br>> Send FWTools mailing list submissions to<br>>         fwtools@lists.maptools.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>         http://lists.maptools.org/mailman/listinfo/fwtools<br>> or, via email, send a message with subject or body 'help' to<br>>         fwtools-request@lists.maptools.org<br>> <br>> You can reach the person managing the list at<br>>         fwtools-owner@lists.maptools.org<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of FWTools digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>> 1. RE: Using Python bindings with latest version of FWTOOLS        -<br>> And Clip Vector Data (Vince Ulfig)<br>> 2. Re: RE: Using Python bindings with latest version of        FWTOOLS<br>> - And Clip Vector Data (Frank Warmerdam)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Thu, 14 Aug 2008 02:34:54 -0700<br>> From: "Vince Ulfig" <vulfig@hotmail.com><br>> Subject: [FWTools] RE: Using Python bindings with latest version of<br>>         FWTOOLS        - And Clip Vector Data<br>> To: <fwtools@lists.maptools.org><br>> Message-ID: <BAY120-DAV1028E28C58C0F54786881FC8720@phx.gbl><br>> Content-Type: text/plain; charset="us-ascii"<br>> <br>> > Hi Frank,<br>> > <br>> > I recently started using the GDAL / OGR utilities from FWTools and love<br>> > them. <br>> Thank you.<br>> <br>> > I installed the python bindings for GDAL from this page:<br>> > http://pypi.python.org/pypi/GDAL<br>> > <br>> > I found that I had to install gdalwin32-1.5 in addition to FWTools and add<br>> > C:\gdalwin32-1.5\bin to the path variable,<br>> > in order to get the python bindings to work.<br>> > I ran some code that attempts to import ogr<br>> > and use some of the objects,<br>> > and found that I could not import ogr<br>> > until I added the path described above.<br>> > <br>> > I then found that the only files in <br>> > C:\gdalwin32-1.5\bin <br>> > that were not included in<br>> > c:\program files\fwtools2.1.0\bin<br>> > were gdal15.dll and geos_c_fw.dll.<br>> > When I copied these files to<br>> > c:\program files\fwtools2.1.0\bin<br>> > and removed C:\gdalwin32-1.5\bin <br>> > from the path variable, I could still import ogr.<br>> > <br>> > Is this a reasonable method for using the python bindings for gdal?<br>> > Is it better to install both FWTOOLS and gdalwin32-1.5?<br>> > <br>> > When I had both in the path,<br>> > I put gdalwin32-1.5/bin in the path in front of FWTOOLS.<br>> > Does this make sense?<br>> > <br>> > <br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://lists.maptools.org/pipermail/fwtools/attachments/20080814/4ab23b42/attachment-0001.html<br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Thu, 14 Aug 2008 09:22:30 -0400<br>> From: "Frank Warmerdam" <warmerdam@pobox.com><br>> Subject: Re: [FWTools] RE: Using Python bindings with latest version<br>>         of        FWTOOLS - And Clip Vector Data<br>> To: vulfig@hotmail.com<br>> Cc: fwtools@lists.maptools.org<br>> Message-ID:<br>>         <931f8ea90808140622t452e843ao9645e48df28e1be5@mail.gmail.com><br>> Content-Type: text/plain; charset=ISO-8859-1<br>> <br>> Vince,<br>> <br>> FWTools already includes python bindings which you could use. If you<br>> want to use the pypi bindings then they depend on the standard GDAL<br>> binaries which you have found. It is possible to mix these standard<br>> DLLs into FWTools but there is some risk of conflicts. I would generally<br>> suggest you keep them separate.<br>> <br>> Best regards,<br>> <br>> On Thu, Aug 14, 2008 at 5:34 AM, Vince Ulfig <vulfig@hotmail.com> wrote:<br>> > Hi Frank,<br>> ><br>> > I recently started using the GDAL / OGR utilities from FWTools and love<br>> > them.<br>> > Thank you.<br>> ><br>> > I installed the python bindings for GDAL from this page:<br>> > http://pypi.python.org/pypi/GDAL<br>> ><br>> > I found that I had to install gdalwin32-1.5 in addition to FWTools and add<br>> > C:\gdalwin32-1.5\bin to the path variable,<br>> > in order to get the python bindings to work.<br>> > I ran some code that attempts to import ogr<br>> > and use some of the objects,<br>> > and found that I could not import ogr<br>> > until I added the path described above.<br>> ><br>> > I then found that the only files in<br>> > C:\gdalwin32-1.5\bin<br>> > that were not included in<br>> > c:\program files\fwtools2.1.0\bin<br>> > were gdal15.dll and geos_c_fw.dll.<br>> > When I copied these files to<br>> > c:\program files\fwtools2.1.0\bin<br>> > and removed C:\gdalwin32-1.5\bin<br>> > from the path variable, I could still import ogr.<br>> ><br>> > Is this a reasonable method for using the python bindings for gdal?<br>> > Is it better to install both FWTOOLS and gdalwin32-1.5?<br>> ><br>> > When I had both in the path,<br>> > I put gdalwin32-1.5/bin in the path in front of FWTOOLS.<br>> > Does this make sense?<br>> ><br>> > _______________________________________________<br>> > FWTools mailing list<br>> > FWTools@lists.maptools.org<br>> > http://lists.maptools.org/mailman/listinfo/fwtools<br>> > http://fwtools.maptools.org/<br>> ><br>> ><br>> <br>> <br>> <br>> -- <br>> ---------------------------------------+--------------------------------------<br>> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<br>> light and sound - activate the windows | http://pobox.com/~warmerdam<br>> and watch the world go round - Rush | Geospatial Programmer for Rent<br>> <br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> FWTools mailing list<br>> FWTools@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/fwtools<br>> <br>> <br>> End of FWTools Digest, Vol 46, Issue 8<br>> **************************************<br></body>
</html>