[Therion] Cannot get offset maps to work
Bill Gee
bgee at campercaver.net
Tue Nov 12 14:51:34 CET 2024
Hi Bruce - Thanks for the hint about "select". That was the missing
ingredient. I was looking all over the map where offsets work - in the
.th file! - and missed seeing that in the thconfig file. It's been a
year since I did any of this, and that step just got missed.
The good news is the offset is working. However, it did some other
stuff that I need to get changed. Attached to this message are the .th
and thconfig files I am using. The resulting map can be downloaded from
https://campercaver.net.MiscFiles/CaveSpringCave-Print.pdf
This map is very much "in progress". I have drawn walls for everything
that has been sketched and now I am filling details. There is survey
line that has not been sketched, and much more survey to be done.
On the map you find two entrances, both on the west end of the cave.
The big entrance (the A survey) is about 30 vertical feet below the
smaller entrance (the U survey), and the passage from it runs under
everything else. There is a pit where it joins the upper main passage.
I want to draw the A survey -under- the U survey. Before I added the
"select" statement to thconfig, it was working. Now it appears to draw
the A survey on top of the U survey.
There is another passage in the cave that crosses the main passage.
This is the X-Y survey. It is above the U survey. When I did not have
a select statement, it was drawn with correct shading at the
intersection. Now it does not have that.
I changed the .th file so that the map for the lower entrance does not
have either offset or "below". That did nothing but change its
background color. It still is shaded so as to appear above the U survey.
As a side comment, I found that whenever I use "above" or "below" on a
submap, I must also include the offset [0 0 ft], else therion will not
compile the map.
Thanks!
===============
Bill Gee
On 11/12/24 00:29, Bruce Mutton wrote:
> Hi Bill
>
> Does your previous project still compile and create an offset map?
>
> In your thconfig you should make sure you have some things:
>
> * maps on # [on] off ## Setting maps to off disables all previews and
> offsets, and only scraps from the selected maps are output. Survey
> centrelines included as part of a map are not output.
> * maps-offset on # [on] off ## Setting maps-offset to off disables all
> offsets. Maps-offset has no meaning or effect if maps off is also
> chosen.
> * select MainPlan #otherwise the offsets defined in MainPlan will not
> be exported
>
> I’m also not sure what the effect of:
>
> A-Survey at CaveSpringCave [0 0 ft] below
>
> will be.
>
> Zero offsets are not something I remember trying, but it is probably
> better not to do this while you are trying to debug your project.
>
> Regards
>
> Bruce
>
> -----Original Message-----
> From: Therion <therion-bounces at speleo.sk> On Behalf Of Bill Gee
> Sent: Tuesday, 12 November 2024 11:40
> To: Therion Mail List <therion at speleo.sk>
> Subject: [Therion] Cannot get offset maps to work
>
> Hello everyone - Most of my recent questions to this list have generated
> exactly /dev/null for response. I hope this one gets something.
>
> I am trying to build a map where one section of underlying passage is
> drawn offset from the main map. I have done this before and it worked.
>
> This time therion is completely ignoring the offset parameters. What am
> I doing wrong?
>
> The portion that I want to offset does get drawn, and it is drawn below
> as I specified. It just does not get drawn offset.
>
> I tried taking the offset out of the list. Therion complained about
> that. I tried offsetting the other two partial maps, and that does not
> work.
>
> The last time I compiled a map with an offset, I was using therion 6.1.8
> on Fedora 38. Now I have 6.2.1+dev on Fedora 41. Did something change
> between those two versions that affects how this feature works?
>
> I attached the .th file to this message.
>
> Thanks!
>
> --
>
> ===============
>
> Bill Gee
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
-------------- next part --------------
encoding utf-8
# Create the main map to include all submaps
map MainPlan -title "CaveSpringCave (SHN-017) - Plan View" -projection plan
# Lower stream passage
A-Survey at CaveSpringCave [0 0 ft] below
# Main passages
MainPassages at CaveSpringCave
# X and Y upper level
X-Y-Survey at CaveSpringCave [0 0 ft] above
# T-Survey - Small side passage off upper trunk
T-Survey at CaveSpringCave [-10 30 ft] below
endmap
survey CaveSpringCave -title "Cave Spring Cave"
# Lower stream passage A survey
input 20161107/CaveSpringCave-LowerEntrance.th2
input 20221013/CaveSpringCave-A3-A7.th2
input 20221013/CaveSpringCave-A7-A17.th2
input 20221013/CaveSpringCave-A17-A24.th2
# Small tight passage off the upper main trunk
input 20200622/CaveSpringCave-U12-T8.th2
# Y passage
input 20210401/CaveSpringCave-X3-Y3.th2
input 20210401/CaveSpringCave-Y3-Y7.th2
input 20210401/CaveSpringCave-Y7-Y10.th2
input 20210401/CaveSpringCave-Y10-Y15.th2
input 20210401/CaveSpringCave-Y15-Y19.th2
# X passage
input 20210401/CaveSpringCave-X1-X16.th2
input 20210401/CaveSpringCave-X16-X23.th2
input 20210401/CaveSpringCave-X23-X26.th2
# Upper main trunk passage
input 20161123/CaveSpringCave-U1-U10.th2
input 20170213/CaveSpringCave-U10-U14.th2
input 20170213/CaveSpringCave-U14-U16.th2
input 20170922/CaveSpringCave-U16-U20.th2
input 20170922/CaveSpringCave-U20-U28.th2
input 20171010/CaveSpringCave-U28-U33.th2
input 20171010/CaveSpringCave-U33-U37.th2
input 20190802/CaveSpringCave-U37-U45.th2
input 20190901/CaveSpringCave-U45-U55.th2
input 20240721/CaveSpringCave-U54-U62.th2
input 20240721/CaveSpringCave-U62-U64.th2
map A-Survey -projection plan
LowerEntrance
A3-A7
A7-A17
A17-A20
A20-A24
endmap
map T-Survey -projection plan
U12-T8
endmap
map MainPassages -projection plan
# Upper main trunk
U1-U4
U4-U7
U7-U10
U10-U14
U14-U16
U16-U20
U20-U23
U23-U28
U28-U33
U33-U37
U37-U42
U42-U44
U44-U45
U45-U49
U49-U52
U52-U55
U54-U62
U62-U64
endmap
map X-Y-Survey -projection plan
# The X survey
X1-X9
X9-X16
X16-X23
X23-X26
# The Y survey
X3-Y3
Y3-Y5
Y5-Y7
Y7-Y10
Y10-Y14
Y14-Y15
Y15-Y19
endmap
# map MainElevations -projection elevation
# list scraps that make up elevation views
# endmap
centreline
# Define the units that will be used.
units compass degrees
units clino degrees
units length feet
units depth feet
units tape feet
units altitude feet
units dimensions feet
# A separate file contains all of the survey data. Use multiple files as needed
input CaveSpringCave-Surveydata.txt
endcentreline
#Joins go here
# Lower main stream passage
join LowerEntrance A3-A7
join A3-A7 A7-A17
join A7-A17 A17-A20
join A17-A20 A20-A24
# Upper main trunk
join U1-U4 U4-U7
join U4-U7 U7-U10
join U7-U10 U10-U14
join U10-U14 U14-U16
join U14-U16 U16-U20
join U16-U20 U20-U23
join U20-U23 U23-U28
join U23-U28 U28-U33
join U28-U33 U33-U37
join U33-U37 U37-U42
join U37-U42 U42-U44
join U42-U44 U44-U45
join U44-U45 U45-U49
join U45-U49 U49-U52
join U49-U52 U52-U55
join U52-U55 U54-U62
join U54-U62 U62-U64
# X survey
join X1-X9 X9-X16
join X9-X16 X16-X23
join X16-X23 X23-X26
# Y survey
join X3-Y3 Y3-Y5
join Y3-Y5 Y5-Y7
join Y5-Y7 Y7-Y10
join Y7-Y10 Y10-Y14
join Y10-Y14 Y14-Y15
join Y14-Y15 Y15-Y19
# Connect X and Y surveys
join X3-Y3 X1-X9
# Join specific lines
# This group is for the channel in the U passage
join fc1:0 fc4:end
join fc2:end fc3:0
join U52L2:0 U52L1:end
endsurvey CaveSpringCave
-------------- next part --------------
encoding utf-8
encoding utf-8
source CaveSpringCave.th
# Load the Metapost code for custom symbols
input ../TherionMasterFiles/CustomSymbolsCode.txt
# Bring in the code for custom scale bar
input ../TherionMasterFiles/ScaleBarCode.txt
select MainPlan
# This layout is for the main 2D map, all on one page
layout basics
language en_US
units imperial
scale-bar 50 feet
page-numbers on
scale 1 200
north true
symbol-color group centerline [80 20 0]
symbol-color area water [0 0 100]
map-comment "A Distox, compass and tape survey of Cave Spring Cave, SHN-017, Shannon County, Missouri"
statistics explo all
legend on
map-header 3 90 w
symbol-set UIS
# Set point height symbols to be enclosed in boxes
code metapost
p_label_mode_height:=6;
endcode
# Section for PDF properties
doc-author "Bill Gee"
doc-title "Map of Cave Spring Cave (SHN-017)"
doc-subject "Plan map of Cave Spring Cave (SHN-017)"
# Section for map photos
# Add in the elevations maps
# Entrance passage profile
# map-image 0 0 sw CaveSpringCave.pdf
# Bring in the custom symbols
copy CustomSymbols
# Bring in the custom scale bar
copy CustomScaleBar
# Reassign names
symbol-assign point gradient AMER
symbol-assign point stalagmite AMER
symbol-assign point stalactite AMER
symbol-assign point pillar AMER
symbol-assign point popcorn AMER
endlayout
# Layouts to specify colors
layout MainMapNoColor
copy basics
color map-fg [100 86 66]
endlayout
layout MainMapColorized
copy basics
color map-fg altitude
endlayout
layout MainMapByDate
copy basics
color map-fg explo-date
endlayout
layout MainMapPrint
copy basics
debug off
symbol-hide group centerline
color map-fg [100 86 66]
endlayout
# Change the legend callouts
input ../TherionMasterFiles/LegendCallouts.txt
# Basic plan map, normal colors
export map -proj plan -layout MainMapNoColor -o CaveSpringCave.pdf
# Basic plan map, colorized for elevations
export map -proj plan -layout MainMapColorized -o CaveSpringCave-Colored.pdf
# Basic map, no centerline or survey stations
export map -proj plan -layout MainMapPrint -o CaveSpringCave-Print.pdf
# Basic map colored to show date each section was surveyed
export map -proj plan -layout MainMapByDate -o CaveSpringCave-ByDate.pdf
# 3D map for use with Loch
export model -fmt loch -o CaveSpringCave.lox
# 3D map for use with Aven
export model -fmt 3d -o CaveSpringCave.3d
# KML file for overlay in Google Earth - Requires lat-long specified in the survey data file
export map -proj plan -fmt kml -o CaveSpringCave.kml
More information about the Therion
mailing list