Hi there, I would to have some nice statistics on my legend. But it seems as I need to do some black magic with those code tex-map things. There are some nice things as \cavelength, \topoteam or this kind of grial called \legendcontent. They look as what I need. But I'm getting stuck (again). Could someone give a complete-but-simple code tex-map section to display: cavelength, cavedepth, exploteam, topoteam, cartoteam ? Why statistics topo-length on shows nothing on my maps? I can't get even survey team members printed on pdf :( Regards, Roman
I would to have some nice statistics on my legend. But it seems as I need to do some black magic with those code tex-map things. There are some nice things as \cavelength, \topoteam or this kind of grial called \legendcontent. They look as what I need. But I'm getting stuck (again).
It's not necessary to use code tex-map. Use statistics topo all statistics topo-length on etc. in your layout.
Why statistics topo-length on shows nothing on my maps? I can't get even survey team members printed on pdf :(
It works only if statistics topo is not off. It doesn't work if you import centreline from 3d or plt files. Martin
Hi, Still I can't get any statistics. Centerline data is not imported, but in therion's format There are my thconfig and .th files. Hope somebody will see what is wrong. Regards, Roman ##################### thconfig ################################ # thconfig template file # INPUT PART # We set source files here. source template_basic.th # LAYOUT PART # Anything between a layout/endlayout pair of lines is part # of the same layout. Layouts must have a name so we can call # them when needed. We can have as many layouts as needed. # In this example we have 2 layouts. We will use first one # for xvi image export to 1:1000 scale (default value: # 1:200 scale) layout xviexport #set output map's scale scale 1 1000 endlayout # We will use second one to set pdf map export layout normal # Scale used to draw. By default Therion uses 1:200 scale # We will use 1:1000 because it is what we used to export # centerline, so draws will be 1:1000 too. base-scale 1 1000 # Scale of output map. Relation between base-scale and # scale is used by Therion to set width of lines, etc. # To get true scale, be sure that printer does not use # any "fit on page" or similar options. scale 1 1000 # symbol set to use: UIS, ASF, CCNP, SKBB symbol-set UIS # This will set map's background color to 85% black color map-bg 85 # Wether to use transparency (on/off). When on, underlying # passages will be also visible (but dimmed). Default value # is "on" so we really don't need to set it here. transparency on # Opacity value is used when transparency is on. Default # value is 70, so underliying passages will be printed # 30% black opacity 70 # Map's header (title,legend, etc) position. # 0 0 => lower left corner of survey's "box" # 100 100 => upper right corner of survey's "box" # Third parameter are cardinal points assigned to header's # "box" nw => upper left corner, se => lower right corner # Possible values: n, s, e, w, ne, nw, se, sw. # "map-header 0 100 ne" means that upper left corner # of survey's box will coincide with upper right corner # of header's box # We want some distance between boxes, so we don't use 0 100, # but -20 100 (accepted range: -100 200) map-header -20 100 ne # Wether to use legend. (on/off/all) When on, only used # symbols are used on legend. all shows all symbols on # legend, used or not. Defaul value off legend on # Legend width default value is 14 cm legend-width 7 cm # Scale bar by default displays to-scale 100 m scale-bar 50 m # Map's language (used in automatically created texts, as # legend symbol names, etc) language en # We use comments to give some more information map-comment "City, State<br>UTM 30T X: 545988 Y: 4476879 Z: 468" statistics topo all statistics topo-length on # We want to have a grid under our survey grid bottom # grid size default value in X Y Z directions is 10 m grid-size 10 10 10 m # Now we will set some layout options that apply to atlas # size sets map size to be used on atlas. 15 x 20 fits well # on A4. So basically our atlas will be made in # 15 x 20 cm rectangles. size 15 20 cm # Set amount of overlapping (default 1 cm). 1-cm border # overlapping next "squares" will be used. Note this adds # to previos value "size" overlap 1 cm # page-setup sets paper size, page size, # page margins (left and upper) and units. In this example # paper size is A4 (21 x 29.7), page size is 17 x 28.2, # left margin is 3, upper margin is 1.5 and units are # centimeters. # To get good margins you should be aware that: # page width (17) = size (15) + overlap (1+1) # paper width (21) = page width (17) + left-rigth margins (3+ ) page-setup 21 29.7 17 28.2 3 1.5 cm endlayout # EXPORT PART # here we will set what we want to get: xvi images, map, # atlas, 3D model or centerline data in SQL file. # centerline in plan projection, format xvi using layout # xviexport. File will be called cave_plan.xvi export map -proj plan -fmt xvi -layout xviexport -o cave_plan.xvi # The same but now projection is extended export map -proj extended -fmt xvi -layout xviexport -o cave_extended.xvi # Final map in plan projection, using layout normal. It will # be called cave_plan.pdf. No need to use -fmt pdf to get # a pdf document export map -proj plan -layout normal -o cave_plan.pdf # The same but projection is now extended export map -proj extended -layout normal -o cave_extended.pdf # Now the atlases export atlas -proj plan -layout normal -o atlas_plan.pdf export atlas -proj extended -layout normal -o atlas_extended.pdf # 3D model. therion is the default format. It can be seen # in 3D viewer window. Other formats: 3dmf, wrml. You'll # need adequate software to see them. export model -fmt therion -o 3Dmodel.thm # Database. Creates an SQL file with centerline data. export database -o cave.sql ############# end thconfig ####################################### ############ template_basic.th ################################### # template_basic.th -.th template file- # FAST DESCRIPTION # This file contains centerline data. We need to define some # things: units, instruments, declination, etc, that apply. # This is done simply writing some instructions using keywords # as "units" "compass" "clino", etc. A dozen lines could work # perfectly for a simple cave like this. # Lines such this, begginning with "#" are comments. Therion # will ignore them. They are used to explain what each line # is for. Also, they can be used to activate or disable lines. # Write "#" at the beginning of a line to disable it. Remove # it to get the line active again # OK? Go... # SURVEY # Anything between a survey/endsurvey pair of lines is part of # the same survey. A survey can have a lot of things into it. # First of all, other surveys. So each survey must have # a name. This leads to a hierarchyc structure wich is useful # to add new passages or new caves. # The -title <Title> option sets <Title> to be printed on # final .pdf map # For now, in this simple case, the only important thing is # centerline. survey template -title "Example Cave" # CENTERLINE # Anything between a centerline/endcenterline pair of lines # apply to accompanying survey readings. So if you have # two teams with different styles, you should create two # centerline objects. This is, two centerline/endcenterline # pair of lines, each with different data definition lines # and respective survey readings. centerline # DATE # Format: YYYY.MM.DD # Interval (years) YYYY.MM.DD - YYYY.MM.DD # Want more precision? YYYY.MM.DD@HH.MM.SS.SS date 2000.10.15 # SURVEY TEAM MEMBERS # Add as many similar lines as you need team "Mack Theknife" team "Juxe Euskalduna" # DECLINATION # For a small cave like this, magnetic declination # can be specified on centerline itself. # You can also set two declination values for two # different years and get al centerline data corrected # automatically for given interval. But for this to work # it must be specified in a survey, not here in centerline. # So we use the simple method for now. # degrees = 360º, grades = 400º declination -3 deg # UNITS # Default units are 360 degrees and meters # If these are your units, you don't need to do anything # here. If you use other units, uncomment appropiate # line(s) # You use 400 grades compass & clino #units compass clino grad # Compass = 400º, clino = 360º # This IS the case with this example data, but we will # process it as both 360º for easier use as template. #units compass grad # Compass = 360º, clino = 400º #units clino grad # (grump) Where are my old good yards? #units lenght yards # VERTICALS # This line identifies as verticals readings of 90º and # -90º (so no clino correction will be done) # If clino units are set as 400 grades, readings of 100º # and -100º will be identified as verticals. # If you write UP and DOWN for verticals instead, you # don't need this line. infer plumbs on # DATA STYLE-AND-ORDER # If you use compass, clino and tape, set "normal" style. # If you have a topofil set "topofil" instead. # If you are a diver you can use "diving" # Keywords order must be the same that data order. # Adapt line order as needed. If you take inverse # readings you can add keywords as "backcompass". If you # are a diver you can use keywords as "depth". See # thbook.pdf for more information about keywords that # apply data normal from to length compass clino left right up down # Alternative settings # If you dont take LRUD data, comment previous line and # uncomment this: #data normal from to length compass clino # Use this if lenght is last reading onyour notes #data normal from to compass clino length ####### YOUR CENTERLINE DATA HERE ####### # In this example station 0 has fixed UTM coordinates. # It could be any other station, even more than one. The # more fixed points, the better. Note also that station 0 # is not the entrance, but a surface, GPS-taken point, # so we use flags surface/flags not surface to point it # out. Surface shots are not computed for cave statistics. fix 0 546413 4774838 233 flags surface 0 1 7.60 360.00 -3.00 0.50 0.80 0.80 1.00 flags not surface 1 2 7.00 359.00 -31.00 0.30 0.80 1.20 0.80 2 3 18.00 42.00 -2.00 1.20 1.80 1.55 0.25 3 4 6.00 36.00 -17.00 1.25 2.50 2.20 0.80 4 5 6.50 92.00 -6.00 1.50 3.00 0.80 1.20 5 6 8.70 92.00 2.00 0.50 4.00 3.00 1.00 6 7 9.60 31.00 -4.00 1.00 2.00 4.00 1.00 7 8 13.30 345.00 -2.00 1.50 3.50 3.00 1.00 8 9 7.30 56.00 10.00 0.50 1.50 2.00 1.00 9 10 3.10 45.00 25.00 1.00 2.50 1.00 1.00 10 11 9.30 139.00 -2.00 0.20 0.40 2.00 1.00 11 12 9.90 36.00 -2.00 1.80 2.00 0.80 0.00 12 13 5.70 32.00 0.00 1.00 1.00 0.50 0.80 13 14 3.00 3.00 -3.00 2.50 0.50 1.20 0.80 14 15 3.80 44.00 -7.00 4.00 3.00 3.00 1.00 15 16 21.30 38.00 -4.00 1.00 2.00 4.00 1.00 16 17 5.90 130.00 12.00 3.00 5.00 4.00 1.00 17 18 5.90 34.00 18.00 1.00 3.00 2.00 1.00 18 19 8.10 380.00 2.00 1.50 0.75 0.45 0.40 19 20 11.00 34.00 -2.00 1.50 0.75 0.40 0.40 20 21 4.90 360.00 -8.00 3.00 3.00 1.05 0.80 21 22 3.50 321.00 9.00 1.50 0.20 1.05 0.80 22 23 3.30 23.00 6.00 0.25 0.35 0.25 0.25 23 24 10.20 73.00 2.00 0.25 1.00 2.20 0.80 24 25 6.00 34.00 -3.00 5.00 0.50 1.20 0.80 25 26 4.90 40.00 -3.00 1.00 3.00 0.25 0.25 26 27 12.60 73.00 -2.00 0.75 3.50 3.20 0.80 27 28 6.40 93.00 -3.00 4.00 2.00 1.20 0.80 28 29 10.60 36.00 8.00 0.25 2.50 2.20 2.00 29 30 9.70 20.00 2.00 0.25 3.00 1.50 1.00 30 31 7.00 96.00 4.00 1.00 2.00 1.00 1.00 31 32 2.80 50.00 29.00 0.40 0.50 0.40 0.40 32 33 4.40 116.00 3.00 3.00 6.00 1.40 0.80 # Stations 34 to 40 are on 2nd passage, wich we would to # extend to reverse direction extend reverse 34 35 8.50 20.00 -5.00 1.00 2.00 1.25 0.25 35 36 3.70 45.00 4.00 0.80 2.00 0.25 0.25 36 37 3.60 51.00 13.00 0.25 0.25 0.25 0.15 37 38 2.00 41.00 16.00 0.00 2.50 2.00 0.20 38 39 4.60 115.00 20.00 1.50 1.00 2.00 1.00 39 40 4.00 393.00 -32.00 1.20 2.00 1.00 0.80 40 2 3.80 133.00 15.00 0.30 0.50 1.20 0.80 # Now we could write "extend normal" to get following # stations extended as usual. # But the only remainig stations are for two very short # shots. We think they don't apport nothing and are only # visually annoying. # So we want them ignored. They will not be on extended # centerline. extend ignore 41 10 3.10 159.00 6.00 1.00 2.50 1.20 0.80 11 42 4.00 137.00 0.00 0.20 0.80 2.50 1.00 ####### END OF DATA ################### endcenterline # THE DRAW # It is possible to write here draw data. However, usually # they are keep on a .th2 file. # You create .th2 files and its data by drawing on map # editor window. This line calls .th2 file so the effect # is the same that would be achieved writing draw data # directly on this file. # For now it's commented since we have not create it yet. # Uncomment it after tou create it. # Of course you should edit the name to fit your needs. #input template_basic.th2 # With centerline and draw data, work is done endsurvey ####################end template_basic.th #####################
Roman, I'm not sure, but you are generating only xvi data, doesn't you. And legend doesn't work in xvi. Martin --
Roman Muñoz wrote:
Hi, Still I can't get any statistics. Centerline data is not imported, but in therion's format
Oops, now when you provided sources - it is clear to me. You are doing nothing wrong - currently therion export only statistics from centerline objects associated with scraps. And you have no scraps => no statistics. This item is in the TODO.S file (now completely in English :) + add statistics of surveys inserted into maps (create datamap structure when a survey map is created) So solution: 1. Put this on the top of TODO list - it should not take a long time to implement, I can hopefully do it today evening. 2. I would also add new configuration command to layout: statistics survey <survey-name> This will enable user to specify directly the survey, from which statistics will be taken. Example - you want have a map of just discovered passage, but in the header, you would like to have length of entire cave. So you will simply write: select new-discovery.entire-cave export map -layou-statistics survey entire-cave This should help also to correct therion, when he will wrongly associate centerline objects to scraps. Regards, S. P.S. If somebody is willing to modify order of items in my TODO.S file, feel free to ask for it :)
On Fri, 11 Mar 2005 09:21:14 +0100 Stacho Mudrak <s.m@speleo.sk> wrote:
You are doing nothing wrong - currently therion export only statistics from centerline objects associated with scraps. And you have no scraps => no statistics. This item is in the TODO.S file (now completely in English :)
Aha. I was suspecting it since last nigth I was able to get statistics when using .th2 file. Once confirmed, I can perfectly live with it. I think date displayed in pdf is only to display year, not month nor day. Rigth? BTW a) do you think that things are well explained in these template files? As you can guess, I'm plannig to include them on my writing. b) what is the meaning of these S, SM, MS, etc suffixes added to TODO files? Stacho-Martin?
Roman Muñoz wrote:
I think date displayed in pdf is only to display year, not month nor day. Rigth?
Yes - date and number formats are also in TODO list. But may be very soon, we will add some meta-language (simmilar to HTML) to generate simple map headers. A lot of users (including me :) ) have problems with TeX constructs. This will allow user to define custom header very easily. But I think - we should release 0.3.7 first (next week). There is already a lot of changes and there is no windows installer for them.
BTW a) do you think that things are well explained in these template files? As you can guess, I'm plannig to include them on my writing.
I like it very much - even I did not have time to study it too much (currently I have a lot of work :) , I will take them home and study it there - then I can write you some comments). When finished, it will be great starting point for new users. Pretty good job!
b) what is the meaning of these S, SM, MS, etc suffixes added to TODO files? Stacho-Martin?
Exactly. SM means what I (S) am asking Martin (M) to do :) And vice-versa. S.
Roman Muñoz wrote: The explanation is really useful -- e.g. map header alignment which makes often troubles. Only one remark: therion uses RGB color model, so following means 85% white. Cheers, Martin
# This will set map's background color to 85% black
color map-bg 85
participants (4)
-
Martin Budaj -
Martin Sluka -
Roman Muñoz -
Stacho Mudrak