[Thuban-list] Python shapelib and OpenGl

Bernhard Reiter bernhard at intevation.de
Thu Dec 15 19:26:43 CET 2005


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


More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)