Loading...

 
 
<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Fri Nov 1 08:37:37 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV3.py in ()
    179                 condition=''
    180         
    181         displayResults("templateCesiumV2.htm", db, project, condition )
    182 
=>  183 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV3.py in main()
    179                 condition=''
    180         
=>  181         displayResults("templateCesiumV2.htm", db, project, condition )
    182 
    183 main()
global displayResults = <function displayResults>, db = 'mokpo', project = 'mokpo', condition = "complex='AirView1' or id like 'AirView1%'"
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV3.py in displayResults(template='templateCesiumV2.htm', db='mokpo', project='mokpo', condition="complex='AirView1' or id like 'AirView1%'")
    152                 if not line: break
    153                 if( '#YourData' == line.strip()):
=>  154                         displayData( db, project, condition )
    155                 else:
    156                         print line
global displayData = <function displayData>, db = 'mokpo', project = 'mokpo', condition = "complex='AirView1' or id like 'AirView1%'"
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV3.py in displayData(database='mokpo', project='mokpo', condition="complex='AirView1' or id like 'AirView1%'")
    140         db.close()
    141         
=>  142         createCZML( poiList );
    143 
    144 
global createCZML = <function createCZML>, poiList = []
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV3.py in createCZML(poiList=[])
    100         print '                         var entities = dataSource.entities.values'
    101         print '                         setproperties(entities);'
=>  102         print '                         viewer.trackedEntity = dataSource.entities.getById("{0}");'.format( viewPoint )
    103         print '                 }).otherwise(function(error){'
    104         print '                         window.alert(error);'
viewPoint undefined

<type 'exceptions.UnboundLocalError'>: local variable 'viewPoint' referenced before assignment
      args = ("local variable 'viewPoint' referenced before assignment",)
      message = "local variable 'viewPoint' referenced before assignment"