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

Image may be NSFW.
Clik here to view.

Proper syntac to write string to config.py

Hello, I am trying to write variable values to a config.py file so that I access the values from other scripts. I am having problems properly saving an SQL query statement to the config.py file. Sample...

View Article


'isOverflowing' not recognised as an Property: arcpy.mapping.ListLayoutElements

I try to export a bunch of layers with the arcpy.mapping.ListLayoutElements function. Each layer should be exported as a single .jpg-map and each with a legend. Because not all layers have the same...

View Article


Make Query Table - ERROR 000152: Invalid input data

I am trying to use the Make Query Table to join two tables in a one to many situation. I don't want to link the entire script because it is huge. Here is the piece of code within the larger script:...

View Article

Time slide options

I wish to use Time slider window through Python scripting. Is it possible to show the time slider window through python script and i also want to pause and play it with scripting. Is there any way to...

View Article

Label Expression Bug

I have used the following example from the help file substitution my own fields: Code: def FindLabel ( [Parcel_No], [Owner_Name] ):   if  [Parcel_No]  >= 0:     return "<CLR red='255'><FNT...

View Article


Image may be NSFW.
Clik here to view.

Generic python script tool that provides values for a field based on another,

Generic python script tool that provides values for a field based on another, In the screenshot below, I got a table for two fields F1 and F2. Attachment 23653 The user is supposed to enter the values...

View Article

Wingware IDE: Support for importing ArcPy Site Package and support Code...

I've been using Python for a short while and eagerly looking to find out if I could use Wingware IDE and be able to import ArcPy Site Pacage with Code Completion Support? Regards

View Article

Change definition query

I have three feature classes that have multiple features in each layer. Each feature class has a field called parcel_no. I turn different parcels on by a definition query on each layer such as...

View Article


Image may be NSFW.
Clik here to view.

Batch Topo To Raster: With a Twist?

I've generated a File Geodatabase with an Index (Polygon) ; Spot Heights (Points) per index ; and Contours (Polylines) per index. I'm trying to generate a python script that will firstly generate a...

View Article


Nested Cursor- why is it bad?

Hi Everyone, I have heard nested cursors are bad. Why is that? If I want to test if a point is in a particular polygon wouldn't I need nested cursors? Something like this would work well. Why is nested...

View Article

IndexError: List Index Out Of Range

What is this error referring to? The line of code is: lyr = mapping.ListLayers(mxd,"Burglary",df)[0]

View Article

pandas anyone?

I am attempting to perform some non-GIS specific work within a larger Geoprocessing tool and hoped someone has worked with the Pandas and matplotlib libraries :) A .csv table containing the fields...

View Article

"Search Cursor() got an unexpected keyword argument 'sort_fields'???

I have this program to go through layers in an mxd and search for missing values. For Example, it sorts through the layer AADT in the FLAG field and then sorts through the layer AADTAnnoLabel in the...

View Article


ArcPy Export after Refresh.

I'm using ArcPy 10.1 and the mapping module to export my layout(s) to a png. I have several layers that I loop through to turn on and off before exporting. I also switch between different bookmarks...

View Article

Using Enthought Canopy with ArcGIS/ArcPy

What is the best method for developing Python scripts for ArcGIS in a third-party installation of Python and IDE? I have tried using the suggested workflow from ESRI... that being the included...

View Article


Shape_Area ?

Question re: Shape_Area on Intersect output While in ArcMap, if I direct the output of the Intersect tool to "in_memory", why is it that the "Shape_Area" and "Shape_Length" fields on the output layer...

View Article

Problems with accent (á, ç, ã) on arcpy.mapping

I am using sublime for editing my scripts and using Python IDLE to run it. I have to use string that accept portuguese accents such as á, ç and ã. I tried using the # coding: utf-8 import arcpy and the...

View Article


How to copy data from one featureclass to another one using Python code?

Greetings, I am new to Python but not new to ArcObject & .Net development. I just have a simple question that need some care from the Python developers if possible. I have two featureclasses loaded...

View Article

FindLabel Wildcard

Hi, I'm new to writing label expressions and python and I was wondering whether there is a possibility to use wildcards in the Label-Expression-Window? The problem is, I have different .gdbs with...

View Article

Guide for FME

Hi guys, I am looking for a guide on quick steps of using FME workbench. What i was wondering is there anyone can point me in the correct area. I am looking to some extracts using fme to shape files,...

View Article
Browsing all 2485 articles
Browse latest View live