Translating Shape Data to the Screen

Bernhard Herzog bh at intevation.de
Thu Apr 21 20:26:53 CEST 2005


Frederick C.Lee <fclee at highstream.net> writes:

[...]
>  I need to know which
> 	Thuban module actually translates the ShapLib coordinates into
> 	on-screen coordinates.
[...]
> Which module actually does this?

There are several places in the code, depending on which aspect of this
translation you need.  Most of the code is in Thuban/UI/renderer.py and
Thuban/UI/baserenderer.py.  For shapefiles in particular, there's also
some C++ code in libraries/thuban/wxproj.cpp that reads the data from
the shapefiles, transforms it and passes it to wxWidgets.

> Also, any coordination code (and significance) between data from the
> .dbf with .shp would be truly appreciated.

Not sure what you're after here exactly.  The code for the
classifications is in the renderers mentioned above and in
Thuban/Model/classification.py.  Shapefile specific code is in
Thuban/Model/data.py which provides some abstraction on top of shapelib.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                           http://skencil.org/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-devel mailing list

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