POST
|
Add a where clause to your search cursor SearchCursor—Help | ArcGIS for Desktop import arcpy
fc = r"Your\feature\class\here"
fld = "fieldName"
sType = "ValueYourLooking4"
whereclause = """{} = '{}'""".format(arcpy.AddFieldDelimiters(fc, fld),sType)
count = 0
with arcpy.da.SearchCursor(fc, fld, whereclause) as rows:
for row in rows:
count+=1
print count
... View more
01-31-2017
01:21 PM
|
2
|
1
|
2747
|
POST
|
How do you plan to get the user to input the data? Will this be a model, a python addin or other? My first thought would be Select Layer By Attribute—Help | ArcGIS for Desktop then Get Count—Help | ArcGIS for Desktop EDIT: Just read your second post all the way. Still would need to know what you intend for an input. You could use a query on your search cursor to limit the number of records. Then loop through and count them.
... View more
01-31-2017
12:58 PM
|
0
|
3
|
2747
|
POST
|
arcpy.SetParameterAsText in this case the index number should be 1 you already have arcpy.GetParameterAsText index set at 0. also you need to set x = "something" before set parameter as text
... View more
01-18-2017
11:15 AM
|
0
|
0
|
1335
|
POST
|
You could try a query based on parcel size. Find out the smallest parcels being labeled then create a table for those less than that size.
... View more
01-18-2017
10:54 AM
|
0
|
0
|
1354
|
POST
|
I usually number everything with the OID field then turn off all fields i don't need and add table to the map.
... View more
01-17-2017
01:03 PM
|
1
|
2
|
1354
|
POST
|
Could you post the code you are currently using? If you are using the code from above line 40 sets a spatial reference that may be different from the feature class you are using.
... View more
01-12-2017
11:19 AM
|
0
|
1
|
1888
|
POST
|
Did you check if Length and PlotNumber fields exist in the data. Also check Properties Label tab Expression. There may be syntax error there.
... View more
01-09-2017
08:01 AM
|
1
|
0
|
9824
|
POST
|
Kelly thanks for your response. I was accessing with a web map using http. On my older sites changing http to https does put the my location back on the map, however it zooms to close to the location to be useful. I've been following the instructions to create a web app with the my location widget. I'm now encountering a different problem. Without the 's' the map shows fine with widget not working http://florencesc.maps.arcgis.com/apps/webappviewer/index.html?id=4a78b1580a434883af9fa973225e33a4 When I add the 's' the app can't load the map service but the widget works https://florencesc.maps.arcgis.com/apps/webappviewer/index.html?id=4a78b1580a434883af9fa973225e33a4
... View more
01-04-2017
05:28 PM
|
0
|
2
|
1062
|
POST
|
At one time there was a my location for ArcGIS Online maps that appears to be missing now. Is there some field that needs to be toggled\enabled to turn my location back on? The tools location was where the red line has circled and was only on when the map was used on a mobile device.
... View more
01-04-2017
08:16 AM
|
0
|
4
|
1590
|
POST
|
On the layers label tab in the properties dialog. Change method to "Define classes of features and label each class differently" Then you could set "SQL Query" to be whatever restrictions you need.
... View more
12-22-2016
12:03 PM
|
1
|
1
|
662
|
POST
|
Calculate Density—ArcGIS Online Help | ArcGIS Find Hot Spots—ArcGIS Online Help | ArcGIS
... View more
10-20-2016
07:41 AM
|
0
|
2
|
557
|
POST
|
You may also be interested in AddFieldDelimiters—Help | ArcGIS for Desktop
... View more
09-30-2016
06:31 AM
|
0
|
0
|
1108
|
POST
|
Is your sde user an admin.? I pretty sure the user must have admin. to run these tools.
... View more
09-29-2016
08:32 AM
|
0
|
9
|
1478
|
POST
|
Are you willing to load your data into a geodatabase you could use Make Query Table—Help | ArcGIS for Desktop to accomplish what your after.
... View more
09-22-2016
05:37 AM
|
2
|
1
|
731
|
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
|