|
POST
|
Thanks for the update/clarification and for posting the links.
... View more
03-17-2016
12:37 PM
|
0
|
0
|
3016
|
|
POST
|
What are you trying to accomplish? I see in your code that you are setting the output feature class name to the name of your input feature class, hence the error message. Are you trying to overwrite an existing feature class with a subselection of itself?
... View more
03-17-2016
10:21 AM
|
1
|
0
|
2895
|
|
POST
|
Correct. As a side note, you should really consider using the os.path module to create file system paths (like feature classes in feature datasets). Starting at the fieldList statement towards the bottom of your script: fieldList = [f.name for f in arcpy.ListFields(fc, "*", "STRING")]
with arcpy.da.UpdateCursor (fc, fieldList) as cursor:
for row in cursor:
row = [(fld if fld is not None else 'TBD') for fld in row]
# row = [(fld if fld else 'TBD') for fld in row] # this would capture empty strings too and not just NULL
cursor.updateRow(row)
... View more
03-16-2016
12:52 PM
|
2
|
0
|
3553
|
|
POST
|
With ArcMap, the easiest way to access a 64-bit Python interpreter that works with ArcPy is to install 64-bit Background Geoprocessing. When you install 64-bit Background Geoprocessing, it installs a 64-bit Python interpreter/package. After the 64-bit Python interpreter is installed, you can point PyScripter to use it instead of the 32-bit one. Just a note of caution/awareness. Since the 64-bit Python interpreter is installed last or after the 32-bit, your Python file associations will likely be pointed to the 64-bit interpreter. Although this isn't an issue most of the time, there are some limitations of the 64-bit ArcPy like no access to personal geodatabases. You can change your Python file type associations back to the 32-bit interpreter if you want. Also, since ArcGIS Pro is natively 64-bit, you can also access 64-bit ArcPy by installing that application.
... View more
03-16-2016
11:40 AM
|
1
|
2
|
7029
|
|
POST
|
I may not be describing this perfectly, but the gist of your problem relates to how dictionaries "store" information. A Python dictionary doesn't store the actual values in it, it stores pointers to locations in memory. So, a single call to sys.getsizeof() isn't giving you the total size of the data in the dictionary as much as it is giving you the total size of the data structure that is containing all of the reference information to your data. >>> from sys import getsizeof
>>> dic1 = {1:range(1)}
>>> dic1
{1: [0]}
>>> getsizeof(dic1)
140
>>> dic2 = {1:range(100)}
>>> dic2
{1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..., 98, 99]}
>>> getsizeof(dic2)
140
>>> The Python 3 documentation for sys.getsizeof() references a recursive sizeof recipe that should work for you.
... View more
03-16-2016
09:55 AM
|
1
|
4
|
7029
|
|
POST
|
Not sure if this gets you to exactly where you want to be, but Project templates are the first thing that come to my mind.
... View more
03-15-2016
09:26 AM
|
1
|
1
|
1303
|
|
POST
|
Can you provide a bit more information about your datasets? I was just able to apply a definition query to a feature class in a file geodatabase and export a layer package without any errors.
... View more
03-15-2016
08:14 AM
|
0
|
1
|
3967
|
|
POST
|
Kory Kramer, thanks for following through and updating the GeoNet discussion.
... View more
03-15-2016
08:04 AM
|
0
|
0
|
2667
|
|
POST
|
It appears to be a bug, you should submit an Esri Support incident (Incident opened, bug logged). I can reproduce the behavior using a table in a file geodatabase. If you use a cursor, the correct values are shown, it is just a display issue in ArcGIS Pro.
... View more
03-15-2016
06:39 AM
|
0
|
1
|
2667
|
|
POST
|
Providing a bit more information might help us help you better: What Desktop product are you using? ArcMap or ArcGIS Pro? What version of the product are you using? What type of cursors are you using? There are the original/older cursors and the not-so-new-now ArcPy Data Access cursors. What is your backend data store? File geodatabase, personal geodatabase, enterprise geodatabase? If the latter, what DBMS and version? What are the properties of the field you are trying to edit?
... View more
03-15-2016
05:54 AM
|
1
|
0
|
1186
|
|
POST
|
Forward-looking statement or incomplete statement? Arguable, I guess, but Pro 1.3 is what should have been stated. For now, the plan appears to be just for Pro, not for ArcMap.
... View more
03-10-2016
09:00 AM
|
0
|
0
|
3016
|
|
POST
|
Although the correct answer has been stated already, here is a link to some relevant documentation: 001324: Personal Geodatabases are not supported in 64-bit versions of ArcGIS. Description Personal geodatabases do not scale well in the 64-bit environment. They cannot be used by 64-bit versions of ArcGIS. Solution Modify your data sources to a supported type with 64-bit ArcGIS. Using the Create File GDB tool, you can create a file GDB and then import your layers into it using the Feature Class to Geodatabase (multiple) tool. As the error description states, this isn't an ArcGIS Pro issue, per se, it is a 64-bit ArcGIS issue. Whether one is talking about ArcGIS for Server, Background Geoprocessing (64-bit), or ArcGIS Pro; personal geodatabases aren't supported because the applications are 64-bit.
... View more
03-05-2016
07:00 PM
|
1
|
0
|
5334
|
|
POST
|
I just installed Pro 1.2 on an ArcMap 10.4 machine, and I must be missing something because I don't see Conda or anything that looks like Conda. This is starting to feel a bit like the ArcGIS 10.3.1 SciPy announcement. How do those financial types couch it again, in their prospectuses? Oh yeah, "forward looking statements." Maybe the session description is a present-tense forward-looking statement.
... View more
03-05-2016
06:44 PM
|
2
|
3
|
3016
|
|
POST
|
I was looking over the detailed agenda for the Esri Developer Summit, and I came across a session that states Conda is now included with ArcGIS Pro: Harnessing the Power of Python in ArcGIS Using the Conda Distribution. Python has a rich ecosystem of packages you can use in your own code, but installation used to be complex. Conda is included with ArcGIS Pro, and allows you to easily install libraries into your Python environment, and distribute that code to others. Join us and learn to bend Python to your will. *This session will be offered complimentary on Esri Video following the Developer Summit I must admit, this was news to me, and I haven't had time to dig into it more. At this point, I haven't found much else in terms of documentation about it, but at least this session's video will be available for free after the summit.
... View more
03-05-2016
02:08 PM
|
0
|
10
|
6996
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 07-17-2026 06:54 AM | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|