Comments (4)
Dear Ariel,
the answer is no unless you select an alternative weighting schema (i.e.Knn.).
The pysal distance band weighting function does not support the automatic conversion between geographic and projected coordinates. Therefore the distance band in the plugin has to be expressed as an integer number representing meters (or feet) depending on the projection you adopt.
By projecting your points in WGS-UTM32N (EPSG:32632) everything should work (be careful that 3500 m is not enough to ensure at least one neighbor to each point in your case)
Best,
Daniele
from hotspotanalysis_plugin.
Thank you Daniele,
There is no problem for me to reproject the dataset.
So after I project this point dataset into EPSG:25832, I got another strange OGR error:
File "C:/Users/hud219/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 635, in run
y, threshold1)
File "C:/Users/hud219/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 359, in write_file
outFeature.SetField(outLayerDefn.GetFieldDefn(j).GetNameRef(), inFeature.GetField(j))
File "C:\OSGeo4W\apps\Python37\lib\site-packages\osgeo\ogr.py", line 4458, in SetField
return _ogr.Feature_SetFieldString(self, fld_index, args[1])
RuntimeError: not a string
Here are parameters I used.
FDB: 3600
Field: dif_G
input dataset: inputpoint.zip
Do you maybe know which part went wrong?
Thanks!
Ariel
from hotspotanalysis_plugin.
Actually, I get no error in replicating what you are suggesting:
It seems from the log that there was an issue with the output file name. Try to use a different one...
However, I notice that on QGIS 3.4 this computation takes a lot of time. I hope soon to find time to switch on PySAL 2 and improve the general performances of the plugin which is getting old!
Thank you for your interest.
Best,
Daniele
from hotspotanalysis_plugin.
Hi Daniele,
Great, looking forward to migrate to PySAL 2 - I still have PySAL 1.14.4.post2 installed.
I just realized the script failed at character encoding, it was in ISO-8859-1.
Is there possible to change your code in 359 to adapt any encoding characters of shapefiles?
Cheers,
Ariel
from hotspotanalysis_plugin.
Related Issues (20)
- Greyed out options for distance band HOT 1
- HotSpotAnalysis_Plugin keeps throwing me error when trying to load it HOT 10
- Can someone help me install this plugin?
- Installation issue - python, pysal HOT 1
- ModuleNotFoundError: No module named 'pysal.explore' HOT 4
- Error classFactory() HOT 1
- ValueError: numpy.ndarray size changed HOT 1
- Attribute Error in Plugin
- numba.core.errors.TypingError: HOT 1
- AttributeError: 'array.array' object has no attribute 'fromstring' HOT 2
- subprocess-exited-with-error HOT 1
- Error occurs when launching the tool HOT 2
- Getting requirements to build wheel ... error HOT 1
- Mac - QGIS 3.22 "error when calling its classFactory() method" HOT 6
- A GDAL API version must be specified.
- Instalation on QGIS 3.22 Windows HOT 2
- unpackDistruct.error: unpack requires a buffer of 20 bytes HOT 2
- AttributeError: module 'numpy' has no attribute 'long'` HOT 2
- Buffer problem? HOT 3
- MemoryError: std::bad_alloc HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotspotanalysis_plugin.