ArcGIS 10.0: Creating MultiPoint - No FID for the 2nd set of points in Label....
Hi all, I tried to write a "MultiPoint" point feature by using the "MultiPoint" Python script copied from the Help of ArcGIS 10.0-see the attached file for the Python script I used. It ran and I got 7...
View Articlearcpy.MakeGraph_management works in ArcCatalog Python window but not...
Dear All I'm trying to get the ArcGIS 10.1 MakeGraph_management tool working in Python/Pythonw but keep on getting a 'python.exe/pythonw.exe has stopped working' error. However, when I run exactly the...
View ArticleChanging the default geodatabase
In ArcGIS 10.x ESRI introduced the concept of default geodatabases where output from geoprocessing tools would automatically go unless directed otherwise. The location that ArcGIS chooses for this...
View ArticleProblem adding python script as tool
I have my python script written and it runs in the python window. However I want to add it as a tool. I have created a toolbox and added the script however it will not run without me adding parameters...
View ArticleImporting CSV to an existing table
Is there an equivalent of arcpy.ExportXY that imports? I'm looking to append a set of csv data to an existing table, all the tools I've looked at thus far appear to create a new table. Thanks
View Articleproblem with dissolving a stream
Hello can any one help me with a python script to dissolve a stream using their stream order. when i use arcgis tool to dissolve the stream segment using their order,some of the higher order segments...
View Articlemoving attributes from one table to another based on selection
I am trying to move through my contractBuffer layer record by record. For each record I want to select the culverts from the culvert_subset that fall within that record. Then take the value from the...
View ArticlePyScript, simple error help! Field Mapping Object
Okay. This first block of code will run with no error and work just fine. Code: import arcpy ... ... arcpy.env.workspace = "G:\ChrisGIS\WDFW_NWIFC_EVENT_17100101.gdb" ... arcpy.env.overwriteOutput =...
View ArticleSelect a Feature by Rectangle
Hi I have created a Python Tekinter GUI with a listbox to show the map layers and some button widgets. I have to bind a "Select Features by Rectangle" function to the "Select Feature(button "Button 1)...
View Articleshapefiles fail to load into file geodatabase
I have a python script that used to work. It's pretty basic. There are two shape files I want to load into an empty file geodatabase. The path to the geodatabase is "D:\PWWILD\MASTER\" The name of the...
View Articlehow to insert a layer to multiple mxds
I'd like to insert or add a single .lyr feature into the first data frame of each of two mxds, named "One" & "Two", both stored in the same folder. Each mxd has two data frames, "Layers1" &...
View ArticlePython Code issue
Hi Everyone, I am trying to write python code to detect if there is overlapping polygon from two feature classes. The goal of this code is to get overlapping polygons and there area. I start by trying...
View ArticlePython bytes are missing after recv from UDP socket
Code: import socket import sys import datetime import os try: username = "root" password = "Apacheah64" db_name = "DB_GPS" table_name = "Tbl_GPS" host = "" port = 6903 buf...
View ArticleArcpy.mapping.layer() help files in 10.0 and 10.1
Is it just me, or is the help entry for arcpy.mapping.Layer() quite misleading? It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile...
View ArticleDrawing Images with Python
I wish to be able to draw simple images with Python into a new window in ArcMap, but I also need the properties of the images to change (i.e. colour) based on the data from a field in a shp. What...
View ArticleScript Properties - Parameters / Validation - Field or Linear unit
Hey iam trying to write my own toolbox.At the moment i am trying to add a selection between Linear Unit and Field. I already got it working with a connection of String and Boolean as Data Type, but now...
View ArticleExtract information at a point (x, y) of a netcdf file
Hi, I have a netcdf file of a forecast, which has several variables, I need to extract information from any varible for any coordinate (x, y) and I do it through python or model builder, you can get...
View ArticleArcview 10.0 Cannot create Polygon with hole in Python. Impossible????
Kim Ollivier a couple of years ago gave example Python code to create a polygon with a hole in it. This involved a null point between the outer and inner rings of data. His particular example works,...
View ArticleHow to setup BATCH process for my Script.
Ok, I have the following python script which migrates and maps fields and the values of those fields into a target Feature Class. Code: # Import arcpy module import arcpy arcpy.env.workspace =...
View ArticleMoveLayer not working in 10.1?
Am I imagining things or MoveLayer does not work in 10.1? I have the exact same code moving a layer in the TOC in 10.0 and it works fine, but in 10.1 I get an error saying “assert move_c is not None,...
View Article