Tag Info

New answers tagged

0

ArcGIS Pro, which is currently in a Public Beta and expected to be released as part of ArcGIS 10.3 for Desktop, meets this requirement as was explained in an answer to What are Esri's new "ArcGIS for Professionals" and "ArcGIS Pro"? by its Program Manager. ArcGIS Pro is a completely new WPF based application, it’s not java ...


1

I do it this way by creating an Array of Point objects that form a line that closes back on itself, and then creating a Polygon object from that Array: # feature_info eventually takes the following form: [[734855.5142000001, 4744379.424500001], [740607.6685000001, 4744379.424500001], [740607.6685000001, 4736862.1753], [734855.5142000001, 4736862.1753]] ...


1

If you go to the layer properties label tab, select the Method drop down that says: define classes of features and label classes differently you will see a box appear reading "SQL Query..." If you then enter: "Field of your choice" <> 'Unique value of your choice' So, say the field is ROAD NAME and the unique road name you do not want to be ...


5

The effect that you are seeing is called Anti-Aliasing. When ArcMap draws a jagged Line, It will draw all pixels. When QGIS draws a jagged lines, it makes the outer pixels of a color with lower intensity, which gives a smoother appearance. Unfortunately, there is no option to enable Anti-Aliasing in ArcGIS desktop. You should upvote these two idea for ...


-1

Use esriSimpleFillStyle.esriSFSHollow. Or even esriSimpleLineStyle.esriSLSNull can be used.


2

I have accepted @Hornbydd 's answer for leading me toward a dictionary solution. The attached script performs the following actions: Loop through a FC and populate a dictionary with key = OID and value = "MyField" using a SearchCursor. Start an UpdateCursor Create logic to handle first and last rows (i.e. where there is no previous or consecutive row) ...


2

The Data Access module is quite fast and you could create a SearchCursor to save all vales from 'a' into a list then create an UpdateCursor to iterate through each row and select from the list to update the necessary 'b' rows. This way you don't need to worry about saving data between rows =) So something like this: fc = r'C:\path\to\fc' fields = ["a","b"] ...


3

While looping over the rows you need to keep track of previous values. This is one way to do it: previous_value = None cursor = arcpy.UpdateCursor(fc, fields, sort_fields) for i, in_row in enumerate(cursor): current_value = in_row.getValue("ColName") if not previous_value: previous_value = current_value continue ...


-1

First you need a search cursor; I don't think you can get values with an update cursor. Then in each iteration use aNext = row.next().getValue('a') to get the value of next row. To get the value of the row previous I would set up a variable outside of the for loop equal to zero. This gets updated to equal the current rows value of 'a'. You can then access ...


6

If this was me I would pass through the table once creating a dictionary where key is OBJECTID and item is the value in field "a". I would then then step through the table with an update cursor getting the OBJECTID and from that I could get the adjacent values from the dictionary, sum them and write them back to field "b". But in your screenshot you have ...



Top 50 recent answers are included