I am trying to use an affine transformation to shift some data from a local
grid to EPSG32636. I have the coordinates in both local grid and UTM.
I cannot perform the affine transformation using the QGIS plugin because I get
a python error code:
Traceback (most recent call last):
File "C:\Users\hpethen/.qgis2/python/plugins\qgsAffine\qgsAffine.py", line
81, in affine
self.doaffine()
File "C:\Users\hpethen/.qgis2/python/plugins\qgsAffine\qgsAffine.py", line
118, in doaffine
vlayer.featureAtId(fid,features[fid])
AttributeError: 'QgsVectorLayer' object has no attribute 'featureAtId'
Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
QGIS version:
1.9.0-Master Master, 5f06eec
Python path: ['C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\sextante',
'C:/OSGeo4W/apps/qgis-dev/./python', 'C:\\Users\\hpethen/.qgis2/python',
'C:\\Users\\hpethen/.qgis2/python/plugins',
'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\OSGeo4W\\bin\\python27.zip',
'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib',
'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win',
'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\bin',
'C:\\OSGeo4W\\apps\\Python27',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
'C:/Users/hpethen/Documents/Docs/PhD/GIS/Gebel_Asr/Modified_fieldwork_data/Affine_EPSG32636_GoogleEarth']
So I have tried to run it in GRASS using v.transform instead, but the
transformation fails. I have tried to use a point file with the XY coordinates
and UTM coordinates in the following format:
667.226 1127.835 327300.25 2533469.65
893.734 994.317 327510.52 2533340.86
590.185 1181.780 327232.79 2533514.94
417.585 1110.799 327054.46 3553460.41
But this also failed.
Does anyone know what I'm doing wrong here?
Thanks for your help
Hannah
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user