POST
|
Hello, I am attempting to create a tool that allows for the clustering of polygon features into different groups based the sum of values (Housing_Unit field) of the polygon features. (Example: Using a maximum of 600 housing units to divide the features into separate groups). The tool is designed such that if the sum of values is more than the specified value parameter (Example: 200 < 500 (parameter)), the tool will stop. However the tool only stops after the sum of values violates the specified value, thus the features grouped includes the feature that caused the entire group to violate the parameter. I would like it such that the tool does not consider the features that caused the sum of value to violate the parameter, but I am unsure of the Python expression to do so, as I am still new to coding (and python). My expression to set the constraint is " %sum_of_housing_units% < %housing_units_parameter% " My arcmap is advanced licensed.
... View more
06-29-2016
12:13 AM
|
0
|
1
|
1437
|
POST
|
I have a set of polygon features that I would like to split into different groups/clusters based on the distance attribute provided in the attribute table, using arcgis geoprocessing tools as far as possible (as I am inexperienced in Python). I have tried to use the clustering tools available (i.e. grouping analysis) but they do not appear to have the function that I require, especially when I would like the tool to run through the features starting with the shortest distance value. In addition, I would like to create the grouping/clustering such that once a polygon is grouped/clustered, it will no longer be considered for further grouping/clustering.
... View more
06-02-2016
07:45 PM
|
0
|
1
|
3686
|
POST
|
I have an advanced license for arcmap, hence I should be able to use the "find identical" tool. However, I have a few queries with regards to the field calculation part. I have never scripted languages, particularly Python before, hence I am sort of confused with regards to the Python script that you have written above. I have attempted to input the Python script in the field calculator with the Python option switched on (at the Parser) section, and made a bit of modifications as seen below: >>> [Feature_B_Near_FID] = 192 # closest is record 204 >>> [Feature_A_Input_FID] = 204 # closest is record 192 >>> both = "{} {}".format(min([[Feature_A_Input_FID] ,closest]), max([[Feature_A_Input_FID] ,closest])) >>> both '192 204' >>> >>> # now moving on >>> closest = 192 >>> Feature_A_Input_FID = 204 >>> both = "{} {}".format(min([[Feature_A_Input_FID] ,closest]), max([[Feature_A_Input_FID] ,closest])) >>> both '192 204' However, ERROR000539: SyntaxError: invalid syntax (<expression>, line 1) occurs, so I am a bit confused. In addition, the script appears to only allow 2 values to be chosen and concatenated together each time. I would like to create a tool using modelbuilder that allows the user to obtain the near distance results easily, hence I am a bit concern that the script would have to be "repeated" countless times to concatenate all the selected values together. Is there a more "automated" process that allows the selection and concatenation of all the values?
... View more
06-01-2016
10:04 PM
|
0
|
1
|
831
|
POST
|
I have a feature class where I have used the near table tool to calculate the distance for each feature to all other features (i.e. Feature 563 to Feature 1174/1140 in the attached picture). However, in the process it has created "similar" records where the distance is calculated again using the same features but in "reverse" (i.e. the highlighted records such as Feature 192 to 204 and its "reverse" Feature 204 to 192). I would like to know if it is possible to delete such records using arcgis's geoprocessing tools as far as possible (automated), rather than doing it manually, due to the number of records present in the attribute table (over 200k records).
... View more
06-01-2016
07:14 PM
|
0
|
3
|
3864
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|