BLOG
|
My Code is below - but it's failing on the np.arrange line. What has me confused is you don't switch your array back to a FeatureClass until line 20. So, at line 19 you're still working with an array which has no field names - so how does specifying "sort_id" in line 19 of your code populate that field? sort_field = 'CONSUMPTION' order_field = 'RANK' rankfs = arcpy.FeatureSet() arr = arcpy.da.FeatureClassToNumPyArray(fs,"*") #Create a NumPy Array arr_sort = np.sort(arr, order='CONSUMPTION') #Sort by Consumption values arr_sort_rev =arr_sort[::-1] #Reverse it so Highest is top arr_sort_rev['RANK'] = np.arange( arr_sort_rev.size) arcpy.da.NumPyArrayToFeatureClass(arr_sort, rankfs)
... View more
05-29-2015
08:30 AM
|
0
|
0
|
1203
|
BLOG
|
I've followed Kevin's advice and am working with a FeatureSet in Python - Thanks @Kevin Hibma. I have my data being sorted, then reverse sorted. However, what I can't glean from Dan Patterson's code is how he populates the [sort_id] values...
... View more
05-29-2015
06:49 AM
|
0
|
0
|
1203
|
BLOG
|
Hi Dan I need to perform some ranking of features in a Hosted Feature service - before i spent time trying to figure out how to get Numpy can you confirm if that is possible using Numpy? Speaking of which, I've scoured the blog but can't find a "Starting point" for how to install Numpy and the Official Numpy page is not exactly user friendly..any pointers on how to easily get it up and running with something like PyScripter?
... View more
05-28-2015
07:22 AM
|
0
|
0
|
1203
|
POST
|
I can not find the “Search” Widget in Build 1 release that was previously present in the BETA Version of ArcGIS WebApp Builder. A client of mine created this website using BETA and added the “Search” widget in that as shown - but now it's gone. Can you please guide us? Ashaka Thakore
... View more
01-30-2015
04:58 AM
|
0
|
1
|
4144
|
POST
|
I believe that the Citizen Service Request template does
... View more
09-29-2014
09:49 AM
|
0
|
0
|
465
|
POST
|
Just to be clear: even those Feature Services on which you 'disable editing' will still need to be set to full editing "Add/Update/Delete" for this to work offline. Thanks
... View more
03-20-2014
05:15 AM
|
0
|
0
|
1337
|
POST
|
This works well to refresh the map within Excel, but is there a way to programatically 'update the shared layer'? Thanks
... View more
12-19-2013
05:57 AM
|
0
|
0
|
777
|
POST
|
Excel is the end user client. You can schedule the data source to be refreshed from within Excel. Hi, can you expand on this some more - how do I schedule Excel, and specifically Maps for Office, to update my shared layer with ArcGIS Online? Thanks
... View more
12-19-2013
05:50 AM
|
0
|
0
|
980
|