The act of setting up computing instructions, usually stored in a file and interpreted at run time.

learn more… | top users | synonyms (1)

0
votes
1answer
8 views

How to get layers created in a custom toolbox python script to add to the mxd

I'm trying to create a simple search tool so that my colleagues can easily query a database. My first version is like this. mxd = arcpy.mapping.MapDocument("CURRENT") df = ...
2
votes
0answers
15 views

An Error Has Occurred Running Scripts On This Page - Repairing issue with batch script?

If you've been using ArcGIS for a while, you will have most likely come across this error: The issue is linked to some sort of ActiveX plugin security setting in the 32 bit version of Internet ...
0
votes
1answer
31 views

Cannot rename output file using standalone script for QGIS

I would like to rename all output files after my script has finished processing them by adding "(A)" after their file name (eg. Layer.shp -> Layer (A).shp). I received an answer from this post on the ...
2
votes
1answer
40 views

Script to export OD matrix line tables for individual point features

I have a network dataset and I would like to know the network distance (not Euclidean) from each feature point in a shapefile to each other point in another shapefile with the same number of points. ...
2
votes
1answer
28 views

QGIS gets stuck when running script to automatically refresh layer [closed]

I have a QGIS layer that represents a set of links and nodes to show the streets of a city and the traffic speeds on each street. I've been trying to write a script so that if I change the speeds in ...
2
votes
1answer
76 views

Why does thumbnail on one MXD not update?"

I want to make modification on multi-mxd properties, I try Arcpy script with a loop like " for mxd in mxdList:" , but I always have same results, Thumbnails are not created... import arcpy,os ...
0
votes
0answers
40 views

How to resolve warning messages from standalone script?

The standalone script, loaded from OSGeo4W Shell and copied below, follows a set of steps: Create grid with cells length/width at 200m Clip a polygon layer onto the grid Use Distance to nearest hub ...
2
votes
1answer
43 views

Creating Branching Python Script, Based on Whether Feature Classes Exists or Not?

What I would like to do is create a script that checks the existence of a feature class and, depending whether it does or not does, skip to different process. This would need to be implemented in ...
1
vote
1answer
45 views

How to find duplicate values that ALL share the same attributes

I am using Arcgis Desktop 10.2. Using python script i am trying to resolve the following : I have 2 columns of data, one containing alphanumeric values, the other some strings like "-1", "-2", "-3" ...
2
votes
3answers
174 views

Why script works on my computer but not on another?

The script below works perfectly fine in my computer. But when running the script on another computer, I receive an error: Error: Algorithm not found The computer has similar specifications to ...
1
vote
0answers
19 views

Manifold GIS Scripting/Queries — query a web page and scrape page source?

I'm using Manifold v8.0 to process some data. The process involves some scripting and querying, but one step currently requires me to go to a website, enter some data into a form, read the results of ...
1
vote
2answers
49 views

Is it possible to toggle draft mode in ArcGIS with Python?

I'm curious if it is possible to toggle on and off 'draft mode' in layout view in ArcGIS using python scripting. Does anyone have any ideas? Python is preferred, but if there is another solution in a ...
0
votes
1answer
59 views

How to show the attribute table of selected features using arcpy?

Is there a way to show the attribute table of selected features using arcpy? Maybe in the mapping module? I would like to be able to select some features and then have an Add-In button that ...
1
vote
2answers
36 views

How can I disable logs being created in standalone python script?

When I run the following script in QGIS 2.6.1, it produces a folder called 'processing', which contains a log, in the directory it reads files from. And since the script reads files from several ...
2
votes
1answer
67 views

How to get shapefile extent from standalone script?

I am trying to obtain the extent of a polygon in a shapefile. I am running a standalone script which will create a grid based on the extent of the polygon. I have tried 2 methods: one from the ...
1
vote
1answer
96 views

How to add fields to shapefile from standalone script?

When I run the following script via OSGEO4W64 Shell, I receive the following error when trying to run the qgis:fieldcalculator algorithm: 'NoneType' object has no attribute 'mapCanvas' I read ...
1
vote
0answers
26 views

Error after executing hex grid script in QGIS 2.6 for Mac

