Skip to main content

All Questions

Tagged with
0 votes
0 answers
859 views

Can't read a shapefile in geopandas due to encoding

I'm working with ArGIS Desktop 10.5 and python 2.7, and just installed geopandas to try it out. However, when I tried to read a shapefile, I received an encoding error: import arcpy import geopandas ...
Karol Duarte's user avatar
5 votes
2 answers
3k views

Get feature class names inside ESRI File Geodatabase

I have a project folder with many many folders within that. Some of these child folders contain an ESRI File Geodatabase(s). I want to list all the feature classes that are inside the GDBs that have ...
MapsEveryWhere's user avatar
0 votes
1 answer
124 views

AssertionError: Invalid MXD filename

I am trying to publish a draft service definition using arcpy.mapping.CreateMapSDDraft and am getting the referenced Assertion Error. I've tried the responses to users with similar questions with no ...
r2dave2's user avatar
  • 61
0 votes
1 answer
745 views

Cannot use "CalculateGeometryAttributes_management()" tool to calculate the centroids of features with Arcpy

I've been trying to run some code in Python with ArcPy library. Everything is working fine, but in the end of the code there is a part that I want to calculate the centroids, x and y, with ...
caio.valente14's user avatar
0 votes
0 answers
265 views

Loop to Apply Multiple Symbology to Multiple Layers

I am trying to apply multiple symbology to multiply layers that I have created from multi-tasking custom tool. The tool applies buffer, clip tool to multiple feature classes and then all the feature ...
DjarumX's user avatar
  • 23
0 votes
1 answer
39 views

Comparing field of a table to calculate another field using ArcPy cursor?

How can I compare one field of a table to calculate another field? I have a table containing 'SL', 'Name' and 'Value' fields. I need to calculate the total value each name have. Example is shown in ...
Shuvo's user avatar
  • 1
0 votes
2 answers
149 views

Change nameString using arcpy?

Is it possible to change the describe nameString of a .lyr file using arcpy? The name of the .lyr file is correct, but when the .lyr is brought into an .mxd the display name (nameString) is different, ...
Pdavis327's user avatar
  • 960
2 votes
1 answer
163 views

Create .lyr file from open .mxd layer without removing layer

I have a tool that is meant to clip and reproject every layer in an open .mxd, and then create a new feature class and .lyr file with original symbology from the result, not adding either to the .mxd. ...
Pdavis327's user avatar
  • 960
1 vote
2 answers
66 views

Set the feature class for a Python script to act upon in ArcMap

I want to use Python in ArcMap 10.5 Python window to give me the longest string in a field. I need to trim down some shapefile (they have to be shapefiles) file sizes. I want to reduce field lengths ...
sparky's user avatar
  • 450
0 votes
0 answers
165 views

Getting attributes from JSON arcpy

I'm trying to get the first attribute element in the JSON list. This data is from the operational layer which I am able to parse through. However, I can't seem to get the attributes from the first ...
Demon's user avatar
  • 143
0 votes
1 answer
379 views

ArcGIS python script freezes when using ctypes MessageBox

I have written a simple ArcGIS python script tool that takes only one input, a file, and displays a "Yes/No" message box when the script is run. The script runs, but the message box pops up behind ...
Rovsom's user avatar
  • 3
1 vote
1 answer
771 views

Using output parameters as input parameters in Python Script Tools?

I created a script tool in ArcMap 10.5. How do I set an output parameter from a tool in the script as an input parameter in another tool at a later point in the same script? Like: buffout = arcpy....
jbrengel's user avatar
  • 235
1 vote
2 answers
767 views

Using MultiProcessing With Update Cursor?

I am trying to use multiprocessing to help me run a tool that will clip a feature and sum an attribute in it. The tool needs to iterate through about 24,000 rows of a featureclass while doing this. ...
jchest's user avatar
  • 58
0 votes
1 answer
3k views

Install pyodbc module for ArcGIS 10.5 [closed]

My script calls: import pyodbc ...but returns error: Traceback (most recent call last): File "C:\MyPyScripts\extract.py", line 1, in <module> import pyodbc ImportError: No module ...
Matt Goodman's user avatar
1 vote
1 answer
215 views

Renaming extension ".out" to ."txt" in ArcGIS ModelBuilder?

I am trying to rename a XXXX.out file into a XXXX.txt file for it to be read into the rest of my very large model that does other things. This ".out" really is a simple ".csv" file and once I have ...
ESmith's user avatar
  • 33

15 30 50 per page