|
POST
|
Looks like the solution posted there is very similar to mine. Thanks for the follow-up Dan.
... View more
05-01-2015
04:51 PM
|
0
|
0
|
2577
|
|
POST
|
Could you try something like this? If applicable, Add Field to store sequential id Since you're on 10.2, you can create an update cursor with a sql clause using ORDER BY (see second to last code sample). The link is for 10.3 but I've tested this in 10.2.2 on SDE and file geodatabase just fine. Set up the iteration on the cursor using enumeration Iterate through the cursor and update the sequential id field with the enumeration number I haven't tested this, but here's an example: def main():
import arcpy
import os
temp_gdb = r"C:\Temp\MyGDB.gdb"
fc = os.path.join(temp_gdb, "MyFC")
# Step 1
arcpy.AddField_management(fc, "SeqID", "SHORT")
# Step 2
fields = ["OID@", "MySortField", "SeqID"]
with arcpy.da.UpdateCursor(fc, fields, sql_clause=(None, 'ORDER BY MySortField')) as u_cursor:
# Step 3
for seqid, row in enumerate(u_cursor, start=1):
# Step 4
row[2] = seqid
u_cursor.updateRow(row)
if __name__ == '__main__':
main()
... View more
05-01-2015
04:31 PM
|
1
|
8
|
3957
|
|
POST
|
When using Esri tools, I've always understood that append was the quickest way to do a mass insert. You could also try Copy Rows to see if that's any different.
... View more
05-01-2015
03:41 PM
|
1
|
1
|
2925
|
|
POST
|
Our solution is to break the attribute table apart and put the secured fields in a separate table that is related to the master feature class. You can then set all the necessary permissions on the related table(s).
... View more
04-29-2015
01:17 PM
|
0
|
1
|
893
|
|
POST
|
Have you tried using the find and replace data Source feature in ArcCatalog? ArcGIS Help 10.1 - Setting data sources
... View more
04-28-2015
03:44 PM
|
1
|
2
|
1207
|
|
POST
|
Looks like you accidentally posted this in the GeoNet Help section. It should probably be in ArcGIS API for JavaScript
... View more
04-28-2015
03:41 PM
|
0
|
2
|
2830
|
|
POST
|
Our City government keeps accurate address data for permitting, billing, and emergency response. Our GIS serves as the authority system of record for addresses so all other systems for permitting, work orders, utility billing, emergency response, etc rely on accurate addresses in GIS to perform their particular function well and be compatible with the other integrated systems. GIS also keeps our addresses as a point feature class, which allows us to build a composite address locator that first uses address point for the most accurate result, then street ranges for the next best guess. The composite address locator is used for various adhoc geocoding operations.
... View more
04-28-2015
01:35 PM
|
2
|
0
|
4061
|
|
POST
|
always provide a return of some sort, otherwise it is a crap shoot I like this suggestion from Dan Patterson. In addition Joshua Bixby recommends using one return for a single exit point (like Dan's "better format" code above), rather than having multiple returns. The Python Code Style agrees. When a function grows in complexity it is not uncommon to use multiple return statements inside the function’s body. However, in order to keep a clear intent and a sustainable readability level, it is preferable to avoid returning meaningful values from many output points in the body.
... View more
04-24-2015
08:31 AM
|
0
|
0
|
1881
|
|
POST
|
I haven't done this, but maybe you can find something useful in this Esri Blog post about ARCREST. Spatialize Your Water Utility Data with ArcGIS | ArcGIS Blog
... View more
04-23-2015
02:52 PM
|
0
|
0
|
5571
|
|
POST
|
This functionality already exists in the attribute table of the layer you've made the selection. ArcGIS Help 10.1 - Exporting tables It will export only the selected features by default. Just choose "Text File" as your format and it is formatted with comma delimiters. If you like, you can just change the file extension to csv in the export dialog before you click OK.
... View more
04-21-2015
03:48 PM
|
0
|
0
|
2883
|
|
POST
|
Try switching the inputs, so the near features are the points and the input features are the shorelines.
... View more
04-21-2015
01:00 PM
|
1
|
0
|
2490
|
|
POST
|
It looks like you may have some incorrect indentation in the delete paths section. Here's your same code with the correct indentation: ### __________________DELETE PATHS ASSOCIATED WITH MXD___________ ###
print("Time to delete")
if os.path.exists(WorkPath):
print("deleting...")
try:
shutil.rmtree(WorkPath)
except:
raise
else:
print("No such path:" + WorkPath)
print("Deleted working and scratch folders in the MXD location:" + path)
shutil.rmtree(ProjFolder)
print("Deleted the project table output folder in" + TabPath)
shutil.rmtree(GDBpath)
print("Deleted the project geodatabase in the MXD location:" + path)
... View more
04-16-2015
09:13 AM
|
1
|
2
|
4465
|
|
POST
|
I post fewer than 10 questions per month are posted on GeoNet. Sometimes (or rarely) will contact Esri support if a question was unanswered on GeoNet. I would wait up to one week to get an answer on a GeoNet question before contacting Esri. If it is an urgent question I would probably go straight to Esri support. I would sometimes not bother contacting Esri support after posting an unanswered question on GeoNet just because it isn't urgent or mission critical. Yes. If there is someone capable of answering my question, I would always appreciate the information; I don't care if they are from Esri or Antarctica.
... View more
04-15-2015
11:37 AM
|
0
|
0
|
2091
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM | |
| 1 | 12-01-2025 06:19 AM |