I hope some of you might help me in solving this problem: I'm trying to load a script with QGIS, hex grid from layers bound, with a population shape file (popp.shp in egis sample data folder). After ...
6
votes
2answers
250 views

Cannot run standalone QGIS script

I've been trying, along with this post, to run a script in OSGeo4w Shell, outside of QGIS. But I get the following error: ImportError: No module named qgis.core I have also read the following ...
1
vote
0answers
26 views

Searching a table within PostGIS using PyQGIS script

Morning all, I am looking for some guidance in trying to set up a script that will search a PostGIS database using a wildcard and then open a certain file directory that will be in one of the fields. ...
0
votes
0answers
11 views

Divided road segments and number subdivided of them [duplicate]

I use software ArcGIS 10.2.2. let me try to explain with an example: I divided the road segment called A that is 60 km long as each of them is 1 km by XToolPro. totally I have 60 subdivided. But ...
2
votes
2answers
135 views

In ESRI ArcGIS, is there an equivalent to the RStudio Console Windows?

UPDATED I know ESRI provides scripting capacity, via the Python window, but I've had a hard time with it. Making the jump from the Field calculator to the Python window was too much to me. Trying to ...
1
vote
0answers
52 views

Unable to call GDAL functionalities from Python

I am trying to call GDAL functionalities from the following script I made in the past. import os, fnmatch from subprocess import call call("dir", shell=True) # define the variables inFolder= ...
3
votes
1answer
71 views

Getting random values from geometryType() in a standalone PyQGIS script

I am asking this question based on the result I received from this earlier post. The following script only works if I set geometryType() == 3 as that is what is being printed out in the Python console ...
4
votes
2answers
304 views

How to identify polygon/point shapefiles in python?

I have a script which performs various functions on shapefiles, most of which are polygon-based. However, some shapefiles are point-based and I have to specify where these files are by editing the ...
1
vote
1answer
77 views

How to get the layer name with a arcpy code

Using the FeatureToPoint tool I've having difficulty calling just the name for file without the extension or path. Here is the part of the script that I'm creating that Im stuck on. eg. ...
1
vote
1answer
72 views

In qgis using python, how can I get multiple pixels from a raster based on a vector point file

I just started working with qgis, and for the life of me I cannot figure out how to solve this problem: I have several points of interest, these are stored in a shape file (just simple points). I ...
2
votes
1answer
77 views

How to query values from a list in Python?

I have a list like this... list = ['1','2','3','4'] how can I use arcpy.Select_analysis to select features that have the attributes in the list. qry = '"SECDIVNO" IN ' + str(tuple(list)) ...
2
votes
1answer
82 views

Legal description polygon mapping/creation with Arcpy

What I have: an excel file with the names of properties within an area that is part of the PLSS in which Township/Range, Section and Lot numbers are used. The file contains a legal description for ...
3
votes
1answer
66 views

Getting Script Error has occurred in script on this page when running polygon to raster conversion?

i keep getting the script error problem every time i try using polygon to raster tool in ArcGIS 10.1. Please help me how I can solve this? screenshot embedded
1
vote
1answer
98 views

Using if else statement in Python Parser of Field Calculator in ArcGIS for Desktop?

I need help in writing the python script in the field calculator. I have three fields namely: CODE COMPLEX Map1 Map1 is an empty field that I want to populate. I have a number of conditions to cater ...
2
votes
0answers
46 views

GIS related scripting [closed]

This might not be strictly GIS related, but here goes. I am looking for a script (DOS based) or application (Windows) that does the following: In a filesystem there are a collection of raster maps, ...
1
vote
0answers
62 views

Geoserver fails to start after installing scripting extension

