Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live

df.Selectefeatures() Method

Does anybody have any idea about a method like this in python? I just guess that it could be like this. Code: df.SelecteFeatures() # or df.SelecteFeaturesByRectangle() I appreciate your help Babak

View Article


Connect point features from separate files based on cell value

Hoping someone could point me in the right direction. I have two shape files, type point. I am trying to map the connections between each point based on a unique, matching attribute value in each file....

View Article


Attaching a python script in a custom tool to live in a custom toolbox,

Attaching a python script in a custom tool to live in a custom toolbox, I couldn’t manage how the script below (http://resources.arcgis.com/en/help/...000000v7000000) can be attached in a custom tool...

View Article

Append_management fails, when run with Python on personal GeoDB outside ArcGIS

Append_management and GetCount_management fails, when run with Python on personal GeoDB outside ArcGIS. When I run the script below from a toolbox in ArcCatalog, it works fine. But when I run it from...

View Article

vbScript to Python: Help a newbie

I'm new to python and can't figure out how to convert this vbscript. Can anyone help me out? Thanks! Code: Dim INIOILCAT Dim FINOILCAT If [DIST] = "NO" Then         INIOILCAT = "NO"         elseif...

View Article


Reorder Python Addin Elements without Rebuilding Entire Addin?

Does anyone know of a way to reorder Python Addin elements built in the Addin Assistant without having to rebuild the entire thing? Situation: I built a couple of toolbars and toolpalettes, buttons,...

View Article

ListWorkspaces command different for 10.1???

so i have been having problems accessing tables in an mdb using arcpy on our server running arcgis10.1. i think i have figured out part of the problem. running this script: Code: import arcpy...

View Article

Calculate field iteration through several GDB in one Folder

Not sure why I cannot get this simple script to work. I feel like I have been using python regularly but do not understand why this script will not work. I get a Syntax error on line 14. I have tried...

View Article


definition query and mosaic dataset from gdb ArcMap 10.1 SP1

I have a Python AddIn Combobox to select a value from the drop-down list. This value changes the definition query of the layers in mxd. This works fine for "normal" feature classes, not for a mosaic...

View Article


loop through a list of mxds (user input)

Hello, everybody! I have adapted a script that changes the data sources of the layers in one mxd provided by user input. All I want is to have this script accept multiple mxds from user and loop...

View Article

Add Definition Query to all Layers in MXD that reside in SDE only

Hi, I am trying to add a definition query to all layers in an MXD that reside in an SDE database and not those that do not. The below code will add the definition query "RID = 111" to all layers in an...

View Article

How to convert csv to shapefile using arcpy ?

I want to convert csv files to shapefile using arcpy. I've got hundreds of csvs (with multiple fields) that i need to convert. There are two different lat long columns(normal lat long and delayed lat...

View Article

Create list of unique and common layers from several dateframes

Hi guys, When I try this line, it gives me all the layers of all dataframes, Code: uniquelyrs = []             for df in arcpy.mapping.ListDataFrames(mxd):                 lyrs =...

View Article


Image may be NSFW.
Clik here to view.

Copyfeatures_management with joined table Q

I need some help on a script that i am putting together. Script is as follows. 1. Select feature 2. Export the selected feature 3. Load the export feature 4. Label the feature I have a shapefile with a...

View Article

XYZ to GRID in Python - performance

Hello, I have really a lot of zip files which contains *.xyz files and my job is to convert these xyz files to the GRID/DEM. I want to use Python and the ArcPy. In the first step, I will extract xyz...

View Article


AML to ArcPy

Hi Is there any possibility to convert AML script to ArcPy script? Tom Anders Engebakken

View Article

Government Approved Certification Courses in India

Vskills is one of the leading Certification provider in India. VSkills is a testing and certification exam run by ICSIL , a JV of Govt of India and Govt of Delhi & one of the largest manpower...

View Article


Image may be NSFW.
Clik here to view.

Problems constructing geometry using da.InsertCursor

I have sucessfully used the old style InsertCursor to build lots of different geometries. But today, I decided to have a look at the new da.InsertCursor and all those "SHAPE@" tokens. Firstly, the...

View Article

Image may be NSFW.
Clik here to view.

ArcGIS 10.1: MakeXYEventLayer-Extra Excel points appeared in attribute table....

Hi all, In the IDLE Python (GUI) of my ArcGIS 10.1, I executed the following Python-ArcPy script: Code: # scNavyAnnexMakeXYlayer.px  [X,Y-coodinates in the xls for 80 points of boring locations] #...

View Article

Possible to calculate a raster's standard deviation break values?

Hello, I'm trying to reclassify a raster by standard deviation using arcpy. Problem is that when I go to use RemapRange I don't know how to calculate the break values for my new classes. Does anybody...

View Article
Browsing all 2485 articles
Browse latest View live