bojianzhu / qgis-fast-kernel-density-analysis

Allows the user to create a heatmap efficiently for geospatial analytics.
MIT License
2 stars 0 forks source link

error runing om Mac #3

Open NyakudyaA opened 6 days ago

NyakudyaA commented 6 days ago
Traceback (most recent call last):
File "/Users/mazano/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/fast_kernel_density_analysis/kdvAlgorithm.py", line 208, in processAlgorithm
rlayer = processKDV(lyr, fldLon, fldLat, row_pixels, col_pixels, bandwidth_s, ramp_name, invert, interp, mode,
File "/Users/mazano/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/fast_kernel_density_analysis/kdvAlgorithm.py", line 292, in processKDV
demn = gdal.Translate(path + ".tif", path + ".xyz", outputSRS="EPSG:4326")
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg/osgeo/gdal.py", line 484, in Translate
return TranslateInternal(destName, srcDS, opts, callback, callback_data)
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg/osgeo/gdal.py", line 4571, in TranslateInternal
return _gdal.TranslateInternal(*args)
ValueError: Received a NULL pointer.

Execution failed after 0.67 seconds
bojianzhu commented 5 days ago

Could you send me a screenshot of the plugin parameter configuration? Thanks. Regards.

mazano @.***> 于2024年6月28日周五 19:43写道:

Traceback (most recent call last): File "/Users/mazano/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/fast_kernel_density_analysis/kdvAlgorithm.py", line 208, in processAlgorithm rlayer = processKDV(lyr, fldLon, fldLat, row_pixels, col_pixels, bandwidth_s, ramp_name, invert, interp, mode, File "/Users/mazano/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/fast_kernel_density_analysis/kdvAlgorithm.py", line 292, in processKDV demn = gdal.Translate(path + ".tif", path + ".xyz", outputSRS="EPSG:4326") File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg/osgeo/gdal.py", line 484, in Translate return TranslateInternal(destName, srcDS, opts, callback, callback_data) File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg/osgeo/gdal.py", line 4571, in TranslateInternal return _gdal.TranslateInternal(*args) ValueError: Received a NULL pointer.

Execution failed after 0.67 seconds

— Reply to this email directly, view it on GitHub https://github.com/bojianzhu/qgis-fast-kernel-density-analysis/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARB3TMUXFR7D4M7O2TPQT23ZJVD5TAVCNFSM6AAAAABKBW3T5GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DAMRTG4YTINI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Bojian Zhu Research Assistant Department of Computer Science, HKBU +852-5427-6271

NyakudyaA commented 4 days ago
qgis_process run fastdensityanalysis:kerneldensityvisualization(KDV) --distance_units=meters --area_units=m2 --ellipsoid=EPSG:7030 --INPUT=/Users/mazano/Downloads/animating-time-series/data/ASAM_events.shp --LONGITUDEFIELD=longitude --LATITUDEFIELD=latitude --WIDTH=800 --HEIGHT=640 --SPATIALBANDWIDTH=1000 --RAMPNAME=Reds --INVERT=false --INTERPOLATION=0 --MODE=1 --CLASSES=15

The issue is that the XYZ file generated produces the following error Ungridded dataset: At line 7, too many stepY values

Heatmap.xyz.zip