Using ArcGIS field calculator to rank continuous field within shapefile using VBscrip

المشرف العام

Administrator
طاقم الإدارة
So have been trying to get the VBscript code below to work in the ArcGIS field calculator.

The values are a continuous set of data between 15-88, and I have used the natural breaks jenks rank to rank them visually, but I would like to retain the 1-5 scores for each Country in a new column which I have called EPI rank. That is what I am trying to achieve with the above code below. I have a feeling that I am doing something very basic wrong.

I am very much a field calculator novice but have had some success previously with another polygon ranking code which I am trying to adapt. I am open to trying the VBscript or Python.

if [EPIScore]= >15 and [EPIScore]= 34 and [EPIScore] = 47 and [EPIScore] = 59 and [EPIScore] = 70 and [EPIScore] = < 88 then x=5 end if then

EPIrank=x The response I get is just, there has been a failure in the geoprocessing. Then in the results window, it is error 999999 (the most helpful of all errors)



أكثر...
 
أعلى