encoding  utf-8
#cs  EPSG:27573
# NTF (Paris) / Lambert zone III <27573>
source granet-topo.th
#source EntreeMeteor/EntreeMeteor.th

layout map250
  doc-author "Gilbert Fernandes"
  doc-keywords "Baume Granet, plan, 105-C, topographie"
  doc-subject "Plan de la Baume Granet"
  doc-title "105-C Baume Granet - plan"
  map-comment "Coordonnée (Lambert III) : X=978.483  Y=3163.614  Z=231 <br>Echelle : 1/250<br>Topo Septembre 2012"
  map-header 85 30 w
  scale 1 200 
  #grid-origin 963700 3173800 0 m 
  grid-size 25 25 10 m 
  grid top
  #origin 0 0 0 m
  symbol-set UIS
  #color map-bg 85
  transparency on
  opacity 70
  language fr
  statistics topo-length on 
  statistics explo-length on
  symbol-show point entrance
  symbol-show point label
  symbol-show area water
  symbol-hide point passage-height
  symbol-hide line survey
  symbol-hide point station
  #symbol-hide point label
  symbol-hide line section
  symbol-hide point section
  symbol-hide point fixed-ladder
  legend on
#  debug on
code metapost

 def a_debris (expr p) =
   T:=identity;
   % thclean p;
   pickup PenC;
   path q; q = bbox p;
   picture tmp_pic;
   tmp_pic := image(
   for i = xpart llcorner q step 0.7u until xpart urcorner q:
     for j = ypart llcorner q step 0.7u until ypart urcorner q:
      draw ((-.2u,0)--(.2u,0))
      rotated uniformdeviate(360)
      shifted ((i,j) randomized 0.4u) withpen PenC;
     endfor;
   endfor;
  );
  clip tmp_pic to p;
  draw tmp_pic;
  enddef;
  endcode
endlayout

layout ombre250
  scale 1 250
  legend off
  map-header 0 30 w
  symbol-set UIS
  symbol-hide group all
  symbol-show point entrance
  symbol-show area water
  scale-bar 50 m
  color map-bg 100
  color map-fg 0
endlayout


layout atlas100
  doc-author "Gilbert Fernandes"
  doc-keywords "Baume Granet, plan, 105-C, topographie"
  doc-subject "Plan de la Baume Granet"
  doc-title "105-C Baume Granet - plan"
  map-comment "Coordonnée (Lambert III) : X=978.483  Y=3163.614  Z=231 <br>Echelle : 1/250<br>Topo Septembre 2012"
  scale 1 400
  color map-bg 95
  symbol-set UIS
  language fr
  origin 22 -5 0 m
  legend on
endlayout

layout cdev250
  doc-author "Gilbert Fernandes"
  doc-keywords "la Pinée, coupe developpée, 41-F2, topographie"
  doc-subject "Coupe développée de l'embut de la Pinée"
  doc-title "41-F2 Embut de la Pinée - coupe"
  map-comment "Coordonnée (Lambert III) : X=978.483  Y=3163.614  Z=231 <br>Echelle : 1/250<br>Topo Septembre 2012"
  scale 1 250
  grid-size 50 50 10 m 
  grid top
  symbol-set UIS
  map-header 78 65 w
  #color map-bg 95
  language fr
  legend on
 # debug on
  symbol-hide line survey
  symbol-hide point station
  statistics topo-length on 
  statistics explo-length on
endlayout



select granet_plan@granet
#select granet_cdev@granet

# topo plan OK
export map -o topo/plan_250.pdf   -layout map250
#export map -o topo/ombre.pdf -layout ombre250  
export atlas -proj plan -o topo/atlas100.pdf -layout atlas100


#export model -o topo/granet_3D.lox

#export map -proj extended -o topo/cdev_250.pdf -layout cdev250
#export atlas -proj extended -o topo/atlas_cdev100.pdf  -layout cdev100
