encoding  utf-8
source th/claux.th

layout grille
  language fr
  debug station-names
  debug scrap-names
  #symbol-hide line survey
  scale 1 100
  # color map-fg [100 100 70]
  color map-bg 90
  #color map-fg altitude
  #color map-fg scrap
endlayout

layout water-blue
  language fr
  legend on
  code metapost
  def a_water (expr p) =
    T:=identity;
    thfill p withcolor (0.0, 0.5, 1.0);
  enddef;
  def a_bedrock (expr p) =
    T:=identity;
  #  thfill p withcolor (0.3, 0.3, 0.3);
  thfill p withcolor (0.90, 0.90, 0.90);
  enddef;
  color map-bg 90
  #def p_entrance_UIS (expr P,R,S,A)=
  #U:=(.2u,.5u);
  #T:=identity aligned A rotated R scaled S shifted P;
  #thfill (-.2u,-.5u)--(0,.5u)--(.2u,-.5u)--cycle;
  #enddef;
  #initsymbol("p_entrance_UIS");
#  debug station-names
#  debug scrap-names
   symbol-hide point station
   symbol-hide line survey
endlayout

layout DEM
  surface top
endlayout

layout grille
  grid top
endlayout

layout CC-BY
  map-image 0 0 nw ../../CC-BY/cc-by-nc-sa.png
  map-image 100 0 nw ../../CC-BY/UM.png
  #<n/s/e/w/ne/nw/se/sw/center> <filename>
endlayout

#export map -projection plan -o ./xvi/claux_plan.xvi -layout-scale 1 100
#export map -projection extended -o ./xvi/claux_coupe.xvi -layout-scale 1 100
#export map -projection [elevation 270 deg]  -o ./xvi/claux_coupe_NS.xvi -layout-scale 1 100

export map -projection plan -o ./Topos/claux_plan.pdf -layout-map-header 100 100 ne -layout water-blue -layout CC-BY -layout-scale 1 200
export map -projection extended -o ./Topos/claux_coupe.pdf -layout-map-header 100 100 ne -layout water-blue -layout CC-BY


export model -o ./Topos/claux.lox

# export KML
export map -projection plan  -format kml -o ./Topos/claux.kml
