|
DOC
|
no it was not. I am removing all the services and I am going to readd them and see if the issues still exists.
... View more
01-28-2016
11:57 AM
|
0
|
0
|
7939
|
|
DOC
|
it was feature service on arcgis online, i don't have server so all my data is on arcgis online.
... View more
01-28-2016
11:42 AM
|
0
|
0
|
7939
|
|
DOC
|
oh my bad. yes it worked in 1.2. i am wondering if it is just Arcgis Online that is having issues.
... View more
01-28-2016
11:12 AM
|
0
|
0
|
7939
|
|
DOC
|
It's worked in the past builds, so i wasn't sure if it was just me.
... View more
01-28-2016
10:51 AM
|
0
|
0
|
7939
|
|
DOC
|
for some weird reason i can't get the eSearch to find a parcel.When i do a search I get the "search faild!". weird thing is that i have the Roberts Identify widget using the same layer and it works but it won't find the parcel with the same layer using the eSearch widget. I know the parcel exists because i added the Web appbuilder's "Query" widget and it found the parcel on the same layer. I am not sure what's going on.
... View more
01-28-2016
10:12 AM
|
0
|
0
|
7939
|
|
DOC
|
I am currently runing 1.3.01-11/11/16 and i noticed that when i preform a search that the search parcel doesn't get highlighted it just take me to the area. the Edit Default Search Symbology is set. Am i missing something?
... View more
01-27-2016
03:45 PM
|
0
|
0
|
7939
|
|
POST
|
Dan I uderstad what you and Wes are saying with the explanations/logic I am just not sure how to put it into the current code to reflect what I am trying to accomplish.
... View more
01-10-2016
09:18 AM
|
0
|
1
|
876
|
|
POST
|
I have tried the following but nothing happens, no error obj = None, "", ' '
with arcpy.da.SearchCursor(BldSelection , "Bld_ID") as cursor:
for row in cursor:
if not obj:
Bld_list = []
with arcpy.da.SearchCursor(Bld, ["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%05d' %Bld_ID
Bld_ID += 1
rows.updateRow(row)
del row
del rows
else: #other process sptial join
# Stop the edit operation.
edit.stopOperation()
... View more
01-08-2016
02:27 PM
|
0
|
3
|
876
|
|
POST
|
I have tried the following for blank and null attributes for line 36, but i am getting error. Parsing error SyntaxError: invalid syntax with arcpy.da.SearchCursor(BldSelection , "Bld_ID") as cursor:
for row in cursor:
if row[0] > '' or row[0] Null <": and with arcpy.da.SearchCursor(BldSelection , "Bld_ID") as cursor:
for row in cursor:
if row[0] > '' :
if row[0] Null <": I have tried, but nothing happends, the Bld_ID of the selected feature doesn't update. with arcpy.da.SearchCursor(BldSelection , "Bld_ID") as cursor:
for row in cursor:
if row[0] > None or row[0] == ' ':
... View more
01-08-2016
01:40 PM
|
0
|
5
|
876
|
|
POST
|
I just noticed that some of the selected features are "NULL", would that affect line 36?
... View more
01-08-2016
11:52 AM
|
0
|
7
|
1985
|
|
POST
|
spoke to soon the code is not working, no errors, field Bld_ID doesn't get populated
... View more
01-08-2016
11:41 AM
|
0
|
8
|
1985
|
|
POST
|
ok, for some reason i was thinking i had to put an if-then-else statement after "elif BldCount >= 1: " line 21 after making the following adjustment, the selected features "Bld_ID" field still doesn't populate when i run the following code...? I get no error. Edit: I had things that i need to change. the code is now working, i think. i will do testing. Thanks Wes! import arcpy, os
from arcpy import env
arcpy.env.workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\CCAPTEST (VERSION:dbo.DEFAULT)"
arcpy.env.qualifiedFieldNames = False
arcpy.env.overwriteOutput = True
BldSelection = "CCAPTEST.DBO.BldTaxChar"
Bld = arcpy.env.workspace + os.sep + "CCAPTEST.DBO.BldTaxChar" #target point feature class
BldCount = int(arcpy.GetCount_management(Bld).getOutput(0))
dsc = arcpy.Describe(BldSelection)
selection_set = dsc.FIDSet
if len(selection_set) == 0:
print "There are no features selected"
elif BldCount >= 1:
# Start an edit session. Must provide the worksapce.
edit = arcpy.da.Editor(arcpy.env.workspace)
# Edit session is started without an undo/redo stack for versioned data
# (for second argument, use False for unversioned data)
edit.startEditing(True)
# Start an edit operation
edit.startOperation()
#Gets the highest AddressID and calculates new point to assign new highest AddressID
with arcpy.da.SearchCursor(BldSelection , "Bld_ID") as cursor:
for row in cursor:
if row[0] >'':
Bld_list = []
with arcpy.da.SearchCursor(Bld, ["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%05d' %Bld_ID
Bld_ID += 1
rows.updateRow(row)
del row
del rows
else: #other process sptial join
edit.stopOperation()
# Stop the edit operation.
# Stop the edit session and save the changes
#edit.stopEditing(True)
#if arcpy.Exists(parcel_lyr): arcpy.Delete_management(parcel_lyr)
arcpy.RefreshActiveView()
... View more
01-08-2016
11:20 AM
|
0
|
9
|
1985
|
|
POST
|
Wes suggestion is interesting, i never thought of doing that. I made the change to the code but the Bld_ID for the selected feature doesn't get populated. I will still like to see how to use the if-ten-else import arcpy, os
from arcpy import env
arcpy.env.workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\CCAPTEST (VERSION:dbo.DEFAULT)"
arcpy.env.qualifiedFieldNames = False
arcpy.env.overwriteOutput = True
BldSelection = "CCAPTEST.DBO.BldTaxChar"
Bld = arcpy.env.workspace + os.sep + "CCAPTEST.DBO.BldTaxChar" #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:
# Start an edit session. Must provide the worksapce.
edit = arcpy.da.Editor(arcpy.env.workspace)
# Edit session is started without an undo/redo stack for versioned data
# (for second argument, use False for unversioned data)
edit.startEditing(True)
# Start an edit operation
edit.startOperation()
#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%05d' %Bld_ID
Bld_ID += 1
rows.updateRow(row)
del row
del rows
# Stop the edit operation.
edit.stopOperation()
# Stop the edit session and save the changes
#edit.stopEditing(True)
if arcpy.Exists(parcel_lyr): arcpy.Delete_management(parcel_lyr)
arcpy.RefreshActiveView()
... View more
01-08-2016
10:00 AM
|
0
|
0
|
1985
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2022 11:37 AM | |
| 1 | 10-31-2023 10:16 AM | |
| 1 | 02-16-2023 01:50 PM | |
| 1 | 08-11-2021 11:13 AM | |
| 1 | 01-06-2021 10:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2024
10:42 AM
|