Problem with object types
I have a problem with object types in therion: it seems that it is not possible to have a survey and a station which have the same name (see example included which perfectly compiles if one changes the cave1 and cave 2 to Cave1 and Cave2 for either the station names or the survey names). Is that a normal behavior? It seems to me that a correct typing should allow having the same names for surveys, stations and maps. Xavier encoding utf-8 ## Gather all data togother survey cave1 -title "Cave 1" centerline date 1991 station cave1 "Cave 1" entrance equate cave1 0 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 13.8 240 2 endcenterline endsurvey survey cave2 -title "Cave 2" centerline date 1991 station cave2 "Cave 2" entrance equate cave2 0 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 45 140 0 endcenterline endsurvey survey surface -title "Surface measurements" centerline date 1991 equate cave1 0 equate cave2 1 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 5 100 0 endcenterline endsurvey ## index all connection points to link them together equate cave1 cave1@cave1 equate cave2 cave2@cave2 equate cave1 cave1@surface equate cave2 cave2@surface encoding utf-8 source test source ## Rerefence file with all Fixed points centerline cs UTM31 fix cave1 391300 4891742 2160 10 10 20 # GPS accuracy is not so good endcentreline endsource layout map_layout symbol-show line survey symbol-show point station # debug on north true scale 1 100 units metric color map-fg altitude grid bottom grid-size 50 50 10 m cs EPSG:27572 ## Lambert II transparency on opacity 80 surface bottom #surface-opacity 80 endlayout export map -o test.pdf -layout map_layout -fmt pdf export model -fmt survex -o test.3d #!CAVE LIST EXPORT ## cs EPSG:27573 ## Lambert III export cave-list -o Coordonnees.html -location on
Xavier I have not addressed your question (as I don't know the answer). Your data files compile on my machine as you describe in your message (an error as submitted, but success if the cave names are changed). I noticed that you have a co-ordinate conversion from one cs to another. Interested to know if the conversion is performed correctly for you? I tried to do this some weeks ago with my data (different co-ordinate systems), and although no errors were raised, the co-ordinates were not transformed at all, the maps and grids printed with the input co-ordinate system, and not the requested output co-ord system. In studying the outputs I get with your data I find the same thing is happening. Am I (we?) misunderstanding how to do the co-ordinate conversions, or is something not working? Bruce -----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Xavier Pennec Sent: Thursday, 13 November 2008 8:59 a.m. To: List for Therion users Subject: [Therion] Problem with object types I have a problem with object types in therion: it seems that it is not possible to have a survey and a station which have the same name (see example included which perfectly compiles if one changes the cave1 and cave 2 to Cave1 and Cave2 for either the station names or the survey names). Is that a normal behavior? It seems to me that a correct typing should allow having the same names for surveys, stations and maps. Xavier
Bruce, Good thing you've noticed the problem with CS specification. Actually, it was working for me, but not always as I specified... After many tests, it seems that specifying a CS inside the Layout does nothing. Apparently, the output CS should be specified outside and that the last CS specified is the one used for all the outputs. In the test example joined, EPSG:27582 (French Lambert II) is the last CS specified. Therion says: -> output coordinate system: EPSG:27582 and output coordinates as well as the output map are in this coordinate system (I translated with another tool to obtain the coordinates of Cave1 X=543263.98772068, Y=1907965.20640927). Xavier Bruce Mutton a écrit :
Xavier
I have not addressed your question (as I don't know the answer). Your data files compile on my machine as you describe in your message (an error as submitted, but success if the cave names are changed).
I noticed that you have a co-ordinate conversion from one cs to another.
Interested to know if the conversion is performed correctly for you?
I tried to do this some weeks ago with my data (different co-ordinate systems), and although no errors were raised, the co-ordinates were not transformed at all, the maps and grids printed with the input co-ordinate system, and not the requested output co-ord system.
In studying the outputs I get with your data I find the same thing is happening. Am I (we?) misunderstanding how to do the co-ordinate conversions, or is something not working?
Bruce
-----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Xavier Pennec Sent: Thursday, 13 November 2008 8:59 a.m. To: List for Therion users Subject: [Therion] Problem with object types
I have a problem with object types in therion: it seems that it is not possible to have a survey and a station which have the same name (see example included which perfectly compiles if one changes the cave1 and cave 2 to Cave1 and Cave2 for either the station names or the survey names). Is that a normal behavior? It seems to me that a correct typing should allow having the same names for surveys, stations and maps.
Xavier
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
encoding utf-8 ## Gather all data togother survey Topocave1 -title "Cave 1" centerline date 1991 cs EPSG:2757 ## Lambert II station cave1 "Cave 1" entrance equate cave1 0 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 13.8 240 2 endcenterline endsurvey survey Topocave2 -title "Cave 2" centerline date 1991 station cave2 "Cave 2" entrance equate cave2 0 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 45 140 0 endcenterline endsurvey survey surface -title "Surface measurements" centerline date 1991 equate cave1 0 equate cave2 1 data normal from to length compass clino ignoreall units compass grads units clino degrees 0 1 5 100 0 endcenterline endsurvey ## index all connection points to link them together equate cave1 cave1@Topocave1 equate cave2 cave2@Topocave2 equate cave1 cave1@surface equate cave2 cave2@surface encoding utf-8 cs EPSG:27583 ## Lambert III source test source ## Reference file with all Fixed points centerline cs UTM31 fix cave1 390300 4891742 2160 10 10 20 # GPS accuracy is not so good endcentreline endsource layout map_layout symbol-show line survey symbol-show point station # debug on north true scale 1 100 units metric color map-fg altitude grid bottom grid-size 10 10 10 m grid-coords all # cs EPSG:27573 ## Lambert III transparency on opacity 80 surface bottom #surface-opacity 80 endlayout cs EPSG:27583 ## Lambert III export map -o test.pdf -layout map_layout -fmt pdf export model -fmt survex -o test.3d #!CAVE LIST EXPORT cs EPSG:27572 ## Lambert II export cave-list -o Coordonnees.html -location on
Thanks Xavier Your example does indeed work the way you describe. " After many tests, it seems that specifying a CS inside the Layout does nothing. Apparently, the output CS should be specified outside and that the last CS specified is the one used for all the outputs. " I thought 'problem solved' until I realised that for me the most convenient way is to include the output cs in my layout files; perhaps I can re-organise... but on going back through my records, Martin B had this to say (with respect to atlas page positioning on the co-ordinate system) ... " You need to specify 'cs' also in the layout, before setting the 'origin'. Therion can not presume that cs in the data files is the same as in the layout. " That advice seemed to work at the time; however I did not explore its full potential. So now I'm a bit confused. Must be in layout to set atlas page positions? Must not be in layout for all other outputs? Is there a logical explanation? Bruce
So now I'm a bit confused. Must be in layout to set atlas page positions?
Yes. CS must be specified, if you want to specify atlas page origin in the layout.
Must not be in layout for all other outputs?
CS from layout is not used in any outputs. Therion outputs are allways in output CS specified outside of the layout in your configuration file.
Is there a logical explanation?
I am not sure, I understand your problem correctly. Does your confusion comes from fact, that you need to specify same CS twice - once in the layout and once outside of the layout? May be if layout would use cs specified outside of the layout by default - would it solve your problems? Regards, S.
Thanks Stacho Now that you explain it, the significance of the 3rd sentence on page 14 Therion Book becomes clearer! I see now that this aspect is even more modular and flexible than I thought. In the same data set, one can independently specify different co-ordinate systems for each input survey, surface image, terrain model, scanned sketch, gridline position origin, atlas page position origin and the actual output co-ordinates printed. I had assumed that the last three items in that list would be constrained to the same co-ordinate system; hence my misunderstanding. I suspect that the way Therion is now is probably best (assuming I have 'got it right'). What would help would perhaps be an expanded explanation in the Therion Book. Ie explaining the usage and scope (visibility) in the different su=ituations. I'm wondering if one could ever come up with six or more valid co-ordinate systems in common usage that apply to any one single cave system? :) To answer my own question, we probably have more than six where I live, but only two or three we are likely to use. Bruce -----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Stacho Mudrak Sent: Wednesday, 26 November 2008 11:14 p.m. To: List for Therion users Subject: Re: [Therion] CS output specification
So now I'm a bit confused. Must be in layout to set atlas page positions?
Yes. CS must be specified, if you want to specify atlas page origin in the layout.
Must not be in layout for all other outputs?
CS from layout is not used in any outputs. Therion outputs are allways in output CS specified outside of the layout in your configuration file.
Is there a logical explanation?
I am not sure, I understand your problem correctly. Does your confusion comes from fact, that you need to specify same CS twice - once in the layout and once outside of the layout? May be if layout would use cs specified outside of the layout by default - would it solve your problems? Regards, S. _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Sorry for the extremly late answer... :( You are right - it is not possible to create station cave1 on the save level, where cave1 survey exists. Survey station is treated as any other object in therion. Regards, S. 2008/11/12 Xavier Pennec <Xavier.Pennec@sophia.inria.fr>:
I have a problem with object types in therion: it seems that it is not possible to have a survey and a station which have the same name (see example included which perfectly compiles if one changes the cave1 and cave 2 to Cave1 and Cave2 for either the station names or the survey names). Is that a normal behavior? It seems to me that a correct typing should allow having the same names for surveys, stations and maps.
Xavier
encoding utf-8 ## Gather all data togother
survey cave1 -title "Cave 1"
centerline date 1991
station cave1 "Cave 1" entrance equate cave1 0
data normal from to length compass clino ignoreall units compass grads units clino degrees
0 1 13.8 240 2 endcenterline endsurvey
survey cave2 -title "Cave 2"
centerline date 1991
station cave2 "Cave 2" entrance equate cave2 0
data normal from to length compass clino ignoreall units compass grads units clino degrees
0 1 45 140 0 endcenterline endsurvey
survey surface -title "Surface measurements"
centerline date 1991
equate cave1 0 equate cave2 1
data normal from to length compass clino ignoreall units compass grads units clino degrees
0 1 5 100 0 endcenterline endsurvey
## index all connection points to link them together
equate cave1 cave1@cave1 equate cave2 cave2@cave2 equate cave1 cave1@surface equate cave2 cave2@surface
encoding utf-8 source test
source ## Rerefence file with all Fixed points centerline cs UTM31 fix cave1 391300 4891742 2160 10 10 20 # GPS accuracy is not so good endcentreline endsource
layout map_layout
symbol-show line survey symbol-show point station
# debug on north true scale 1 100 units metric
color map-fg altitude
grid bottom grid-size 50 50 10 m cs EPSG:27572 ## Lambert II transparency on opacity 80
surface bottom #surface-opacity 80 endlayout
export map -o test.pdf -layout map_layout -fmt pdf export model -fmt survex -o test.3d
#!CAVE LIST EXPORT
## cs EPSG:27573 ## Lambert III export cave-list -o Coordonnees.html -location on
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
participants (3)
-
Bruce Mutton -
Stacho Mudrak -
Xavier Pennec