encoding  utf-8
source aven_du_caylar

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

export map -projection plan -o ./Output/caylar_plan.pdf -layout-map-header 0 110 sw -layout water-blue -layout DEM
export map -projection extended -o ./Output/caylar_coupe.pdf -layout-map-header 0 110 sw -layout water-blue -layout grille

export model -o ./Output/caylar.lox

# export KML
export map -projection plan  -format kml -o ./Output/caylar.kml
