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
0answers
42 views

How to create a Shapefile of a subset of input features in PyQGIS?

I'm having some trouble applying my Python skills to develop some scripts in PyQGIS. For me it's far simpler to write it in ArcPy, but then again I wouldn't get that much satisfaction after finishing ...
0
votes
1answer
26 views

QGIS Python Scripting permission denied

I've just started a Python Scripting tutorial on QGIS. The problem arrives right at the end, when I have to use this script: output_file = open('c:/Users/Ujaval/Desktop/airports.txt', 'w') for f in ...
1
vote
1answer
662 views

Linux Client for OpenGTS server

I've installed an OpenGTS server and successfully linked it with the GPS2OpenGTS_Pro application for android. The buses I'm tracking offer 3G with a wireless AP, however whenever the bus stops, the ...
1
vote
1answer
807 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
1
vote
0answers
21 views

Enable LWGEOM for OGR tools (QGIS 2.8)

I am doing some scripted operations on a Spatialite DB using OGRINFO, OGR2OGR etc. in the QGIS 2.8 OSGEO4W shell. Unfortunately, LWGEOM functions such as ST_Split() are unavailable and ...
3
votes
1answer
252 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
3
votes
1answer
529 views

Help with scripts for processing raster files with the raster calculator in QGIS

I am trying to process some raster files using python scripts in Qgis 2.20, and I have been having trouble finding any documentation on using raster calculator in scripts being run in the processing ...
0
votes
0answers
23 views

“require” is not defined in GeoServer's community scripting extension (Javascript)

I'm attempting to use GeoServer's Community Scripting Extension for JavaScript. I've installed it according to the instructions, and when I try to reproduce the WPS Hook example, I receive the ...
-1
votes
0answers
18 views

Essential Web Mapping Skills? [duplicate]

I am presently working as an analyst on Desktop GIS. What are the essential programming / scripting languages that I would need to learn for starting web based GIS-mapping ? I am looking forward to ...
2
votes
1answer
66 views

Why does this Python script only work once on QGIS?

I have a Python script to change the color of some specific features (lines) using categories in a vector layer. When I import the script in the console, the first time through the console it works ...
3
votes
1answer
818 views

How to Solve QGIS error “Python Plugin is Broken”?

I tried following the steps to build a python plugin for QGIS. (step 3 is where I am stuck at) 1) I used the Plugin Builder plugin to build the initial set of files. I call my plugin ...
1
vote
1answer
52 views

How to remove “ERROR 1” messages from a standalone QGIS script?

I am running a standalone script for QGIS which creates a high resolution grid and clips shapefiles onto it. Works perfect if the cell width and height have a high values (in my case, >200m for both). ...
0
votes
2answers
1k views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
0
votes
1answer
96 views

How to resolve 000210 problem, when I use Scratch Workspace

I have some problem. Now I'm trying to make Python script to resolve some problem. I need too place all out features in Scratch Workspace (Later this script will be used in web GIS and intermediate ...
0
votes
1answer
36 views

Intermediate files disappear in ArcGIS 10.1

I am working with ArcGIS 10.1 creating some slope and aspect files. I do this: DEM_park = ExtractByMask(mosaic_name, park_area) and it creates the DEM_park file in a default gdb with a default ...
1
vote
4answers
213 views

Python script for Field Calculator. ArcGis 10.2.2

I have a point shapefile with two columns i want to process. The first column is aspect and the second is aspect_m60, there is only one row with the aspect of my point. I have tried to write a script ...
1
vote
1answer
229 views

How to add layer in Arcscene using script tool

import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] addLayer = arcpy.mapping.Layer(r"F:\project\Final\Ground floor\steps.lyr") ...
3
votes
1answer
87 views

Alternative to an arcpy script for points to lines to polygons?

I'm relatively new to arcpy and python, so I feel like I could be missing something obvious in regards to tool options for what I'm trying to achieve. I have a script that creates triangular ...
2
votes
1answer
144 views

Standalone script looping incorrectly?

Following on from my previous question, I would like the script to do the following (includes illustration): Search for the first shapefile (Paris (O).shp) in Country_France > Original files and ...
0
votes
1answer
35 views

A script that only deletes fields within an attribute table specified by the user

I would like a script that will be executed in ArcGIS that only deletes fields within an attribute table that are specified by the user. As I understand it, this can be done in Modelbuilder but was ...
2
votes
2answers
133 views

How to use `layer.getFeatures()` in a standalone script?

I am following the QGIS Cookbook and this post where it concerns reading attributes from layers. I would like to exploit this method and implement it into a standalone script. Essentially, I want to ...
0
votes
0answers
22 views

Spatial Modeler language variable inputs based raster name

I´m using Erdas Imagine 2010 and need to process images to get reflectance values using the Empirical Line method. To achieve this I need to process 200+ images, each containing multiple bands, with a ...
1
vote
1answer
31 views

Drag and Drop Custom Tools into Modelbuilder using ArcGIS Pro 1.0

