Re: [Therion] Therion database web interface (Bruce)
I’ve looked at the sql output in the past and haven’t been able to use much of the data, parts of it such as maps seem to be undocumented. Your request has caused me to look again. I’m not sure you’ll be able to do the things you want. I have a cave system (Whiterock in Mulu) which has 123 surveys listed in the database. Each survey has a unique id and a name apart from the first record which has an id of 1 and no name. All the surveys have a parent id of 1 apart from the first record which has a parent id of 0. If I look at the maps table there are 120 records and all are referenced to survey id 1 which is obviously the top level survey so I can’t identify which survey each map belongs to. I’ve tried creating a container survey to contain all the sub surveys but, when I do, all maps are referenced to that container survey Similarly, if I look at the scraps table, all the scraps are referenced to the master survey. My index file has a map for plans and a map for elevations. Each of the maps contains all the scraps for that elevation. In addition all surveys have their own plan and elevation maps so that I can print out each survey map separately. I then created a master map which contained each of the individual survey maps but all the individual maps are still referenced to the master survey. What I’ve not tried to do is create a sql output for each survey. I’m sure that wouldn’t work anyway as the sql creates new tables and doesn’t append records. This means you would have to create a separate database for each survey and there would be no easy way of linking them. I have done some work on Andrews code and when I’m satisfied with the results I’ll post on the Wiki. Dave Clucas daveclucas.com sarawak-caves.com dave.clucas@icloud.com Exploring the World - One cave at a time
Bruce, I’ve written a php program to list all surveys which don’t have an associated map. It can be downloaded here. This was written for my dataset so may not work for you. Essentially all my survey names take the form survey_name and the associated maps are named surveyNamePlan or surveyNameElev300 so I am able to match maps with surveys by searching for the combination of words in the name. Give it a try and let me know how you get on. If it’s OK I’ll add it to the Wiki. Dave Clucas daveclucas.com sarawak-caves.com dave.clucas@icloud.com Exploring the World - One cave at a time
Hi, Dave The structure of surveys and structure of maps are independent in therion. You may combine one map from one cave with another map from second cave for particular export. This is very good idea I think. So all maps definitions are associated with the highest level of surveys. Martin 18. 7. 2014 v 7:15, Dave Clucas <dave@daveclucas.com>:
Bruce,
I’ve written a php program to list all surveys which don’t have an associated map. It can be downloaded here. This was written for my dataset so may not work for you. Essentially all my survey names take the form survey_name and the associated maps are named surveyNamePlan or surveyNameElev300 so I am able to match maps with surveys by searching for the combination of words in the name. Give it a try and let me know how you get on. If it’s OK I’ll add it to the Wiki.
Dave Clucas daveclucas.com sarawak-caves.com dave.clucas@icloud.com
Exploring the World - One cave at a time
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Thanks Martin, Dave I'll try to look at this in the next few days. I think my naming convention is the same as Daves, so with any luck... Bruce _____ From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Martin Sluka Sent: Friday, 18 July 2014 6:14 p.m. To: List for Therion users Subject: Re: [Therion] Therion database web interface (Bruce) Hi, Dave The structure of surveys and structure of maps are independent in therion. You may combine one map from one cave with another map from second cave for particular export. This is very good idea I think. So all maps definitions are associated with the highest level of surveys. Martin 18. 7. 2014 v 7:15, Dave Clucas <dave@daveclucas.com>: Bruce, I've written a php program to list all surveys which don't have an associated map. It can be downloaded here <http://www.daveclucas.com/cms/index.php/downloads/category/15-therion> . This was written for my dataset so may not work for you. Essentially all my survey names take the form survey_name and the associated maps are named surveyNamePlan or surveyNameElev300 so I am able to match maps with surveys by searching for the combination of words in the name. Give it a try and let me know how you get on. If it's OK I'll add it to the Wiki. Dave Clucas daveclucas.com <http://daveclucas.com/> sarawak-caves.com <http://sarawak-caves.com/> dave.clucas@icloud.com <mailto:daveclucas@icloud.com> Exploring the World - One cave at a time _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
participants (3)
-
Bruce -
Dave Clucas -
Martin Sluka