I use Geoserver 2.6.0, it worked until I installed latest scripting extension. I followed installation instructions (http://docs.geoserver.org/stable/en/user/community/scripting/installation.html). ...
1
vote
1answer
68 views

GRASS scripting for producing multi-band raster

I am trying to loop the r.sun function within a Python script. Anyway, I seem not to understand how I can stack the raster maps each loop would produce into a single multi-band raster (preferably in ...
1
vote
2answers
154 views

QGIS's raster calculator— running as a batch process?

I have a series of raster files (150 or so) that I need to multiply by a baseline raster. Unfortunately, the series of rasters have a different cell size (30mx30m aka .00027777778 degrees x ...
1
vote
1answer
61 views

Iterating an ArcGIS tool over multiple Fields with selection boxes

I have one shapefile that contains many fields and I'd like to write a simple script tool that allows me to run IDW for the fields I select. Is this possible? For example..... Input: 1 shapefile ...
1
vote
1answer
54 views

ArcGIS - where is the zip & unzip toolbox available for download?

ESRI mentions a zip & unzip toolbox available for download (http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geoprocessing/python_2126079299.htm) Unfortunately the direct link provided is ...
0
votes
0answers
8 views

Can I set processing (sextante) script default output vector data extension?

I am trying to create a tool that converts text data to KML by writing a Processing script. All works great, but I was wondering, if there is a way to set a defaut file extension for output vector ...
1
vote
1answer
84 views

How to work with accentuated strings in Python scripts in ArcGIS Desktop Field Calculator?

` pre-logic: def myCalc(name,nameVal): if (name == nameVal): return 1 else: return 0 var_name= myCalc(!Epulettipus!,"Lakóépület") ` This doesn't work with accentuated strings. (But ...
0
votes
2answers
150 views

Writing Python script in Field Calculator in ArcGIS Desktop?

I'm a programmer, I have programmed in C#, Java, but not with Python. And I'm not a geographic worker. How can I write a python script into Field Calculator to be able to check the other column value. ...
1
vote
1answer
45 views

Creating a raster based on a where clause

I am writing a script that deals with a raster that will need a subset of the raster outputted and the rest of the original raster needs to be "no data". To clarify, say, there is a raster and ...
1
vote
1answer
44 views

To count the number of grid cells in a polygon

Is there a way ArcGIS could count the number of 15 seconds interval grid cells within a polygon after digitizing that polygon. This should appear in a field in the attribute table.
2
votes
1answer
71 views

Trying to generate a PDF for each feature in a feature class based on an attribute with Python.

I have a feature class of points that represent storm water inlets. I am trying to automate a process that does the following. finds all of the inlets that have a field called "Marker" populated ...
2
votes
1answer
28 views

Polygon from CSV ∂x-∂y values

I am trying to make a map of a property fenceline based on a survey which gives precise bearings and distances between landmarks. Following recommendations in this thread, I used a CSV file to turn ...
1
vote
1answer
202 views

geoprocessing service via python toolbox script, local versus server paths

So I feel like I'm missing a very basic concept when it comes to publishing python toolbox scripts to a geoprocessing server. I've scoured the ArcGIS online help (not saying I've read everything, and ...
0
votes
0answers
25 views

How can I implement GRASS GIS flow direction process from DOS scripting

When I try to implement its showing it work completely in its command prompt(grass) and creating output files also but when I try to view the result its not showing anything in Map Display I ...
1
vote
1answer
49 views

Implementing python code in Whitebox spatial analysis tool

1.I want to implement this python code wd = pluginHost.getWorkingDirectory(C:\xampp\htdocs\learn\doit) flowPointer = wd + "d8flowpointer.dep" outputFile = wd + "manjflowaccscript.dep" outputType ...
1
vote
1answer
76 views

Implementating Analytical Hierarchy Process with ArcGIS 10.2 for Desktop?

I want to use the AHP in arcmap 10.2. I have tried using the arcscript available from http://arcscripts.esri.com/details.asp?dbid=13764 Which was designed for Arcmap 9.2. I was able to get as far ...
3
votes
1answer
48 views

Accept multiple input types in ArcGIS Script Tools UI

everyone! I'm working on a python script that calculates aggregations of ACS Variables (i.e. adding "Renters who spend more than 30% of Annual Income on Rent", "...40%...", "...50%...", etc.). The ...
0
votes
0answers
156 views

Looping through each specified layer and exporting PDF map showing shapefile and information taken from each attribute table?

I have been working on an automation script for the purpose of mass pdf exportmaps. I am required to export many pdf maps showing individual boundary files and client information. I believe the ...
0
votes
0answers
40 views

georeference a grid by using a script

I've got an image and a set of coordinates, which represent a grid, that looks similar to this: What I'm looking for is a script, that would transform my image, by using such a grid. Edit: My ...