Thuban Extensions for measuring distance, area and making selections based on user drawn shapes
Barry Windridge
bwindridge at gmail.com
Mon Aug 7 00:46:37 CEST 2006
Hi
There are 5 Thuban extensions attached to this email:
ruler.py measures distances and displays the distance in the status
bar for user drawn lines
area.py measures area and perimeter and displays this data in the
status bar for user drawn polygons
selectByRectangle.py will select features completely contained within
a user drawn rectangle
selectByCircle.py will select features completely contained within a
user drawn circle
selectByPolygon.py will select features completely contained within a
user drawn polygon
BW_Utilities.py is used by the ruler and selectByPolygon tools.
The following Thuban files (attached) have been modified for use with
the above tools:
mainwindow.py
view.py
viewport.py
The changes are documented with comments commencing with: # BW ..
The changes fall into two categories:
1) The existing Thuban files create a 'drag' environment. The changes
allow a tool to utilise a 'draw' environment instead. A tool can use
the existing drag environment (default) or the 'draw' environment.
2) The status bar has been divided into two sections - the right hand
section is used to display coordinates of the mouse when it is over
the map window and the left hand section is used to display status
text. The set up of the status bar has also been changed slightly to
facilitate modification by tools - for example to allow a tool to
create a third section on the tool bar.
Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: area.py
Type: text/x-python
Size: 4179 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/area.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruler.py
Type: text/x-python
Size: 3540 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/ruler.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selectByRectangle.py
Type: text/x-python
Size: 7742 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/selectByRectangle.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selectByCircle.py
Type: text/x-python
Size: 9735 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/selectByCircle.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selectByPolygon.py
Type: text/x-python
Size: 9333 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/selectByPolygon.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BW_Utilities.py
Type: text/x-python
Size: 3946 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/BW_Utilities.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainwindow.py
Type: text/x-python
Size: 54215 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/mainwindow.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view.py
Type: text/x-python
Size: 17064 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/view.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: viewport.py
Type: text/x-python
Size: 36173 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060807/164d2cfd/viewport.py
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)