encoding  utf-8
source CheddarCatchment.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

#Cave overview
select TyningsGSM@TyningsGS.CheddarCatchment
#select Charterhouse_exclude_2010M@Charterhouse.CheddarCatchment
select ReservoirM@Reservoir.CheddarCatchment
select GoughsM@Goughs.CheddarCatchment
select GoughsOldM@GoughsOld.CheddarCatchment
select CharterhouseM@Charterhouse.CheddarCatchment
select LongHoleM@LongHole.CheddarCatchment
select WhiteSpotM@WhiteSpot.CheddarCatchment

#select 2010M@Charterhouse.CheddarCatchment

select GBM@GB.CheddarCatchment
#select New_Charter_displaceM@Charterhouse.CheddarCatchment
select ReadsGrottoM@ReadsGrotto.CheddarCatchment


#Needed for dated overview
#select TyningsGSM@TyningsGS.CheddarCatchment
#select CrickmayM@Crickmay.GB.CheddarCatchment
#select LadderExtensionM@GB.CheddarCatchment

#select 2011M@Charterhouse.CheddarCatchment
#select 2010M@Charterhouse.CheddarCatchment
#select 2009M@2009.CharterhouseCheddarCatchment
#select lowerM@lower.Charterhouse.CheddarCatchment
#select OldCaveM@OldCave.Charterhouse.CheddarCatchment
#select ReadsGrottoM@ReadsGrotto.CheddarCatchment
#select cornersM@corners.CheddarCatchment

#select Longwood@Longwood.CheddarCatchment





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

#Produces plan of cave, on a single sheet

export map -proj plan -layout local -o Outputs/Charterhouse_overview.pdf



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

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

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

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

layout local
copy common



#copy legend

surface bottom
surface-opacity 100
transparency off
#debug on
#debug first 
#debug second
#colour map-fg [0 50 50]
#colour map-fg [100]
colour map-fg map
#colour map-bg [100]

#base-scale 1 500
#scale 1 4000

#A3
#scale 1 2750
#base-scale 1 750

#A4
#scale 1 6000

#smaller than A5 
scale 1 10000

#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
#ice-pillar needed to get switch the corners on
symbol-show point ice-pillar
#symbol-hide point gradient
#symbol-hide point air-draught
#symbol-show area water
#symbol-show point entrance
#symbol-hide point label
#symbol-hide 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 100 100 off
map-header-bg off
statistics explo off
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.<br>Survey UBSS/WCC<br>Copyright CC BY NC SA <br> <br>Sections shown at double the scale of the plan.<br>Spot heights in metres OD"
code metapost

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

#scale 1:1000 (A0 width charterhouse,GB)
fonts_setup(7,10,14,20,30)

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

endcode

endlayout
           


#get the master layout settings
input common_layout.th