Git Product home page Git Product logo

Comments (4)

danioxoli avatar danioxoli commented on August 15, 2024

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.

Ariel505 avatar Ariel505 commented on August 15, 2024

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.

danioxoli avatar danioxoli commented on August 15, 2024

Actually, I get no error in replicating what you are suggesting:

immagine

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.

Ariel505 avatar Ariel505 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.