POST
|
I am creating a tool that delineated multiple watersheds using a set of pourpoints and compares the area ratio of the watersheds with the same ID. Is it possible to generate two duplicate watershed feature class using the same pourpoint? If not, is it possible to use arcpy.da.UpdateCursor to change all the null and zero values within a field to it's previous non-Null value in the row above it? I know my questions seem unrelated, but these are two ways that could solve my current tool problem. If you have any questions, please let me know. I added my codes below using the arcpy.da. UpdateCursor. Thanks for your help! previous_value = non_null_value with arcpy.da.UpdateCursor(ScaleRatioTable,['Area_sqmi_1'])as cursor: for row in cursor: if row[0] == 0.0: row[0]= previous_value cursor.updateRow(row)
... View more
a week ago
|
0
|
1
|
564
|
POST
|
I was wondering how can I populate the fields of a feature layer within an active map in a combo box? There is an ESRI community example, CreateReport of how to populate the fields of a feature layer in a ListBox. Using that example, I was able to populate the feature layers in an active map successfully, but I am not sure how to populate the fields in a Dockpane's ComboBox. I know I need to create a ObservableCollection object, but I keep getting an error message that says I can convert a string variable into a data type. If you know of an example that would be helpful or what I change in my code to get the fields to populate, I would appreciate the help. Thanks! private ObservableCollection
a week ago
|
0
|
0
|
61
|
POST
|
I noticed that the arcpy script to change the symbol outline for symbology rendering does not work in ArcGIS Pro v. 2.8. Using the python console to troubleshoot my python script, I realized that if sym.renderer.type == 'SimpleRenderer': sym.renderer.symbol.color = {'RGB' : [0, 0, 0, 0]}} sym.renderer.symbol.outlineColor = {'RGB' : 0, 0,0, 0]} will change the color of the point symbol, but not the point symbol outline. The same for the graduated color rendering, for brk in sym.renderer.classBreaks: brk.symbol.outlineColor = {'RGB' : [0,0,0,0]} brk.symbol.color = {'RGB':[0,0,0,0]} It doesn't matter what color RGB I change it, the outlineColor and color will only result in the symbol color change. The outline color does not work. I was wondering if there is a way around this without using applysymbologyfromlayer gp tool ? I have script to create a customized my graduate color rendering and using the tool will change my graduate color rendering. Thanks for your help!
... View more
10-12-202204:49 PM
|
0
|
1
|
250
|
POST
|
@JayantaPoddar How would you do this in arcpy? Thanks!
... View more
10-12-202204:43 PM
|
0
|
0
|
52
|
POST
|
Hi Jeff, Thanks for showing me how to add the code in the python window. I am using ArcGIS Pro 2.8. @JeffK
... View more
10-04-202211:19 AM
|
0
|
0
|
68
|
POST
|
I am wondering how I can fix this WhereClause? Everything seems to work, except for the query. Thanks for your help! QueuedTask.Run(() => { string mKey = "462409"; var ckeys = new string[3] { "19605542","19605543","19605707" }; using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(inPath)))) using (var HzTable = geodatabase.OpenDataset
Activity Feed
Contact Me
|