arcpy

Select by attributes and delete selected records with arcpy

Select by attributes and delete selected records with arcpy Question: Got 11 Tables exported to gdb from excel files. Those Tables have the same structure (same fields) but different data. Records from the Tables contain useless data which needs to be deleted in the script process. In ArcGIS Pro I delete that useless data with …

Total answers: 1

how can i do to export layers from Esri with python

how can i do to export layers from Esri with python Question: i try to join a text (an adress) with a list to have at final my list with the adress in fisrt like: paris street 1 paris street 2 etc so i try to do that with this script, but it’ dont work …

Total answers: 1

Arcpy scripts keep giving an error "TypeError: expected string or bytes-like object"

Arcpy scripts keep giving an error "TypeError: expected string or bytes-like object" Question: I am new to arcpy and most of python too. My new org has arcpy scripts (written by ex-employee) that would convert TAB files to shp and also create buffer zones in an shp. It was working great until we upgraded ArcGIS …

Total answers: 2

Unzip all zipped files in a folder to that same folder using Python 2.7.5

Unzip all zipped files in a folder to that same folder using Python 2.7.5 Question: I would like to write a simple script to iterate through all the files in a folder and unzip those that are zipped (.zip) to that same folder. For this project, I have a folder with nearly 100 zipped .las …

Total answers: 5

how to create datetime from a negative epoch in Python

how to create datetime from a negative epoch in Python Question: First timer on StackExchange. I am working with ArcGIS Server and Python. While trying to execute a query using the REST endpoint to a map service, I am getting the values for a field that is esriFieldTypeDate in negative epoch in the JSON response. …

Total answers: 4

python dict to numpy structured array

python dict to numpy structured array Question: I have a dictionary that I need to convert to a NumPy structured array. I’m using the arcpy function NumPyArraytoTable, so a NumPy structured array is the only data format that will work. Based on this thread: Writing to numpy array from dictionary and this thread: How to …

Total answers: 5