A site-package created by Esri to expose GeoProcessing from ArcGIS to Python.

learn more… | top users | synonyms (7)

0
votes
0answers
5 views

Filtering parameters values

I have posted this question 10 days ago but I still have the same problem I am trying to make a tool in which there are many sequence parameters (based on the same field of a feature class), and each ...
0
votes
2answers
14 views

Copying feature from one feature class to another without creating new feature class?

i need to copy a line feature from a line feature class to another existing feature class without creating a new feature class. As copy feature tool creates the copies feature in a new feature class ...
0
votes
1answer
15 views

Choosing data type to use for input as feature class or shapefile in Python script tool using ArcPy?

I am writing a Python script tool within a toolbox with *.tbx extension. I need to make the input parameter flexible (feature class or shape file) , so which data type I should select for this ...
0
votes
0answers
9 views

Creating two multi-choice lists for field value selection in ArcPy?

Related to one of my other questions (Creating multi-value choice list of field values and using selected for select in ArcPy?) I have a follow-up question. I have set up two of these multi-choice ...
-1
votes
1answer
23 views

Finding common two vertices for two adjacent polygons and drawing line feature connecting them in ArcGIS for Desktop?

I need to find the common two vertices between two adjacent polygon and draw a line feature connecting these two common vertices: I have tried the following code but it is not working: polygon1 = ...
0
votes
2answers
21 views

Converting all values in attribute table to zero (0) in shapefile using ArcPy?

I'm looking for a python script using ArcPy that can convert all values in a shapefile's attribute table to a value of 0 as I will then populate with other values from another source. I have ...
0
votes
0answers
5 views

how to set a default value for GPFeatureLayer parameter in arcpy

I'd like to provide a default value for a GPFeatureLayer parameter in arcpy. The parameter is created like this: paramPointFeatures = arcpy.Parameter( displayName ='A point layer', name ='...
1
vote
3answers
23 views

arcpy field mapping for a spatial join: keep only specific columns

I want to perform a spatial join to find the join point (a node in the code below) that is closest to a target point (a consumer in the code below). In the result, I only need certain attributes from ...
0
votes
0answers
27 views

I can't import arcpy to python in arcgis. What do I do?

I'm running ArcGIS 10.3 on Windows 10. I get an error message when I try to import arcpy. I'll include the error message that I print screened. Should I just un-install ArcGIS and reinstall it? or ...
1
vote
1answer
30 views

ArcGIS Calculate Field, Python Shape Expression

Using ArcGIS 10.1 and Python 2.7- I am trying to write an expression that calculates the mid point of a line. I've tried many different expressions, but I continue to get syntax errors. #An example ...
0
votes
0answers
15 views

Set Script Tool Parameter to Accept Either Input or Output

I've created a script tool that has an optional output parameter of an Excel Workbook. If it's populated, the script will add a new worksheet. However, every time the tool is run, ArcGIS is somehow ...
0
votes
1answer
28 views

Can't get new rows added with Arcpy / InsertCursor

I'm not getting any errors but can't seem to get these rows added. Everything else in the script works fine. I only dabble with Python occasionally so please forgive me for missing anything obvious ...
0
votes
1answer
12 views

Arcpy MakeFeatureLayer_management issue using SQL condition

I have a lines shapefile. I made a small code to select some of its elements and turn them into a standalone layer. The code is like this: arcpy.env.workspace = r"C:\MyDirectory\Mygdb.gdb" network = ...
1
vote
0answers
41 views

Using file opened by GUI in python?

