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
28 views

How to dynamically create new parameters based on previously entered parameter in python toolbox?

This is what I am looking to create in a python toolbox: Create a parameter to get geodatabase (.gdb) file from the user. (the .gdb file has some number of feature classes) After user enters the gdb ...
0
votes
0answers
18 views

Is there a way to execute a series of Spatialite queries unattended?

Like create a table, once done check how many rows it has and if too many run another query? It's alot to babysit it, need to automate it with some sort of a script, but am quite green at Spatialite.
-3
votes
1answer
70 views

How to write a script that will merge shapefiles? [duplicate]

We use an application called IntraMaps Roam. Our guys go out in the field, mark up their maps with GPS points, and then bring them back to the office. They will copy their shape files to the server ...
2
votes
0answers
63 views

GeoServer 2.7.1 fails to start after installing 11-Aug-2015 scripting extension

This problem does not appear to be version specific for me. I have tried this several times with different versions and different system configurations. As the title states, when I add the script ...
1
vote
0answers
17 views

Point to point best link finder, need script?

I am planning a point-to-point microwave system in a geographically very hard area where it is full of mountains. I was searching if there is a way that I set a point and then script a code to search ...
1
vote
2answers
88 views

Processing modeler: how to dissolve a vector layer and sum the attributes

I have a complex workflow prepared in the processing modeler, but I'm missing one step to link all the model. As said, I need to dissolve a polyline vector in a single line vector that has as ...
0
votes
0answers
17 views

Creating and running custom scripts on a Geoserver

Is it possible to write custom scripts on a Geoserver. I need a script that can capture a WFS Request for some polygons etc. But instead of getting it from the Geoserver data base. I need to take that ...
-1
votes
1answer
39 views

Feature Attribute Count Script

Using an arcpy script how do I get the feature attribute count per feature class in a fileGDB? Ideally I would like to output to a spreadsheet, with the feature class name in one column and the ...
1
vote
1answer
40 views

How to clip Census tract shapefiles to the boundaries of City Council shapefiles

Before I ask my question, I want to say upfront that I am woefully inexperienced with coding as well as GIS, which is part of the reason why I'm here. I am currently working on a project where I am ...
-2
votes
1answer
55 views

Fail to publish GP as a service

I have no idea what the issue is here, I created this scripting tool which works fine when I run it through ArcGIS desktop. However, for some reason, I am unable to publish the tool as a service.The ...
2
votes
1answer
29 views

Redirect remote shell command output to ArcMap geoprocessing tool display?

I have a Python script that runs a shell command on a remote server (using the Fabric module). When I run the tool in the debugger, I see all the output scrolling, as the command can take hours to ...
0
votes
0answers
28 views

Implementation of script for bus waiting stops

I've tried to add waiting time in bus stops in several ways (elevation fields, sub-segments, etc), but nothing worked. I'm now trying to use this script I've found in Internet: if (SourceID of ...
1
vote
1answer
55 views

How to generate WFS, WMS by scripting

I'm want to generate wfs and wms from postgis database. To do this i want to make a scripting with python (or with another language) to store my shapefile on geoserver and then deploy services ...
1
vote
1answer
47 views

Generate maps from different columns of shapefile with QGIS

I have a shapefile with N columns describing different attributes of some features. I would like to generate a grid of maps, where each map is a different column. Visually, I'm thinking of something ...
1
vote
0answers
35 views

Hex grid from layer bounds issue

I'm trying to use the 'Hex grid from layer bounds" script to reproduce the simple "Mapping density with hexagonal grids" from the Learning GIS book. When I run the script "as is" I get the error: ...
0
votes
0answers
14 views

Writing Script for establishing parameter files for MRT

I have 15 years of MODIS data that I need to mosaic and resample using the MRT program. But to do so I need to set up parameter files for every date as there are multiple files for every day in the ...
0
votes
0answers
42 views

Python snippets from QGIS

Out of curiosity and perhaps for practical reasons, is there a way to obtain Python snippets from QGIS 2.8 the same way you do in ArcGIS? Please don't redirect me to some other question that looks ...
4
votes
1answer
168 views

Why can't I copy values from a virtual field to a non-virtual field using PyQGIS?

Using the python console, I am trying to copy values from a virtual field into another non-virtual field. Both fields are integer types but I get NULL in the non-virtual field. I followed the answer ...
3
votes
1answer
46 views

How to access CRS of shapefile in standalone script?

I'm trying to access the CRS of a layer and use this to create a grid. I followed the answer in this post which works great in QGIS but I would like it to work in a standalone script. Here is a ...
2
votes
1answer
146 views

Arcpy: formatting string for file name

I have the following question about formatting a string which I use to create output file names. I loop a SearchCursor to create .png file. I extract two columns form the cursor e.g. "GMS_ID" and ...
0
votes
0answers
58 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 ...
1
vote
1answer
59 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 ...
2
votes
0answers
70 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 ...
0
votes
0answers
59 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
vote
1answer
69 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
1answer
44 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
386 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 ...
3
votes
1answer
135 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 ...
0
votes
1answer
47 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
1answer
151 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
0answers
29 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 ...
2
votes
2answers
175 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 ...
1
vote
1answer
46 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?
3
votes
2answers
275 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
47 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
48 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 # ...
0
votes
1answer
48 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 ...
4
votes
1answer
289 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
2answers
88 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
302 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
83 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 ...
2
votes
1answer
122 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 ...
1
vote
0answers
43 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 ...
4
votes
1answer
120 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
214 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 ...
3
votes
2answers
106 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?
0
votes
1answer
136 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 ...
3
votes
0answers
175 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 ...
2
votes
1answer
84 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 ...
1
vote
1answer
68 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 ...