encoding  utf-8
source fault_cave_compilmap

layout coupe
  doc-author "P. Vernant"
  map-header 1 100 nw
endlayout

layout plan
  doc-author "P. Vernant"
  map-header 100 100 nw
 # color map-fg  map
  symbol-show line survey
  symbol-show point station
  debug station-names
endlayout

layout water-blue
# doc-author "P. Vernant"
#  map-header 100 100 nw
  language fr
  legend on
  symbol-hide line survey
  code metapost
  def a_water (expr p) =
    T:=identity;
    thfill p withcolor (0.0, 0.5, 1.0);
  enddef;
  def a_ice (expr p) =
    T:=identity;
    thfill p withcolor (0.7, 0.7, 0.9);
  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
  color map-fg map
  #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 line survey
  symbol-hide point station
  scale 1 500

endlayout


export map -projection plan -o ./topos/fault_cave_plan_simpl.pdf  -layout plan -layout-scale 1 250
export map -projection plan -o ./topos/fault_cave_plan_couleur.pdf -layout water-blue  -layout plan -layout-scale 1 250
export map -projection [elevation 30 deg] -o ./topos/fault_cave_coupe.pdf -layout coupe
#export map -projection extended -o ./topos/fault_cave_coupe_dev.pdf -layout water-blue  -layout coupe -layout-scale 1 500

#export xvi pour fond avec visee d'habillage sur les th2
#export map -projection extended -o ./xvi/fault_cave_all_s.xvi -layout-scale 1 100
#export map -projection plan -o ./xvi/fault_cave_p2.xvi -layout-scale 1 100

export map -projection plan  -format esri -o ./fault_cave

# lox 3D model
export model -o ./topos/fault_cave.lox

# 3D model pour conversion vers stl
#export model -o ./topos/fault_cave.dxf
#export model -o ./topos/fault_cave.3dmf
#export model -o ./topos/fault_cave.vrml
#
export map -projection plan -format kml -o ./topos/fault_cave.kml
