Loading...

 
 
<type 'exceptions.TypeError'>
Python 2.7.12: /usr/bin/python
Wed Nov 27 12:52:52 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/map/CesiumSpaceXml.py in ()
    245         #displayData( "templateCesium.htm", "http://digerati.aks.ac.kr/DhLab/2022/102/workshop/tutor/sample2.xml", 40 )
    246         #displayData( "templateCesium.htm", "http://digerati.aks.ac.kr/DhLab/2022/102/workshop/tutor/sample3.xml", 40 )
    247         
    248         
=>  249 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/map/CesiumSpaceXml.py in main()
    241                 level = '40'    
    242 
=>  243         displayData( "templateCesium.htm", xml, level )
    244         #displayData( "templateCesium.htm", "http://digerati.aks.ac.kr/DhLab/2022/102/workshop/tutor/sample1.xml", 40 )
    245         #displayData( "templateCesium.htm", "http://digerati.aks.ac.kr/DhLab/2022/102/workshop/tutor/sample2.xml", 40 )
global displayData = <function displayData>, xml = 'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Export_CSVmap.xml', level = '40'
 /home/sandbox/public_html/cgi-bin/map/CesiumSpaceXml.py in displayData(template='templateCesium.htm', url='http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Export_CSVmap.xml', level='40')
    214 
    215         if( counter > 0 ):
=>  216                 displayMap( template, poiList, level )  
    217         else:
    218                 sayMessage( 3 )
