Hi Alister,
 
not sure if that helps -just cross read mails- but if the labels are outside the grid and simply cut off u could try to extend the grid. For extended eleve it workes something alnong those lines:
 
#metapost and tex changes to extend elevation gridlines and place altitude labels above grey gridline
#works only for exteded elevation
 
#make gridline continuos and longer on the ends   
   code metapost    
    def s_vgrid (expr xpos, ypos, xsize, ysize) =
    pickup PenD;
    draw
      (if xpos < 0: -22 else: -xsize/2 fi, 0) %-22 extends the grid to the left
       --
      (if xpos > 0: 24 else: xsize/2 fi, 0)    %24 extends grid to the right. %note that it is slightly longer to match the label-length
      withcolor 0.1black+0.7white;            %+0.7white makes the gridline grey instead of black
    enddef;
  endcode  
 
#change position of labels outside the mapbox and raise them ontop the grid
  code tex-map
    \def\gridcoord#1#2{\hbox to0pt{%
      \ifnum#1=3\hss\fi
      \ifnum#1=9\hss\fi
        \vbox to0pt{%
          \vss
          \kern-10pt%                           %places the label above the gridline
          \hbox {\kern2pt#2\kern0pt}                       %'#2' = altitude label
          \kern2pt%                             %shifts back to normal placement for following labels
        \vss
    }%
    
  \ifnum#1=1\hss\fi
  \ifnum#1=7\hss\fi
  }%
  }
  endcode
 
 
if I need coordinates I export an ESRI map and put it in Qgis as most ofthe time i then also want hill-contours, geo-maps, paths or whatnot on it as well.
Its not flawless, but it technically can render the map there by styling all the lines as wanted. Unfortunately its not flawless as eg. clip isnt working and I didnt get my head around to areas for the same reason...
 
Gesendet: Samstag, 13. April 2024 um 12:40 Uhr
Von: "A Gott" <alastairg...@gmail.com>
An: "List for Therion users" <therion@speleo.sk>
Betreff: [Therion] Geographical Coordinates on grid
HI Therion users,
 
I am really struggling to get coordinates to show on the edges of the Plan pdf when generated. There has to be something I'm missing! Does anyone have any examples where they have implemented coordinates on the border of the PDF so I can take a look?
 
The two models I have tried this on are the Peak speedwell model in Castleton, Derbyshire, UK and also the Agua/Naciemiento Model in Tresviso, Cantabria/Asturias, Spain
 
I really would like to see it on the Peak speedwell model and now realise we tried it on the Agua model but decided against it due to deadlines. We set a deadline for this one, but including the coordinates are a must!
 
 
The things I've tried to include in the above which I hoped would help the coordinates to generate, at one point I did get the coordinates to generate only on the west side of the pdf, but now it's failing to show anywhere:
 
page-setup 118.9 84.1 114.9 80.1 1.5 1.5 cm

overlap 3 cm
#size 110 75 cm
size 105 75 cm
 
grid bottom
grid-coords border
grid-size 250 250 250 m
cs OSGB:SK
grid-origin 14865.01 82575.16 193.75 m
I also tried implementing the full grid, in the hope that this would help, but also didn't.
 
 
layout custom_grid
##change default cross hair grid to grid
code metapost
def s_hgrid (expr xpos, ypos, xsize, ysize) =
pickup PenD;
if ( xpos >= -xsize ) and ( ypos >= -ysize ):
draw ( -xsize/2, 0) -- ( xsize/2, 0);
draw ( 0, -ysize/2) -- ( 0, ysize/2);
fi
enddef;
endcode
endlayout
 
For Ref, the Tresviso model, but we wiped any reference to including a grid on this one. cave-registry.org.uk/svn/Andara/Tresviso/Nacimiento/therion/Nacimiento2020/Nacimiento2020_master.thconfig
 
Regards,
Alastair Gott.
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

Reply via email to