Hi Martin

Yes, a regex is described on the wiki
https://therion.speleo.sk/wiki/tips?s[]=empty#checking_and_erasing_empty_obj
ects_in_th2_files
<https://therion.speleo.sk/wiki/tips?s%5b%5d=empty#checking_and_erasing_empt
y_objects_in_th2_files> 

I use it from time to time when I feel the need.

 

It does not find empty scraps however, probably because our empty scrap
definitions are quite busy.  For example;

 

scrap IH-InceptionPlan-s2 -projection plan -station-names ih @ih -author
2011.02.23 "A Nonymous" -scale [-128.0 -128.0 10718.5511811 -128.0 0.0 0.0
275.5024 0.0 m]

 

endscrap

 

If anyone is clever enough to improve the regex, please do.

Although, because the empty scraps usually come from the particular way I
use TopParser, there is almost always a maximum of one per th2 file. It is
always at the end of the file, so using a semi-automated method of finding
them within the file is unnecessary, if one is disciplined enough to check
each file when the drawing is 'finished', or if, as there is now, a feature
in Therion that (indirectly) highlights their existence.

 

However adding a Therion log entry for each empty object would be helpful.

 

Bruce

 

From: Therion <therion-boun...@speleo.sk> On Behalf Of Martin Sluka via
Therion
Sent: Friday, 28 June 2019 23:55
To: List for Therion users <therion@speleo.sk>
Cc: Martin Sluka <martinsl...@mac.com>
Subject: Re: [Therion] maps on off feature characteristics

 

28. 6. 2019 v 12:16, Bruce Mutton <br...@tomo.co.nz
<mailto:br...@tomo.co.nz> >:

 

There seems to be a bug regarding map altitudes in all cases, and scrap
altitudes where the scraps are empty.  On the other hand it is a good way to
highlight the existence of empty scraps!

 

Several years ago there was publish a regular expression for removing empty
objects from .th2 files here. Is it complicated to add check for empty
object to compilation routine?

 

Martin  Sluka

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

Reply via email to