Onze verontschuldigingen, dit bericht is alleen beschikbaar in Amerikaans Engels.
Join the Conversation
2 Comments
This is amazing! Thank you so much for putting this script together. However there is one problem when I try to run it. I’m running your script (and on your sample kml) exactly and I get a CRS error. I feel like I am making a very simple mistake. Could you help? I’ve pasted the error below:
”
An error has occured while executing Python code:
Traceback (most recent call last):
File “C:/Users/amy/.qgis2/python/plugins\processing\gui\AlgorithmDialog.py”, line 148, in accept
if checkCRS and not self.alg.checkInputCRS():
File “C:/Users/amy/.qgis2/python/plugins\processing\core\GeoAlgorithm.py”, line 403, in checkInputCRS
crs = dataobjects.getObject(item).crs()
AttributeError: ‘NoneType’ object has no attribute ‘crs’
Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version:
2.8.2-Wien Wien, 1b929ef
Python path: [‘C:\\Users\\amy\\.qgis2\\python\\plugins\\GeoCoding\\libs’, ‘C:/Users/amy/.qgis2/python/plugins\\processing’, ‘C:/Users/amy/.qgis2/python/plugins\\LecoS’, ‘C:/PROGRA~1/QGISWI~1/apps/qgis/./python’, u’C:/Users/amy/.qgis2/python’, u’C:/Users/amy/.qgis2/python/plugins’, ‘C:/PROGRA~1/QGISWI~1/apps/qgis/./python/plugins’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\certifi-14.05.14-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\bin\\python27.zip’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\DLLs’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\plat-win’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\lib-tk’, ‘C:\\PROGRA~1\\QGISWI~1\\bin’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\PIL’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\win32’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\win32\\lib’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\Pythonwin’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg’, u’C:/Users/amy/.qgis2//python’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\mmqgis/forms’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\opeNoise\\tools’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\qgis\\python\\plugins\\fTools\\tools’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\DigitizingTools\\tools’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\ui/..’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\mcda/..’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\mcda/..’]
“
Hi Amy, I cannot reproduce your error. Nor in 2.10 or 2.8.
What is your setting in Options/CRS? I have ‘CRS for new layers’ to prompt me for a crs. So when I run the script I get asked what crs I want for the gif, and then it just works, even if I cancel that dialog…
did you try other kml’s?
This is amazing! Thank you so much for putting this script together. However there is one problem when I try to run it. I’m running your script (and on your sample kml) exactly and I get a CRS error. I feel like I am making a very simple mistake. Could you help? I’ve pasted the error below:
”
An error has occured while executing Python code:
Traceback (most recent call last):
File “C:/Users/amy/.qgis2/python/plugins\processing\gui\AlgorithmDialog.py”, line 148, in accept
if checkCRS and not self.alg.checkInputCRS():
File “C:/Users/amy/.qgis2/python/plugins\processing\core\GeoAlgorithm.py”, line 403, in checkInputCRS
crs = dataobjects.getObject(item).crs()
AttributeError: ‘NoneType’ object has no attribute ‘crs’
Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version:
2.8.2-Wien Wien, 1b929ef
Python path: [‘C:\\Users\\amy\\.qgis2\\python\\plugins\\GeoCoding\\libs’, ‘C:/Users/amy/.qgis2/python/plugins\\processing’, ‘C:/Users/amy/.qgis2/python/plugins\\LecoS’, ‘C:/PROGRA~1/QGISWI~1/apps/qgis/./python’, u’C:/Users/amy/.qgis2/python’, u’C:/Users/amy/.qgis2/python/plugins’, ‘C:/PROGRA~1/QGISWI~1/apps/qgis/./python/plugins’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\certifi-14.05.14-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\bin\\python27.zip’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\DLLs’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\plat-win’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\lib-tk’, ‘C:\\PROGRA~1\\QGISWI~1\\bin’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\PIL’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\win32’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\win32\\lib’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\Pythonwin’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg’, u’C:/Users/amy/.qgis2//python’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\mmqgis/forms’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\opeNoise\\tools’, ‘C:\\PROGRA~1\\QGISWI~1\\apps\\qgis\\python\\plugins\\fTools\\tools’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\DigitizingTools\\tools’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\ui/..’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\mcda/..’, ‘C:\\Users\\amy\\.qgis2\\python\\plugins\\qgis_etri\\mcda/..’]
“
Hi Amy, I cannot reproduce your error. Nor in 2.10 or 2.8.
What is your setting in Options/CRS? I have ‘CRS for new layers’ to prompt me for a crs. So when I run the script I get asked what crs I want for the gif, and then it just works, even if I cancel that dialog…
did you try other kml’s?