encoding  utf-8
source Charterhouse.th
# Change name to the main therion file

#Surface.Charterhouse needs to be present for generation of 3d grid (comment out unselect)
#But unselected for lox, otherwise you get 2 grids
#unselect Surface.Charterhouse

select TyningsGSM@TyningsGS.Charterhouse
select LadderExtensionM@GB.Charterhouse
select CrickmayM@Crickmay.GB.Charterhouse
select up08M@up08.charter.Charterhouse
select 2009M@2009.charter.Charterhouse
select lowerM@lower.charter.Charterhouse


#select ReadsGrotto_map@ReadsGrotto.Charterhouse

#Surveys to output
#-----------------

#Produces plan of cave, on a single sheet
export map -proj plan -layout local -o Charterhouse.pdf
#export map -proj plan -layout localnolabels -o Charterhouse_NoLabels.pdf
#export map -proj plan -layout localnolabelsnotrans -o Charterhouse_NoLabels_NoTrans.pdf
#export map -proj plan -layout localnotrans -o Charterhouse_NoTrans.pdf
#export map -proj plan -fmt svg -layout local -o Charterhouse.svg
#export map -proj plan -layout local -o CharterhouseOverview.pdf

#export map -proj plan -fmt xhtml -layout local -o Charterhouse.xhtml

#export map -proj plan -fmt kml -layout googlemaps -o Charterhouse.kml

#export model -fmt survex -o Charterhouseth.3d
#Survex file showing centre line only

#export model -o Charterhouse.lox
#3d therion model to be viewed in the therion viewer

#export map -proj plan -o Charterhouse_Walls.3d
#Survex file showing walls only

layout localnolabels
copy local
symbol-hide point label
symbol-hide line label
endlayout

layout localnolabelsnotrans
copy localnolabels
#makes it better for svg and printing
transparency off
layers off
endlayout

layout localnotrans
copy local
#makes it better for svg and printing
transparency off
layers off
endlayout


layout local
#map-image 0 100 ne CharterhouseOverview.pdf
copy common
copy legend
#surface bottom
#surface-opacity 75
#debug on
#debug first 
#debug second
colour map-fg [0 50 50]
#colour map-fg [100]
#colour map-fg map
colour map-bg [100]

#scale 1 1500

#A3
scale 1 2750
base-scale 1 750

#rotate 270
symbol-hide group all
symbol-show line wall

symbol-hide group sections
symbol-hide line section
symbol-hide point remark
symbol-hide group cave-centreline
symbol-hide point gradient
symbol-hide point air-draught
symbol-show area water
symbol-show point entrance
symbol-show point label
symbol-show line label
symbol-show line floor-step
symbol-show line pit
symbol-show line ceiling-step
symbol-show line overhang
symbol-show line border
#symbol-show special north-arrow
#symbol-show special scale-bar

grid off
map-header 70 90 off
map-header-bg off
#statistics explo 6
#statistics topo off
#statistics carto off

map-comment "Drawn by Andrew Atkinson.<br>With thanks to all the other cavers past and present<br>that have made information available.

code metapost

#base 1:750 scale 1:2750 (A3 charterhouse,GB)
fonts_setup(8,16,20,40,60)

#base 1:500 scale 1:2750 
#fonts_setup(8,20,26,40,60)

endcode



endlayout

layout legend
code tex-map
    \def\maplayout{
      \legendbox{70}{90}{NW}{
      \northarrow
      \bigskip 
      \scalebar
      \bigskip
      \the\comment
      }      
    }
endcode
endlayout

#get the master layout settings
input common_layout.th
