|
POST
|
Hi Nathan, I'm not sure if you can add the arrows using python, but you can determine which adjacent parcels have the same owner. Here is an example below. I'm searching a parcels feature class based off of a PIN field that is identical to your 'smart id' where each will end with either 10, 20, 30, or 40. 10 will be the bottom right, 20 the bottom left, 30 the top left, and 40 the top right. The code updates a field called 'Direction' with a value (east, west, north, south) corresponding to the parcel that has the same owner. fc = "Parcels" list = [] rows = arcpy.SearchCursor(fc) for row in rows: PIN = str(row.PIN)[0:5] list.append(PIN) del row, rows pinList = [] for item in list: if item not in pinList: pinList.append(item) def updateDirection(value1, value2, direction): for item in pinList: item1 = item + value1 rows = arcpy.SearchCursor(fc, "PIN = " + item1) for row in rows: Name = row.Name item2 = item + value2 rows2 = arcpy.UpdateCursor(fc, "PIN = " + item2) for row2 in rows2: if row2.Name == Name: row2.Direction = direction rows2.updateRow(row2) del row, rows, row2, rows2 updateDirection('20', '10', 'west') updateDirection('30', '20', 'north') updateDirection('40', '30', 'east') updateDirection('10', '40', 'south')
... View more
05-08-2012
12:23 PM
|
0
|
0
|
3202
|
|
POST
|
If you are trying to add the script to a toolbox, make sure you are not trying to add it to a System Toolbox (i.e. Data Management Tools). Create your own toolbox by right-clicking on a Folder or Geodatabase > New > Toolbox. You can then add the python script to this toolbox.
... View more
05-08-2012
11:05 AM
|
0
|
0
|
1116
|
|
POST
|
I'm a little confused by this question. In what way are Python set objects incompatible with arcpy? Hi Phil, When returning a set object from a list I run into the problem of receiving "set('value')" instead of simply 'value'. Ex: List = ['a','b','c','f','h','a','c','c','c','t']
List = dict.fromkeys(List)
List = List.keys()
print List[0] Will return: a List = ['a','b','c','f','h','a','c','c','c','t']
print set(List[0]) Will return: set(['a'])
... View more
05-08-2012
10:34 AM
|
0
|
0
|
3696
|
|
POST
|
Hi Stephen, Try one of the following:
List = ['a','b','c','f','h','a','c','c','c','t']
List = dict.fromkeys(List)
List = List.keys()
print List or List = ['a','b','c','f','h','a','c','c','c','t']
outlist = []
for element in List:
if element not in outlist:
outlist.append(element)
print outlist
... View more
05-08-2012
08:25 AM
|
1
|
0
|
3696
|
|
POST
|
I work for the gov't and because of that it's virtually impossible to convince IT that I need additional components installed and if I do it'll take months of hassle. Does arcpy.mapping require installation of something python related or is it defaulted in the ARCMap install? Python and the arcpy module are installed by default with ArcGIS Desktop.
... View more
05-08-2012
07:08 AM
|
0
|
0
|
2691
|
|
POST
|
Truncate how many decimals are returned for the centroid and 'true' centriod. For example: for fc in lstFCs:
rows = arcpy.SearchCursor(fc)
print fc
for row in rows:
type = row.Shape
geom = "%.4f" % type.centroid.X
truegeom = "%.4f" % type.trueCentroid.X
if geom != truegeom:
print row.ObjectID
del row, rows This should only return your 'true' arcs.
... View more
05-08-2012
03:49 AM
|
0
|
0
|
2453
|
|
POST
|
I was unable to get erroneous results when NoDATA was listed last. I'm not sure if NoDATA has to be listed last by design, or if this is a bug. If you like, you can follow up with this issue by logging an incident with Tech Support.
... View more
04-26-2012
12:08 PM
|
0
|
0
|
1044
|
|
POST
|
Hi Rich, I found that if you specify the NoDATA value last, you won't run into this issue. Try the following: import arcpy, os from arcpy.sa import * from arcpy import env arcpy.CheckOutExtension("Spatial") arcpy.env.overwriteOutput = True ws = arcpy.env.workspace=r"X:\DATA\Raster_LC.gdb" arcpy.env.extent = r"X:\DATA\Raster_LC.gdb\Study_Area_ras" arcpy.env.mask = r"X:\DATA\Raster_LC.gdb\Study_Area_ras" arcpy.env.snapRaster = r"X:\DATA\Raster_LC.gdb\Study_Area_ras" ##### Following section Converts nodata to 0 values within the extent of the above mask. TreeAd = Reclassify("New_Trees", "Value", RemapValue ([[700, 1000], ["NODATA", 0]])) TreeAd.save("Trees_Ad_0") TreeAd = "Trees_Ad_0" TreeErase = Reclassify("Remove_Trees", "Value", RemapValue ([[100, 30], ["NODATA", 0]])) TreeErase.save("Tree_Erase_0") TreeErase = "Tree_Erase_0"
... View more
04-26-2012
10:14 AM
|
0
|
0
|
1044
|
|
POST
|
Try renaming your ESRI folder in your registry: Start Menu --> Run --> type "regedit" - Expand HKEY_CURRENT_USER folder - Expand Software folder within HKEY_CURRENT_USER - Rename the ESRI folder to ESRI_OLD
... View more
04-26-2012
05:42 AM
|
0
|
0
|
1766
|
|
POST
|
Hi Jennifer, Editor Tracking is different than archiving. Through editor tracking, ArcGIS can automatically record the following information for each feature or table record in a geodatabase dataset: The name of the user who created it. The date and time it was created. The name of the user who edited it. The date and time it was last edited. Take a look at the following link for more information. You can see a short video of this functionality here (beginning at 1:35 of the demo).
... View more
04-24-2012
04:00 AM
|
0
|
0
|
1461
|
|
POST
|
Hi Deryck, ArcGIS Desktop (ArcEditor and ArcInfo), ArcGIS Engine, and ArcGIS Server Workgroup come with an executable file that installs SQL Server Express and enables the SQL Server Express instance to store ArcSDE geodatabases. The ArcSDE for Oracle executable will be found on another disk. If you do not have any other disks you can download the software (that you are licensed for) from the Customer Care Portal. If you need additional help with the Customer Care Portal I would recommend calling Customer Service.
... View more
04-20-2012
12:13 PM
|
0
|
0
|
1168
|
|
POST
|
Hi Todd, You will not be able to replicate a view. In order for data to be replicated it needs to be register as versioned and contain GlobalIDs. It is not possible to register a view as versioned.
... View more
04-20-2012
04:18 AM
|
0
|
0
|
1520
|
|
POST
|
Hi Murali, Have you tried using the Join Field tool? This will join the table directly to the other table without the need of copying the feature class to maintain the join.
... View more
04-19-2012
03:22 AM
|
0
|
0
|
2017
|
|
POST
|
Hi DK, Did you build statistics on the ASC files? You can check by right-clicking on the file in ArcCatalog/Catalog Window > Properties.
... View more
04-18-2012
02:57 AM
|
0
|
0
|
495
|
|
POST
|
I would follow the KB article then, and set your TCPKEEPALIVE to TRUE. Remember to restart the ArcSDE service for the changes to take affect.
... View more
04-17-2012
06:10 AM
|
1
|
0
|
5533
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
8 hours ago
|