encoding  utf-8
source azil_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
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
  #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/azil_plan_simpl.pdf  -layout coupe -layout-scale 1 500
export map -projection plan -o ./topos/azil_plan_couleur.pdf -layout water-blue  -layout plan -layout-scale 1 500
#export map -projection [elevation 180 deg] -o ./topos/azil_coupe.pdf -layout coupe
#export map -projection extended -o ./topos/azil_coupe_dev.pdf -layout water-blue  -layout coupe -layout-scale 1 500
#export map -projection extended -o ./topos/azil_coupe_dev.xvi -layout-scale 1 100

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

#export map -projection plan  -format esri -o ./azil_gis

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

# 3D model pour conversion vers stl
#export model -o ./topos/azil.dxf
#export model -o ./topos/azil.3dmf
#export model -o ./topos/azil.vrml
#
#export model -o ./topos/azil.kml

#export .shp
export map -projection plan  -format esri -o ./azil_gis

#kml
export model -o ./topos/azil.kml

# export SQL
export database -o ./sql/azil.sql