I am having trouble dragging and dropping python scripts from a custom 10.3 toolbox into a modelbuilder model in ArcGIS Pro 1.0. Is there a way to activate this capability?
4
votes
1answer
146 views

Can multiprocessing with arcpy be run in a script tool?

I have been tinkering around with the multiprocessing module to resolve some processing of data in ArcMap 10.3. I have created a script which works fine if I run it in IDLE. I see all my cores max ...
0
votes
1answer
39 views

How do I have my layers add to TOC at the end of the process

I would like each function to be added into the opened mxd. This was originally designed to run in Catalog, but the users will all be using ArcMap. This is my Script: # nrcs_script_main.py # ...
3
votes
2answers
106 views

Using folder wildcards to copy files with Python

I would like to copy the data of one specific shapefile from a specific folder ("Grid") to a number of folders containing the name "Country". The country shapefiles would keep their original name. ...
1
vote
1answer
34 views

Rename output shapefiles in PyQGIS

I have a shapefile which resides in a folder, gets processed and the output is saved in another folder. Before the output, I would like to rename the shapefile slightly differently from the original: ...
0
votes
1answer
45 views

Script not processing shapefiles from one folder to another

I am working on a script which takes shapefiles from one folder called "Original files", process them and then output the results into another folder named "Processed files. I asked a question on how ...
0
votes
1answer
69 views

How do you project a single pointGeometry object with arcpy?

In an attempt to create a python add-in for ArcMap that will pass x and y coordinates to another application via a mouse click on the map, I have written the following code. I need the output ...
0
votes
2answers
56 views

Deleting rows on dbf table with python for ModelBuilder?

Being not very familiar with python, and after carrying out unfruitful long researches on internet, I submit to you my problem, hoping favorable reply. I have a DBF table with geochemical data and I ...
1
vote
2answers
160 views

Calculate distance between a set of points: lat and long in QGIS or R

I have shapefiles containing the location of several individuals along several months. Positions were documented with a 30 minutes interval. Tables contain the following data fields: collar (ID), ...
4
votes
1answer
70 views

From everywhere to everywhere in spatial network

ArcGIS Network Analyst question: I have a network dataset representing an archaeological site with ~500 buildings. Each doorway of these buildings represents a terminal node. I would like to simulate ...
1
vote
0answers
37 views

Arcpy script or other method for points in polygon per participant

Is there an Arcpy script or another way that I could use to find out the number of GPS points falling within each participant’s home neighbourhood as defined by an 800 meter network buffer around the ...
2
votes
1answer
73 views

Python tool won't stop running— Not an infinite loop issue

I'm having trouble with a python script. It is essentially a near duplicate of another script which is running fine-- it is using different files, but apart from that the tools used and the order in ...
4
votes
1answer
89 views

How to create list of strings as parameter to script

I am trying to have a list of strings to pass as parameter to my script: when I start the script it displays: With "Add Value' button disabled. What am I missing here?
1
vote
3answers
162 views

Automatically add vertex to polygon where vertex of another polygon touches it?

The polygons that I use in ArcMap 10.2 are drawn so that they snap to each other, but never overlap. I've described a general case in the following image: A polygon is defined by the minimum ...
1
vote
0answers
32 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 ...
3
votes
2answers
86 views

How to access checked layers in PyQGIS?

qgis.utils.iface.activeLayer() accesses the current active layer, but I would like to get all checked layers in the QGIS ToC. How can I do it?
3
votes
0answers
91 views

How to stop a PyQGIS script that has an infinite loop, using the keyboard?

So i wrote a script that does what i want over and over again using a "while True:" in a certain time interval (every 5 seconds using time.sleep(5)). So far so good BUT when i want to stop it i just ...
1
vote
1answer
43 views

How to change the color of a specific feature(s) with a PyQGIS script

First of all im a big noob so don't hate. So image that the lines that i have drawn is simple pipeline network, represented by some simple lines in a vector layer. Now the question is, how can i ...
0
votes
1answer
38 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
1answer
306 views

Converting standalone script to ArcGIS tool?

I am currently trying to make my (working) standalone script into an ArcGIS tool so I'm not the only person in my office that can use it. It selects all the data within a specified location and ...
2
votes
0answers
64 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 ...
4
votes
2answers
1k views

What causes ModelBuilder error occurred in script on this page MdDlgContent.htm?

I've been creating a model in Arc 10.0 for a few days now without problems. Then I added the Calculate Field Tool. I selected Make Variable --> From Parameter --> Expression. When I check off "Model ...
2
votes
1answer
203 views

AttributeError with unicode object with data frame in python script

I'm running a python script from arccatalog and it works, however, I am trying to add layers to an mxd and need to declare the data frame. I keep getting this error message. type ...
0
votes
1answer
73 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
66 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
95 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 ...
2
votes
1answer
71 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 ...
3
votes
5answers
6k views

Renaming field using ArcPy?

What I need to do: rename a field name of a table/feature class copy all values to the new field So far I have done following code as @artwork21 suggests: import sys import traceback import arcpy ...