diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-05-26 16:41:11 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-05-26 16:41:11 +0100 |
commit | c9657aeb8c6aed01db7a844883a37dce4afae861 (patch) | |
tree | 2af2d71be3a9dd898be814b142b6681ed5b5fda4 /parsers/survex.py | |
parent | dfb7cc88cde4a2ceb64555f1ea79800fee8e0b14 (diff) | |
download | troggle-c9657aeb8c6aed01db7a844883a37dce4afae861.tar.gz troggle-c9657aeb8c6aed01db7a844883a37dce4afae861.tar.bz2 troggle-c9657aeb8c6aed01db7a844883a37dce4afae861.zip |
preparing to clean up LoadPos
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index 907b183..3dc9d16 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -227,7 +227,7 @@ def RecursiveLoad(survexblock, survexfile, fin, textlines): # print(insp+'QM notes %s' % qm_notes) # If the QM isn't resolved (has a resolving station) then load it - if not qm_resolve_section or qm_resolve_section is not '-' or qm_resolve_section is not 'None': + if not qm_resolve_section or qm_resolve_section != '-' or qm_resolve_section is not 'None': from_section = models.SurvexBlock.objects.filter(name=qm_from_section) # If we can find a section (survex note chunck, named) if len(from_section) > 0: @@ -480,6 +480,8 @@ def LoadPos(): all survey point positions. Then lookup each position by name to see if we have it in the database and if we do, then save the x/y/z coordinates. If we don't have it in the database, print an error message and discard it. + This is ONLY ever used for entrance and fixedpts locations for the prospecting map: + about 600 points out of 32,000. """ topdata = settings.SURVEX_DATA + settings.SURVEX_TOPNAME print((' - Generating a list of Pos from %s.svx and then loading...' % (topdata))) |