pythonaddin button returns no value
I want user interaction with screen and return pixel value upon click. For this, i am using pythonaddin for return value. Following is code which performs nothing while i click on it. It should return...
View Articlewrite float data into a table
Hi guys, I seem to be having issues populating a field with the Get Cell Value tool. Hope you can help me out a bit. Cheers Code: import arcpy inRas = r"RasterData" inFC = r"PointShape" rows =...
View ArticleCreate an elastic Layout Template containing Graticules for PDF export?
Is there a way to programmatically create an elastic (i.e. resizable) Layout Template with Graticules that I can use for PDF export? It seems to me the only avenue available to me is a hack by doing...
View ArticleExportToPDF script : allow overwrite validation
Hello, I have a simple script that Export to Pdf the current Page_Layout of a mxd. I want to use it in a toolbox with a path parameter for the output. I have an error when I select an output that...
View ArticleReading both shapefiles and grid files
Hello everybody! I have a grid file of 4x5 cells. This file contains values of water velocity. I also have a polygon shapefile that contains the information of land use in the same region. I am reading...
View ArticleHow to change the symbology of a single layer at a transition from one scale...
Hello, I would like to assign two different symbology through a scale to another with Python programing. I will explain, I have a buildings layer in the Luxembourg country. the full extent of the...
View Articlehow to associate the IDLE editor using ArcGIS v10.1
With ArcGIS v10, when I selected to edit a py script in ArcMap my IDLE editor would open. Now in 10.1 when I select to edit my py script, I get NotePad. Can someone advise me how to associate the IDLE...
View Articleproblems using arcpy.UpdateCursor in Mosaic dataset
Hi, Following on from a netCDF file generated several raster and then built a mosaic dataset, finally need to add time for each raster that form the mosaic. Create the following code but I added the...
View ArticleLabel expression concatenate and round
Hello, I am trying to format half of my label red where it exceeds a set limit. However, when I try and round the Field2 (which is numeric with many decimals) the python code does not allow me to...
View ArticleReading X and Y coordinate of each grid cell in a raster
Hello everyone? Can you please help me in the following? I am reading the value of every grid cell in a raster file. But I also need to read the X, Y coordinates of these grid cells (more specifically...
View Articlesmoothing a dem with a 3x3 kernel window
Hello to everyone , sorry if i may sound so basic but the truth is that i just started python scripting . my question is that , i have a dem and 3x3 kernel window. i want to use the weight to smooth...
View ArticleCodepage-Question
Hello, we are running two ArcGIS-ArcView in our company. One of them I recently updated to 10.1 the other one still is 10.0. For some years I use a python-script which can delete all fields in a...
View ArticleCreating Python Script for Crime Data
I am attempting to create a python script that will accomplish a number of objectives. 1: I need it to select crimes based off of temporal attributes (time and date of crime, perhaps the most common...
View ArticleHow to create an Shapefile on ArcGIS Server side?
Hi all, I am developing a script which gets an JSON array with point coordinates. This array is encoded to a python dictionary. From this I filter all points (latitude and longitude) and an ID. This...
View ArticleUsing Network Analyst Add Traversal Add-in with Python
Greetings, Is it possible to use the Add-in tool found here: http://www.arcgis.com/home/item.html...77cd38f166d0cb within a python script? Or is it only possible to use it in the ArcMap GUI? Thanks,...
View ArticleStop layers used for analysis from being automatically added to map
I have written a python script that selects a subset of areas based on location, then adds the selected feature classes to a map. The copy of the map I save to a user specified output location is...
View ArticleImporting topology rule sets in Python?
When creating a topology within a feature dataset in ArcCatalog, a user may import a topology rule set file if one exists, otherwise he has to add each rule manually. Obviously, this makes rule set...
View Articletest for an open edit session
How does one test for an open edit session? I have seen the arcpy.da Editor class, but I don't nessicarily want to open an edit session myself Instead, I want to test the current mxd to discover if 1 -...
View ArticleGet startx-StartY and EndX-Endy, of a polyline within a Class Featrure
Hi, Get startX-StartY and EndX-EndY, of a polyline within a Class Featrure I need to get startX-StartY and EndX-EndY, of a polyline within a Class Featrure, but must be for a specific polyline, ie for...
View ArticleWeird error trying to add default values to tool parameters
Here's an odd situation. Im trying to add default values to my tool parameters. Every other time it has worked fine. This time however, no matter what I do, I can't add my folder (C:\Temp\) and path to...
View Article