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

Can't get the workspace set correctly, or it's something else.

Last week I was rearranging the attribute tables of a bunch of shapefiles. It was working fine. It looked like this: Code: # Import arcpy module import arcpy from arcpy import env env.workspace =...

View Article


PLSQL Diffusion Data Table on geographic carte

I create a new form called MAP.FMB At form Level: i create a trigger when_new_form_ instance : Set_Custom_Property('BL.BEAN',1,...

View Article


How Can I Calculate the Length and Width of a Polygon Using ArcPy

How Can I Calculate the Length and Width of a Polygon Using ArcPy any suggestion(s). Thanks

View Article

ArcGIS 10.2 May I open the attribute table (only the selected features) using...

Hi everybody, I want to open the attribute table (only the selected features) using python, is it possible? If possible, which function should I use? Thanks.

View Article

How to create report using arcpy in arcgis 10.2?

Hi there, I need to create reports in arcgis 10.2. because I am not intent to request user to go through all the steps for generating reports, so I want to create an add-in tool to do this. Can it be...

View Article


#QNAN problem with a polygon geometry when using argisscripting module... why??

We are using Python v2.6 with ArcGIS 10. I am trying to debug an issue with an application we inherited and ran across an odd issue. There is a process that takes KML files and ingests the polygon...

View Article

Image may be NSFW.
Clik here to view.

Finding The Projection of a File

I am putting this out there for every one. I had a problem where I wanted a quick and easy way to find the projection of my .tif or .shp for example. I decided to make a python script that you can run...

View Article

How to display output data: Graphical Element, Report, other ideas?

Hello, I have a Python Add-in Button that I've written to collect user input via comboboxes and then highlight the applicable data. I need to find a method to display the selected output data and just...

View Article


I'm Trying to add a space between two concatenated field values

I want to add a space between two concatenated field values that would appear like this "Kunle Street", I've tried the code below but its not giving me the expected result any suggestions? Thank you...

View Article


Python Script Tool Startup Performance

I created a series of Python script tools that run in ArcMap 10.2 and noticed that there was significant lag before any code I wrote ran. As a test, I created a Python script file with no executable...

View Article

Python code Module

I'm currently running ArcMap basis 10.2.0. in the pervious version 10.1 I was able to download an external module that could run python code. In that module you were able to show line numbers which...

View Article

Python add-in - get list of selected features in order selected

I'm trying to create a python addin that will fill a list with the objectids of features in the order they're selected. This is so I can then add incremental numbers to them in that order. Trying to...

View Article

Image may be NSFW.
Clik here to view.

Python debug or running script does not produce any results.

I'm using the very last code titled "start simple" found at the site here http://blogs.esri.com/esri/arcgis/20...uling-a-scrip/ When I debug it in python 2.7.3 I see these two errors, shown in the...

View Article


python add-in and matplotlib crash

I'm trying to make a python add-in toolbar that displays a graph. I can create a graph with a function in command line without any difficulty, but when I try to create the same graph from within a...

View Article

Image may be NSFW.
Clik here to view.

Create Custom Function

Please bare with me. I'm very new to python and programming in general. I have a challenge for a class and just need help getting started. I have attached the streets.shp file. Any help would be...

View Article


Image may be NSFW.
Clik here to view.

Add layer from one datar frame to others in same .mxd

I need to write a script that adds the parks layer from the parks data frame in the Austin_TX.mxd (attached)to the other two data frames in the same map document. Any help would be greatly appreciated....

View Article

CreateDomain tool on an ArcSDE geodatabase

Hello, I need to create and populate a domain for an ArcSDE geodatabase. Does the CreateDomain(Data Management) tool allow this? My attempts have failed, with the error not being able to set the...

View Article


Image may be NSFW.
Clik here to view.

Problem calling Data management Tools.tbx

Hi to all, i have developed a python script who make this call arcpy.AddToolbox("C:\\Program Files (x86)\\ArcGIS\\Engine10.2\\ArcToolbox\\Toolboxes\\Data Management Tools.tbx") I have created then a...

View Article

arcpy fieldInfo setVisible

Can anyone tell me if arcpy in 10.1 works for the fieldInfo.setVisible property. I have had no luck at turning off fields in arcmap through the python window. Thank you.

View Article

ArcPy objects

Is there a document listing all the objects that are contained in ArcPy?

View Article
Browsing all 2485 articles
Browse latest View live