global displayMap = <function displayMap>, template = 'templateCesium.htm', poiList = [{'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_03.jpg', 'id': u'Kakao_03.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_03.jpg', 'label': u'Kakao_03.jpg', 'latitude': u'37.391926', 'longitude': u'127.053421', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_08.jpg', 'id': u'Kakao_08.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_08.jpg', 'label': u'Kakao_08.jpg', 'latitude': u'37.393288', 'longitude': u'127.053062', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_09.jpg', 'id': u'Kakao_09.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_09.jpg', 'label': u'Kakao_09.jpg', 'latitude': u'37.391876', 'longitude': u'127.053246', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_10.jpg', 'id': u'Kakao_10.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_10.jpg', 'label': u'Kakao_10.jpg', 'latitude': u'37.357384', 'longitude': u'127.081627', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_11.jpg', 'id': u'Kakao_11.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_11.jpg', 'label': u'Kakao_11.jpg', 'latitude': u'37.357246', 'longitude': u'127.081863', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_15.jpg', 'id': u'Kakao_15.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_15.jpg', 'label': u'Kakao_15.jpg', 'latitude': u'37.357323', 'longitude': u'127.081871', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_17.jpg', 'id': u'Kakao_17.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_17.jpg', 'label': u'Kakao_17.jpg', 'latitude': u'37.357410', 'longitude': u'127.081642', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_18.jpg', 'id': u'Kakao_18.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_18.jpg', 'label': u'Kakao_18.jpg', 'latitude': u'37.357273', 'longitude': u'127.081772', 'modelUrl': None, 'semanticUrl': None, ...}], level = '40'
 /home/sandbox/public_html/cgi-bin/map/CesiumSpaceXml.py in displayMap(template='templateCesium.htm', poiList=[{'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_03.jpg', 'id': u'Kakao_03.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_03.jpg', 'label': u'Kakao_03.jpg', 'latitude': u'37.391926', 'longitude': u'127.053421', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_08.jpg', 'id': u'Kakao_08.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_08.jpg', 'label': u'Kakao_08.jpg', 'latitude': u'37.393288', 'longitude': u'127.053062', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_09.jpg', 'id': u'Kakao_09.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_09.jpg', 'label': u'Kakao_09.jpg', 'latitude': u'37.391876', 'longitude': u'127.053246', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_10.jpg', 'id': u'Kakao_10.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_10.jpg', 'label': u'Kakao_10.jpg', 'latitude': u'37.357384', 'longitude': u'127.081627', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_11.jpg', 'id': u'Kakao_11.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_11.jpg', 'label': u'Kakao_11.jpg', 'latitude': u'37.357246', 'longitude': u'127.081863', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_15.jpg', 'id': u'Kakao_15.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_15.jpg', 'label': u'Kakao_15.jpg', 'latitude': u'37.357323', 'longitude': u'127.081871', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_17.jpg', 'id': u'Kakao_17.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_17.jpg', 'label': u'Kakao_17.jpg', 'latitude': u'37.357410', 'longitude': u'127.081642', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_18.jpg', 'id': u'Kakao_18.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_18.jpg', 'label': u'Kakao_18.jpg', 'latitude': u'37.357273', 'longitude': u'127.081772', 'modelUrl': None, 'semanticUrl': None, ...}], level='40')
    140                 if not line: break
    141                 if( '#YourData' == line.strip()):
=>  142                         createCZML( poiList, level );
    143                 else:
    144                         print line,
global createCZML = <function createCZML>, poiList = [{'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_03.jpg', 'id': u'Kakao_03.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_03.jpg', 'label': u'Kakao_03.jpg', 'latitude': u'37.391926', 'longitude': u'127.053421', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_08.jpg', 'id': u'Kakao_08.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_08.jpg', 'label': u'Kakao_08.jpg', 'latitude': u'37.393288', 'longitude': u'127.053062', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_09.jpg', 'id': u'Kakao_09.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_09.jpg', 'label': u'Kakao_09.jpg', 'latitude': u'37.391876', 'longitude': u'127.053246', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_10.jpg', 'id': u'Kakao_10.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_10.jpg', 'label': u'Kakao_10.jpg', 'latitude': u'37.357384', 'longitude': u'127.081627', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_11.jpg', 'id': u'Kakao_11.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_11.jpg', 'label': u'Kakao_11.jpg', 'latitude': u'37.357246', 'longitude': u'127.081863', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_15.jpg', 'id': u'Kakao_15.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_15.jpg', 'label': u'Kakao_15.jpg', 'latitude': u'37.357323', 'longitude': u'127.081871', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_17.jpg', 'id': u'Kakao_17.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_17.jpg', 'label': u'Kakao_17.jpg', 'latitude': u'37.357410', 'longitude': u'127.081642', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_18.jpg', 'id': u'Kakao_18.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_18.jpg', 'label': u'Kakao_18.jpg', 'latitude': u'37.357273', 'longitude': u'127.081772', 'modelUrl': None, 'semanticUrl': None, ...}], level = '40'
 /home/sandbox/public_html/cgi-bin/map/CesiumSpaceXml.py in createCZML(poiList=[{'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_03.jpg', 'id': u'Kakao_03.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_03.jpg', 'label': u'Kakao_03.jpg', 'latitude': u'37.391926', 'longitude': u'127.053421', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_08.jpg', 'id': u'Kakao_08.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_08.jpg', 'label': u'Kakao_08.jpg', 'latitude': u'37.393288', 'longitude': u'127.053062', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_09.jpg', 'id': u'Kakao_09.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_09.jpg', 'label': u'Kakao_09.jpg', 'latitude': u'37.391876', 'longitude': u'127.053246', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_10.jpg', 'id': u'Kakao_10.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_10.jpg', 'label': u'Kakao_10.jpg', 'latitude': u'37.357384', 'longitude': u'127.081627', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_11.jpg', 'id': u'Kakao_11.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_11.jpg', 'label': u'Kakao_11.jpg', 'latitude': u'37.357246', 'longitude': u'127.081863', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_15.jpg', 'id': u'Kakao_15.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_15.jpg', 'label': u'Kakao_15.jpg', 'latitude': u'37.357323', 'longitude': u'127.081871', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_17.jpg', 'id': u'Kakao_17.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_17.jpg', 'label': u'Kakao_17.jpg', 'latitude': u'37.357410', 'longitude': u'127.081642', 'modelUrl': None, 'semanticUrl': None, ...}, {'altitude': None, 'galleryUrl': None, 'iconUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/thumb/Kakao_18.jpg', 'id': u'Kakao_18.jpg', 'infoUrl': u'http://dh.aks.ac.kr/~metaArchive/photoAlbum/tutor/album01/Kakao_18.jpg', 'label': u'Kakao_18.jpg', 'latitude': u'37.357273', 'longitude': u'127.081772', 'modelUrl': None, 'semanticUrl': None, ...}], level='40')
    111                 print '                         "description" : "{0}",'.format( descriptionText )
    112                 print '                         "position" : {'
=>  113                 print '                                 "cartographicDegrees" : [{0}, {1}, {2}]'.format( longitude, latitude, float(altitude)+float(level) )
    114                 print '                         },' 
    115                 print '                         "orientation": "0",'
longitude = u'127.053421', latitude = u'37.391926', builtin float = <type 'float'>, altitude = None, level = '40'

<type 'exceptions.TypeError'>: float() argument must be a string or a number
      args = ('float() argument must be a string or a number',)
      message = 'float() argument must be a string or a number'