encoding utf-8
source bluewater.th
source .\surface\surface_10m.th
# Change name to the main therion file
#to do
# change sand fill
# http://therion.speleo.sk/wiki/doku.php/tbe:wiki6
#REDFINE LEGEND & OTHER OUTPUT ELEMENT TEXT
#==========================================
#The text statements below can only be read in a th-config file OUTSIDE of a layout block.
# As this file is called up by an 'input' statement in our standard th-config files placing
# it here allows us to always have it without putting it in EVERY thconfig file
#text en "area sand" "darat"
#text en "climb" "umuli"
#or agpangatu
#text en "climb down" "umulog"
#text en "swimming" "aglangoy"
#text en "cascade" "agayus a danum"
#text en "limit of exploration" "patingga ti panakarukud"
#text en "altitude" "kinangatu"
text en "line wall" "diding"
#text en "column" "adigi"
text en "line border" "alad"
#text en "area water" "danum"
#text en "height above water level" "kinangatu nga labes ti rukud ti danum"
#text en "line floor-step" "floor step
pagbaddekan"
#text en "clay flowstone" "napitak a bato"
#text en "pebbles" "babassit a bato"
#text en "pillar" "dadakkel nga adigi"
#text en "flowstone" "kasla agay-ayus a bato"
#text en "sump" "napitak a nadanum"
#text en "entrance series" "agsasarunu nga pagserkan"
#text en "passage approximate height" "tantiya ti kinangatu ti pagnaan"
#text en "approximate width" "tantiya ti kinalawa"
#text en "water flow" "ayus ti danum"
#text en "chimney" "abut iti ngatu nga paset"
#input text_Substitution.txt
layout test
scale 1 500
base-scale 1 500
legend on
endlayout
layout local
scale 1 500
base-scale 1 500
scale-bar 100 m
#Foreground color - turn on altitdude to see various heights
colour map-fg [80 80 80]
#color map-fg altitude
#colour map-bg [70 90 70]
language en
statistics topo-length off
statistics topo all
statistics explo-length off
map-comment "Baggao, Cagayan
18° 1'15.52 N
121°59'53.82 E
Sierra Madre Outdoor Club
Bristol Exploration Club
Balincaguin Conservancy
Gaia Exploration Club
BCRA Grade 5D
Data: www.cave-registry.org.uk/svn/Philippines/
"
#map-image 50 50 ne images\sitckers-type4.jpg
#map-image 50 35 nw images\BertieBat.png
#map-image 80 35 nw images\bc_logo_2266xp.png
#map-image 90 15 nw images\CreativeCommonsShareAlike.png
doc-author "Henry Bennett"
doc-keywords "Bluewater Cave Baggao Philippines"
doc-subject "Survey of Bluewater Cave 2014"
doc-title "Bluewater Cave Survey Bristol Exploration Club 2014"
debug off
transparency on
opacity 80
map-header 0 100 nw
#overlap 10 cm
symbol-set BCRA
symbol-hide group cave-centreline
symbol-assign line slope SKBB
legend on
legend-columns 4
legend-width 45 cm
#colour-legend on
grid bottom
grid-coords border
#sketches on
###################################################################
#
# MM MM EEEEEEE TTTTTTT AAA PPPPPP OOOOO SSSSS TTTTTTT
# MMM MMM EE TTT AAAAA PP PP OO OO SS TTT
# MM MM MM EEEEE TTT AA AA PPPPPP OO OO SSSSS TTT
# MM MM EE TTT AAAAAAA PP OO OO SS TTT
# MM MM EEEEEEE TTT AA AA PP OOOO0 SSSSS TTT
#
###################################################################
code metapost
input "C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6/code/_grid_x_hair_to_continuos_line"
input "C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6//code/_scalebar_large_format"
input "C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6//code/_legend_large_format"
# code to change the colour of the water
def a_water (expr p) =
T:=identity;
thfill p withcolor (0.1, 0.2, 0.8);
enddef;
# change centre line to continuous
def l_survey_cave (expr p) =
draw p withpen PenD withcolor (0.6, 0.6, 0.6);
enddef;
# Re-define North arrow to make it bigger
def s_northarrow (expr rot) =
T:=identity scaled 0.7 rotated -rot;
thdraw (-1cm,-1cm)--(0,5cm)--(1cm,-1cm)--(0,0cm)--cycle;
thfill (-1cm,-1cm)--(0,5cm)--(0,0cm)--cycle;
enddef;
#change the size of the default fonts
#fonts_setup(,,,,);
#origional fonts_setup(6,8,10,14,20);
fonts_setup(6,8,30,54,80);
endcode
#################################################################
#
# TTTTTTT EEEEEEE XX XX MM MM AAA PPPPPP
# TTT EE XX XX MMM MMM AAAAA PP PP
# TTT EEEEE XXXX _____ MM MM MM AA AA PPPPPP
# TTT EE XX XX MM MM AAAAAAA PP
# TTT EEEEEEE XX XX MM MM AA AA PP
#
#################################################################
code tex-map
\copyrights={Copyleft Creative Commons ShareAlike}
\cavename={Blue Water}
\def\loadpicture#1{\pdfximage{#1}\pdfrefximage\pdflastximage}
\def\maplayout{
\legendbox{0}{100}{NW}{
\legendwidth 35 cm
\the\legendcontent
}
\legendbox{40}{50}{NW}{
\legendwidth 65 cm
\legendtextsize={\size[42]}
\hsize=\legendwidth
\input th_legend
}
# \legendbox{0} {100} {S} {\loadpicture{C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6/images/sitckers-type4.jpg}} %%% pdf, png, jpg supported
\legendbox{40} {5} {nw} {\loadpicture{C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6/images/Logo_BEC_1250.png}}
\legendbox{55} {5} {nw} {\loadpicture{C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6/images/Logo_BC_1250.png}}
\legendbox{65} {5} {nw} {\loadpicture{C:/Users/Henry/Documents/2014/Philippines/surveying/Registry Repository/Project/bluewater-v6/images/Logo_SMOC_1250.png}}
}
#http://therion.speleo.sk/wiki/doku.php/faq#how_to_change_the_size_of_title_font_on_map
\legendcontent={%
\hsize=\legendwidth
\ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi
\edef\tmp{\the\cavename} \ifx\tmp\empty \else
{\size[180]\the\cavename} \vskip6cm
\fi
\ifscalebar\scalebar\vskip1cm\fi
{\rightskip=0pt plus 3em\parskip=3bp
\edef\tmp{\the\comment} \ifx\tmp\empty \else
{\size[44]\the\comment} \par\medskip
\fi
\everypar{\hangindent=2em\hangafter=1}
\edef\tmp{\the\cavelength} \ifx\tmp\empty \else
{\size[44]\si\the\cavelengthtitle: \ss\the\cavelength\par}
\fi
\edef\tmp{\the\cavedepth} \ifx\tmp\empty \else
{\size[44]\si\the\cavedepthtitle: \ss\the\cavedepth\par}
\fi
\edef\tmp{\the\exploteam} \ifx\tmp\empty \else
{\size[44]\si\the\explotitle:
\ss\the\exploteam\quad\si\the\explodate\par}
\fi
\edef\tmp{\the\topoteam} \ifx\tmp\empty \else
{\size[44]\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par}
\fi
\edef\tmp{\the\cartoteam} \ifx\tmp\empty \else
{\size[44]\si\the\cartotitle:
\ss\the\cartoteam\quad\si\the\cartodate\par}
\fi
\edef\tmp{\the\copyrights} \ifx\tmp\empty \else
{\size[44]\ss\the\copyrights\par}
\fi
}
}
endcode #end of TeX code
endlayout
#Surveys to output
#-----------------
#Produces plan of cave, on a single sheet
#export map -proj plan -layout test -o .\output\bluewater-map.pdf
export map -proj plan -layout local -o .\output\bluewater-map.pdf
#export atlas -proj plan -layout local -o .\output\bluewater-atlas.pdf
#export model -fmt kml -o .\output\bluewater.kml
export map -fmt kml -proj plan -layout local -o .\output\bluewater.kml
#export map -proj extended -layout local -o .\output\bluewater-elevation.pdf
#export model -fmt survex -o .\output\bluewater-survex.3d
#Survex file showing centre line only
#export model -o .\output\bluewater.lox -enable surface
#3d therion model to be viewed in the therion viewer
#export map -proj plan -o .\output\bluewater_Walls.3d
#Survex file showing walls only