Quantcast
Channel: Question and Answer » arcpy
Browsing all 767 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Building extraction with LiDAR data (Improve Process)

I have the following process for automatically creating building outlines/footprints from Las files and was wondering if anyone can help improve it or has suggestions for other processes to use?...

View Article


Failed to run Local Geoprocessing tool in ESRI runtime sdk

I have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service in 10.2.5,I get below errors. The application is running using developer...

View Article


How do I data page with arcpy?

I have a enterprise SDE feature class and need to retrieve its data. Attempting to copy all the data at once appears to be problematic. How do I take a feature class and split up the data retrieval...

View Article

Code converting lat/long coordinates (WKT) to polygon (shapefile) not working

I am having a problem converting WKT to shapefile. I have a csv file consisting of three columns: ID, Name (of the area) and WKT comprising set of lat/long coordinates of area boundaries. For example,...

View Article

map(arcpy.AddError, traceback.format_exc().split(“n”))

What does this expression mean? I see this in many python scripts. try: ... except Exception as e: import traceback map(arcpy.AddError, traceback.format_exc().split("n")) arcpy.AddError(str(e))...

View Article


geoprocessing service errors 010429, 010302, 010067- works as script tool but...

I have a Python script that creates constant rasters based on user input. The script works when run as a script tool in ArcMap, so I can publish it as a geoprocessing service. But when I run it as a GP...

View Article

ArcMap 'in_memory' trouble?

Being new to ArcMap, and ArcPy I have a problem with a script including several geoprocessing functions. The number of functions inspired a search for a means to save outputs (subsequent inputs) to...

View Article

Image may be NSFW.
Clik here to view.

Looking to find (or build) a particular Python geoprocessing tool

So here is my situation: There is a large area (a wildlife refuge) of nearly 200,00 acres that we have loads of spatial data for, from habitat management projects from the past several years. My boss...

View Article


Using a Value Table to Calculate Multiple Fields

I’m looking to develop a tool (ideally through model builder as my python writing ability is not stellar) that creates a simple user interface that has dropdown menus for desired fields of a selected...

View Article


Image may be NSFW.
Clik here to view.

Confusing results from script that uses arcpy.clip analysis?

Following on from previous question Python code that uses arcpy.describe skips if statement?, I have now attempted to include clip analysis and this is my result; I am confused as to what is happening,...

View Article

add multiple rasters, each located a branch too deep in separate folders –...

I have a year of daily raster datasets (365) that I would like to use the Cell Statistics tool on; however, each raster is located in a separate folder so I cannot add all of them at once. ie:...

View Article

Partial Text String replace for Standard Annotation Feature Class Inconsistent

We have several hundred mxd maps that contain standard annotation feature classes. Each map is of different municipalities and each annotation file includes municipal boundary labels. Depending on the...

View Article

Python toolbox works in ArcToolbox and in Python console, but not in ArcCatalog

I have a set of Python tools in a Python toolbox (.pyt). They are broken into multiple files and modules and have been functioning correctly, but now I’m seeing inconsistent behavior on multiple...

View Article


Ways to reduce buffer if it passes through a certain layer

I am trying to do WiFi analysis on signal strength in ArcGIS Desktop, and one of the big problems that I am running into is how to reduce the signal when it comes in contact with a wall, as it does in...

View Article

SDE State ID with Python

I have created a Python script which compresses an ArcSDE geodatabase and now I would like to view the State ID after the compress. Is there a way with Python I can get this info?

View Article


Using a list to access database from a layer

I am trying to access the database using a list in order to put it in a loop but I can’t make it work. I want to replace the months with a list variable. This is the hard core example:...

View Article

Making Python Add-Ins for ArcMap after installing ArcGIS Pro prevents...

I’ve been working quite a lot with Python Add-Ins over the past week or so in a Windows 7 SP1 configuration with ArcGIS 10.3.1 for Desktop and ArcGIS Pro 1.0.2 installed. I also installed Python 3.4.1...

View Article


Updating Field Mappings Parameter on table selection in Python Toolbox?

I am building a python toolbox with ArcPy and would like to associate an input feature class parameter with a field mapping, so that once user selects the input feature class the field map populates...

View Article

Pythonw has stopped working when running arcpy.SubsetFeatures_ga

I’m currently trying to subset a shapefile into training and validation files. When I run the following line of code, python crashes. I’m using ArcGIS 10.1. arcpy.SubsetFeatures_ga(current_shapefile,...

View Article

map(arcpy.AddError, traceback.format_exc().split(“n”))

What does this expression mean? I see this in many python scripts. try: ... except Exception as e: import traceback map(arcpy.AddError, traceback.format_exc().split("n")) arcpy.AddError(str(e))...

View Article
Browsing all 767 articles
Browse latest View live