1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
version(1.0);
baseDir = "c:/Program Files/LandSerf/data/landscriptExamples/";
vectMap = open(baseDir&"shapes.vec");
centroids = tocentroids(vectMap);
border = (info(vectMap,"e")-info(vectMap,"w"))*0.01;
edit(vectMap,"s",info(vectMap,"s")-border);
edit(vectMap,"n",info(vectMap,"n")+border);
edit(vectMap,"w",info(vectMap,"w")-border);
edit(vectMap,"e",info(vectMap,"e")+border);
vectorstyle("pointsize",0.1);
vectorstyle("showlabels","true");
vectorstyle("labelbackground","0 0 0 0");
vectorstyle("labelsize",28);
vectorstyle("labelposition","centre");
vectorstyle("linewidth",12);
vectorstyle("boundarycolour","0 0 0 50");
vectorstyle("polygonopacity",0.75);
draw(baseDir&"shapes.png","null","null",vectMap,centroids);
|