From ilgenio at gmail.com Thu Dec 15 15:41:57 2005 From: ilgenio at gmail.com (Marco) Date: Thu, 15 Dec 2005 15:41:57 +0100 Subject: [Thuban-list] Python shapelib and OpenGl Message-ID: <6f87c3640512150641q3a9e0c33u@mail.gmail.com> This is the first email to a mailing lisy and I want to great you all. I need to put text in OpenGl in a Python-PyGtk application. This text must be in Autocad fonts, then, if I understood correctly, in shp or shx format. I found your python shape library. My question is: it's good for my purpose? I'm thinking to use this library and use their output for making OpenGl lines. Thank you very much. I'm sorry if this mail is so specific and a lot of you aren't interesting about it. Good evening! Marco Bonifazi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20051215/f7061ccc/attachment.html From bernhard at intevation.de Thu Dec 15 19:26:43 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 15 Dec 2005 19:26:43 +0100 Subject: [Thuban-list] Python shapelib and OpenGl In-Reply-To: <6f87c3640512150641q3a9e0c33u@mail.gmail.com> References: <6f87c3640512150641q3a9e0c33u@mail.gmail.com> Message-ID: <20051215182643.GI30961@intevation.de> Hi Marco, On Thu, Dec 15, 2005 at 03:41:57PM +0100, Marco wrote: > I need to put text in OpenGl in a Python-PyGtk application. > This text must be in Autocad fonts, then, if I understood correctly, > in shp or shx format. > I found your python shape library. you are refering to http://ftp.intevation.de/users/bh/pyshapelib/ ... It is a python wrapper around the shapelib C library which can be use to read and write shapefiles. (http://shapelib.maptools.org/) > My question is: it's good for my purpose? > I'm thinking to use this library and use their output for making > OpenGl lines. If you need to read .shp and .shx files in python, you can use the pyshapelib. Another possibility to do this would be the ogr part of python-gdal. Of course you can use the read data to plot the lines with any plotting technique you have. Best, Bernhard -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://www.intevation.de/pipermail/thuban-list/attachments/20051215/74447e3e/attachment.bin