1 |
Draw Shape Extension for Thuban |
2 |
=============================== |
3 |
|
4 |
|
5 |
*** Warning: *** |
6 |
|
7 |
This extension is very experimental and may corrupt your data. Use at |
8 |
your own peril. |
9 |
|
10 |
The installation instructions here are very brief to make it more |
11 |
likely that people who use it know what they're doing. |
12 |
|
13 |
|
14 |
|
15 |
Summary |
16 |
------- |
17 |
|
18 |
This extension for Thuban allows you do add shapes to shapefiles. |
19 |
|
20 |
|
21 |
|
22 |
Installation |
23 |
------------ |
24 |
|
25 |
1. Apply the patch in patch.diff |
26 |
|
27 |
2. Put the drawshape.py somewhere where you can import it from |
28 |
~/.thuban/thubanstart.py and add the appropriate import statement to |
29 |
thuban/thubanstart.py |
30 |
|
31 |
|
32 |
Usage |
33 |
----- |
34 |
|
35 |
The extension adds a new icon to the toolbar. This icon is the same as |
36 |
the one for the identify tool because there wasn't time to create a new |
37 |
one :) |
38 |
|
39 |
To add a shape, select the layer you want to add to, activate the tool |
40 |
and draw the shape by clicking on the map where the vertices should be |
41 |
with the left mouse button. When done, click the right button and the |
42 |
shape will be added to the shapefile with a set of default attributes |
43 |
(zeros and empty strings). |
44 |
|
45 |
The layer must be a layer displaying a shapefile with polygons (arcs and |
46 |
points are not supported) and the associated table must be a real dbf |
47 |
file and not e.g. a joined table. |