waigania13 / CSMapMaker

7 stars 6 forks source link

TypeError: 'NoneType' object has no attribute '__getitem__' #2

Open polczynskim opened 7 years ago

polczynskim commented 7 years ago

Greetings. I am trying to use CSMapMaker using an SRTM DEM (n53_e020_1arc_v3 from http://lta.cr.usgs.gov/SRTM1Arc). Regardless of what settings I use, I always get the following QGIS error message. What am I doing wrong?

08-10T15:23:05 1 Traceback (most recent call last): File "C:/Users/Mark/.qgis2/python/plugins\CSMapMaker\csmap.py", line 291, in csmap csmap_maker.csmapMake(layer, curvature_method, [param_standard, param_radius]) File "C:/Users/Mark/.qgis2/python/plugins\CSMapMaker\csmap_make.py", line 35, in csmapMake result = processing.runalg("saga:slopeaspectcurvature", gaussian["RESULT"], 6, 0, 0, None, None, None, None, None, None,None, None, None, None, None, None) TypeError: 'NoneType' object has no attribute 'getitem'

waigania13 commented 7 years ago

Thank you for using my plugin.

Could you teach me your QGIS version and OS you using. I could not get this error on my environment (QGIS 2.14 and 2.18, win and mac).

It has nothing to do with the error, but as another piece of information SRTM DEM is rough to get good results. 5m - 10m mesh is good.

polczynskim commented 7 years ago

Thank you for your reply.  The version information is below. I have Windows 10. I have also attached the .tif file I am using.

n53_e020_1arc_v3.zip

QGIS version2.18.9QGIS code revision3a16a4eCompiled against Qt4.8.5Running against Qt4.8.5Compiled against GDAL/OGR2.2.0Running against GDAL/OGR2.2.0Compiled against GEOS3.5.0-CAPI-1.9.0Running against GEOS3.5.0-CAPI-1.9.0 r4084PostgreSQL Client Version9.2.4SpatiaLite Version4.3.0QWT Version5.2.3PROJ.4 Version493QScintilla2 Version2.7.2 QGIS version 2.18.9 QGIS code revision 3a16a4e Compiled against Qt 4.8.5 Running against Qt 4.8.5 Compiled against GDAL/OGR 2.2.0 Running against GDAL/OGR 2.2.0 Compiled against GEOS 3.5.0-CAPI-1.9.0 Running against GEOS 3.5.0-CAPI-1.9.0 r4084 PostgreSQL Client Version 9.2.4 SpatiaLite Version 4.3.0 QWT Version 5.2.3 PROJ.4 Version 493 QScintilla2 Version 2.7.2  
QGIS version 2.18.9 QGIS code revision 3a16a4e
Compiled against Qt 4.8.5 Running against Qt 4.8.5
Compiled against GDAL/OGR 2.2.0 Running against GDAL/OGR 2.2.0
Compiled against GEOS 3.5.0-CAPI-1.9.0 Running against GEOS 3.5.0-CAPI-1.9.0 r4084
PostgreSQL Client Version 9.2.4 SpatiaLite Version 4.3.0
QWT Version 5.2.3 PROJ.4 Version 493
QScintilla2 Version 2.7.2  
waigania13 commented 7 years ago

Please try as following,

polczynskim commented 7 years ago

Thank you for the reply. Unfortunately, I am new at GIS, so I don't really understand about warping a raster to an srs that has "m" unit.

I did warp the raster to UTM 35N but I still get an error.

On Sun, Aug 13, 2017 at 12:48 AM, ASAHI Kosuke notifications@github.com wrote:

Please try as following,

  • warp your raster from latitude/longitude to utm or other srs that has 'm' unit
  • and then run CSMapMaker to reprojected raster

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waigania13/CSMapMaker/issues/2#issuecomment-322023457, or mute the thread https://github.com/notifications/unsubscribe-auth/ATK17tSNLaIBm9ImMnAYG4zm5hKMHHncks5sXo43gaJpZM4Oz-C1 .

-- Mark Polczynski

augaug commented 5 years ago

I am getting the same error, however I am able to run it successfully on a much smaller piece of the same DEM. Is there a maximum size DEM that you would recommend? My plugin works with a 2oomb tif, but not with a 2GB tif...I get the errors described above. Thanks!

waigania13 commented 5 years ago

I am getting the same error, however I am able to run it successfully on a much smaller piece of the same DEM. Is there a maximum size DEM that you would recommend? My plugin works with a 2oomb tif, but not with a 2GB tif...I get the errors described above. Thanks!

Thank you for reporting the error case. If possible, could you send me your data?