seanclaude / Redistricting

QGIS Plugin containing tools for electoral delimitation
GNU General Public License v2.0
3 stars 0 forks source link

Sample data not working #3

Closed hamsho93 closed 6 years ago

hamsho93 commented 6 years ago

Hello,

When I try and use the sample data in the plugin as pictured in the document below, I get a notification to "Please specify a value greater than 0". I have all the values placed and I am not sure which value it is referring to. Any advice?

qgis_issue.docx

seanclaude commented 6 years ago

The error I'm getting under linux is to use an integer field and it looks like it's because of not handling 64-bit fields. The fix is changing line 919 in redistricting_dock.py to

if not provider.fields().at(provider.fieldNameIndex(self.context_fieldname)).isNumeric():