Re: [Therion] Geographical Coordinates on grid

2024-04-13 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


Re: [Therion] Geographical Coordinates on grid

2024-04-13 Thread Alastair Gott
Thank you Tarquin and thank you Bruce.

I will check out some mods to the numbers, thanks Bruce, it’s a head scratcher 
and I’m not sure I would have thought of that. Ps Bruce, part of one of the 
Spanish caves is named alien weaponry, hail to the Māori!

Tarquin, if Bruce’s fix doesn’t work I’ll jump on John Steven’s, he’s not the 
hardest to get hold of.


Al.

Sent from my iPhone

> On 13 Apr 2024, at 21:24, Tarquin Wilton-Jones via Therion 
>  wrote:
> I know John Stevens did this ages ago - he does read this mailing list 
> sometimes, maybe he can say how he did it.
> 
> I rather suspect he manually specified the grid lines and crosses, and point 
> labels for the numbers.
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Geographical Coordinates on grid

2024-04-13 Thread Tarquin Wilton-Jones via Therion
I know John Stevens did this ages ago - he does read this mailing list 
sometimes, maybe he can say how he did it.


I rather suspect he manually specified the grid lines and crosses, and 
point labels for the numbers.

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


[Therion] Geographical Coordinates on grid

2024-04-13 Thread Bruce Mutton
Kia ora Alastair

I have not looked at the specifics that you provided, but off the top of my 
head…

 

When I was new to Therion, over a decade ago, I expected ‘grid-coords border’ 
to put coordinates on the outermost visible grid intersections around the 
perimeter of an exported pdf.  After some inquiry and experimentation I came up 
with this understanding – it is not typically practicable to achieve this, but 
with some compromise it is sometimes possible.

 

Therion generates a grid around the cave passage exported, in your example 
below, at 250 m intervals in each cardinal direction.  Since the ‘bordering’ 
grid line will be 250 m (at scale) outside of any cave passage it is unlikely 
it will make it onto the exported pdf, since the displayed map extent around 
the outside of the cave is only a few tens of millimetres.

I have only ever achieved it by having a small grid spacing, and a suitably 
large ‘overlap’ (assuming you are exporting maps rather than atlas’) specified. 
 Try specifying grid at 10 m and overlap at say 30 cm to verify this concept.

 

It gets even more frustrating if the output is rotated (say using ‘rotate 70’), 
since your exported pdf will have bordering coordinates only where the edge of 
the grid is visible.

 

If someone has a solution or can come up with a means of labelling specific 
grid intersections, I would be appreciative!

 

Ngā mihi nui

Bruce

 

 

From: Therion  On Behalf Of A Gott
Sent: Saturday, 13 April 2024 22:40
To: List for Therion users 
Subject: [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 
<https://www.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
 
<https://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] Geographical Coordinates on grid

2024-04-13 Thread A Gott
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