I have these lines of code: import tkFileDialog, arcpy, arcpy.da, numpy as np, Tkinter import arcpy.mapping as mapping fc = tkFileDialog.askopenfilename(filetypes=[('shapefiles','*.shp')],title='...
1
vote
1answer
33 views

Problem looping and summing rasters using ArcGIS 10.3 and Python Script

I need a python script that seeks to cycle through a number of viewpoints, deriving an AGL raster in each case (using arcpy.Viewshed_3d) and progressively summing the AGL rasters into a single ...
0
votes
1answer
31 views

Parsing error SyntaxError: EOL while scanning string literal (line 5)

I want to create a number of featureclass using a template featureclass import arcpy from arcpy import env env.workspace = "C:\new_docs\BIO-FILES\GIS_prog\Lesson1" arcpy.CreateFeatures_management('C:...
1
vote
1answer
20 views

lyr replaceDataSource not reflecting

The changes I made to the MXD with ArcPy is not reflecting the changes in ArcMap. arcpy.env.workspace= "C:\Users\UserID\Desktop" mxdlocation=os.path.join(arcpy.env.workspace,mxdname) mxdloc = ...
0
votes
0answers
27 views

Updating table from Excel spreadsheet using ArcPy? [on hold]

This is my code import arcpy arcpy.env.workspace = r"D:\Users\ShawnO\Desktop\PythonExercizes\Parcel_Ownership_update_model\Parcels.gdb" # Local variables: Parcel_Owners = "D:\\Users\\ShawnO\\Desktop\...
0
votes
0answers
19 views

ArcGIS 10.3.x Python tool script - Automatically adding multivalue output feature class to display

I am developing a Python tool script in ArcGIS 10.3.x that is meant to be later published as a geoprocessing service. The tool script produces two output feature classes that I would like to ...
1
vote
2answers
50 views

Iterate over multiple shapefiles, changing year from “2014” to “2015” in file name

I have about 50 shapefiles I would like to change each of their file names which contains "2014" to "2015". I would like to use a python script but have not been able to figure out how to do it. I ...
1
vote
1answer
49 views

Using arcpy.da.SearchCursor() to update text elements?

This is an update from my original post for more specificity. I have grown a lot in the past 48hrs regarding my Python ability. At this point, I can use SearchCursor to update a single Text Element ...
0
votes
1answer
38 views

Python new packages installation with ArcGIS interpreter?

I would like to introduce some functions derived from scipyin my code. Since I also need arcpy, I use the Interpreter installed inside ArcGIS, whose directory is: (C:\Python27\ArcGIS10.3\python.exe). ...
0
votes
0answers
15 views

How can Auto connect the two points with layer HW by ARCPY [on hold]

How can Auto connect the two points with layer HW
1
vote
1answer
30 views

Appending Feature Class from Geodatbase to another using ArcPy?

I'm trying to write a python script to load feature class from an existing geodatabase to a new one, here is my script: import arcpy from arcpy import env import os import traceback #Set up ...
0
votes
0answers
15 views

Pixel based 10 year NDVI time series

I would to do pixel based 10 year NDVI time series analysis using MODIS data. I’ve 3 seasons in a year. Should I average all values in the study area per season?
0
votes
1answer
33 views

Finding field with maximum value and field name using ArcPy cursor?

I was wondering if an equivalent of summary statistics exists for finding such statistics across fields rather than records in a table. For example, of several fields, I wanted to find which one has ...
2
votes
1answer
41 views

How to set a python code to trigger on any update on a feature class

For example, when I have a geometry change on a point, I would like to update the X and Y fields to the new current location, I understand how to make the code, but not where do I set or put it to be ...
2
votes
3answers
68 views

ArcPy find points that are paired in time and space

I have a shapefile that that is time stamped and tracks two animals. I would like to create a field that denotes "together" based on proximity and location. And example of the data is: time ...
-1
votes
1answer
40 views

Trying to copy all feature classes from one folder to another folder using python but it failed to run

try: arcpy.env.workspace = "C:/WCGIS/Geog485/Lesson1" fcList = arcpy.ListFeatureClasses() for featureClass in fcList: arcpy.CopyFeatures_management(featureClass, "C:/WCGIS/Geog485/Lesson2/...
1
vote
0answers
12 views

Dataset C:\msurya\teritory.sd does not exist or is not supported Failed to execute (UploadServiceDefinition)

I am trying to execute the pythonscript code for the automation of a mapservice. While execution tempdraft.sddraft, and updatedDraft.sddraft files are automatically generated but .SD file has not ...
0
votes
0answers
44 views

Data Driven pages to PDF Python

I am trying to get a script to export each selected data driven page to a pdf. Basically I want each page of the data driven pages in its own PDF. I tried using the method from this page https://blogs....
0
votes
0answers
15 views

A Dynamic Office Address [on hold]

This is a strange question, which I am trying to python my way out of, but to no success. I am trying to make a set of GIS templates created for my company (33 office locations all over the eastern ...
2
votes
0answers
18 views

How to export specific DDPs from a set of DDPs?

I have a set of data driven pages and I would like to have a string parameter in the tool that allows me to export specific pages from the set of data driven pages. An example would be if I had a set ...
1
vote
2answers
23 views

Where are Service Area Layers? How to delete them?

Using arcpy I can make a service area layer in Network Analyst like this: outSAResultObject = arcpy.na.MakeServiceAreaLayer(inNetworkDataset, outNALayerName, ...
0
votes
1answer
51 views

Unable to calculate field correctly using ArcPy

I am attempted to calculate a field in a feature class ("Feat_Class_1", by using the count of selected features within another feature class ("Feat_Class_2") as a numerator, while using the value of a ...
2
votes
1answer
26 views

Debugging FeatureClassToFeatureClass giving ERROR 000732?

I get this Error when trying to run the FeatureClassToFeatureClass_conversion: Traceback (most recent call last): File "", line 1, in arcpy.FeatureClassToFeatureClass_conversion(...
-4
votes
0answers
40 views

Simulate the building shadows on street through python package of ArcGIS [closed]

I am new to ArcGIS. I want to simulate the shadows of building on street based on different sun angles. Could the python package of ArcGIS do this job? Or should I use the javascript API? Can you ...
1
vote
1answer
71 views

looping to process multiple files in the same folder using Python

I have a folder with filenames bio1_36.tif, bio1_37.tif, bio2_36_tif, bio2_37.tif, and so on. There are 19 bio variables and 36 and 37 at the end refer to the tile numbers. My goal is to mosaic the ...
0
votes
0answers
26 views

Selecting desirable records from a table and inserting them in another table

I have a shapefile which is the result of intersection between two polygons. In the records of intersection polygon some features in the polygon no 1 has many intersections with no2 polygons and I ...
-1
votes
1answer
44 views

Export field list to excel or csv

I've got the below script and found very useful. But I need the list of fields to be exported to excel or csv. import arcpy #Set workspace environment to geodatabase arcpy.env.workspace = "e:/temp/...
0
votes
0answers
13 views

TypeError: ExportToPDF() got an unexpected keyword argument 'page_range_string' [closed]

My code keeps give me the error: TypeError: ExportToPDF() got an unexpected keyword argument 'page_range_string' Anyone have any idea whats causing this? import arcpy inputList = arcpy....
0
votes
0answers
17 views

Generate Near Table equivalent using a cost surface

I'm using ArcGIS 10.3 to calculate the distance from every point in a feature layer (scientific study sites) to the nearest 2 points in a different feature layer (sites infected with a waterborne ...
0
votes
0answers
11 views

Using Extract Multi Values To Points to return OBJ ID not actual attribute values?

This code extracts the OBJECTid from the rasters. Is there a way to obtain the actual attribute values? EMVTP (http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/extract-multi-...
1
vote
1answer
33 views

Finding angle between vertices to estimate curvature in the same feature class using python script?

Background info What I'm attempting to create is an estimation of curvature, by finding the angle between vertices. The vertices layer was created from using the "Split line at vertices tool" on a ...
0
votes
2answers
54 views

ArcGIS, arcpy, SQL expression issue

I have polygon featureclass (BookmobileLocations) which has one field (Marker, data type Text). The field Marker has values (Site 1, Site 2, Site 3...). I want to do query using Select_Analysis.The ...
0
votes
1answer
46 views

How to access output parameters from a Python Toolbox Tool called by .NET?

I am trying to access an output parameter from a Python toolbox tool and cannot find any information about how this is done: I am developing an Esri Add-In for ArcGIS 10.1 SP1 for Desktop (Build 3143)...
0
votes
0answers
40 views

How draw this multi feature with ARCPY? [closed]

How draw this multi feature with ARCPY?
2
votes
1answer
52 views

Is it possible to inherit a session in ArcGIS 10.0 through the Python window?

So, I'm still struggling with an ESRI 10.0 installation with an Oracle ArcSDE database. I'm nearing the end .... In trying to programmatically edit the versioned data. It needs to be done in an ...