Re: [Therion] Geographical Coordinates on grid

2024-04-14 Thread Axel via Therion
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" 
An: "List for Therion users" 
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!

 

Peak speedwell - cave-registry.org.uk/svn/PeakDistrict/Castleton/castleton_model_thconfig

 

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


[Therion] svg Import

2024-02-20 Thread Axel via Therion
MoinMoin,

 

I extensively use T. Holders Inkscape plugin for Inkscape.
At the end u have to export the svg out of Inkscape which can be tediouse if u want to finalise a map and therfore make a lot of small changes.

Is it possible that someone who knows to code puts the Inkscape dialog directly into Xtherion?
Some syntax like: import xyz.svg -projection -scale -options    should do it. If needed it could still create a *.th2 as that's what it does...

 

thanks a lot,

Axel
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion