|
POST
|
Something similar to below import arcpy, os
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"
arcpy.env.qualifiedFieldNames = False
arcpy.env.overwriteOutput = True
BldSelection = "BuildingFootprints"
Bld = arcpy.env.workspace + os.sep + "BuildingFootprints" #target point feature class
bldlyr = arcpy.MakeFeatureLayer_management(Bld,"Building_layer","AddressID > ''")
BldCount = int(arcpy.GetCount_management(bldlyr).getOutput(0))
dsc = arcpy.Describe(BldSelection)
selection_set = dsc.FIDSet
if len(selection_set) == 0:
print "There are no features selected"
elif BldCount >= 1:
#Gets the highest AddressID and calculates new point to assign new highest AddressID
Bld_list = []
with arcpy.da.SearchCursor(bldlyr, ["Bld_ID"]) as cursor:
for row in cursor:
try:
if "Bld" in row[0]:
Bld_list.append(int(row[0].strip("Bld")))
except TypeError:
pass
del cursor
print Bld_list
Bld_list.sort()
Bld_ID = Bld_list[-1] + 1
with arcpy.da.UpdateCursor(BldSelection, "Bld_ID") as rows:
for row in rows:
row[0] = 'Bld' + str(Bld_ID)
Bld_ID += 1
rows.updateRow(row)
del row
del rows
... View more
01-07-2016
12:00 PM
|
0
|
1
|
3021
|
|
POST
|
Why not use Make Feature Layer—Help | ArcGIS for Desktop and remove those that have data before you start your cursor. MakeFeatureLayer_management (in_features, out_layer, "Field" > '')
... View more
01-07-2016
11:36 AM
|
1
|
3
|
3021
|
|
POST
|
Not on the copy you made but on the other layer you are labeling with try setting the label weight to low this should remove that label as the feature weight of the copy should be higher than the other. Hope that makes sense
... View more
01-07-2016
11:17 AM
|
0
|
0
|
2930
|
|
POST
|
On your copy set your placement properties Conflict detection to high for label and feature weights
... View more
01-07-2016
11:02 AM
|
0
|
2
|
2930
|
|
POST
|
Create a copy of the DDP index layer and set up a page definition Using Page Definition Queries—Help | ArcGIS for Desktop
... View more
01-07-2016
10:48 AM
|
0
|
5
|
2930
|
|
POST
|
Why not just use arcpy's copy Copy—Help | ArcGIS for Desktop or Table To Table—Help | ArcGIS for Desktop
... View more
01-07-2016
09:57 AM
|
2
|
2
|
2515
|
|
POST
|
Just so you are aware. It is likely that you have a license manager and an Advanced license is available when you run your python script. I am unable to locate the documentation to support this,but I've read that arcpy gets the highest license available unless you explicitly set the license.
... View more
01-07-2016
07:50 AM
|
0
|
2
|
4549
|
|
POST
|
A An overview of topology in ArcGIS—Help | ArcGIS for Desktop may help you get your data clean
... View more
01-06-2016
11:06 AM
|
1
|
0
|
2095
|
|
POST
|
In a geometric network when you move a point or vertex all that is attached move with it. Making re-snapping unnecessary. In the below example i move a single vertex at a hydrant lateral and the attached water line moves with it.
... View more
01-06-2016
10:53 AM
|
0
|
2
|
2095
|
|
POST
|
If you have an Advanced license you could use a What are geometric networks?—Help | ArcGIS for Desktop You may also be interested in The Local Government Information Model—Help | ArcGIS for Desktop
... View more
01-06-2016
08:58 AM
|
0
|
4
|
2095
|
|
POST
|
You've probably already looked here Polygon—Help | ArcGIS for Desktop area (Read Only) The area of a polygon feature. Empty for all other feature types. Double getArea ({type}, {units}) Returns the area of the feature using a measurement type.
... View more
01-06-2016
08:11 AM
|
1
|
1
|
2157
|
|
POST
|
Yes to sort by shape or multiple fields requires an Advanced license see below. License: For the Field(s) parameter, sorting by the Shape field or by multiple fields is only available with anAdvanced license. Sorting by any single attribute field (excluding Shape) is available at all license levels.
... View more
01-06-2016
07:38 AM
|
0
|
6
|
4549
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 09-14-2015 01:29 PM | |
| 1 | 01-26-2016 10:18 AM | |
| 1 | 08-18-2015 06:01 AM | |
| 1 | 06-20-2016 12:34 PM | |
| 1 | 01-19-2016 06:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|