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

learn more… | top users | synonyms (1)

1
vote
1answer
25 views

Adding a drop down option for python script

I've code that will add fields to feature classes. I've parameterized the script so the user can navigate to the location of the feature classes to be edited. If the feature class is already open ...
-1
votes
0answers
49 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 ...
1
vote
1answer
935 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 ...
2
votes
0answers
65 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 ...
2
votes
1answer
70 views

Is it possible to remove parameter values from the Python Window when running a script in ArcGIS?

When I run a python script in ArcGIS Desktop 10.1 the values from the parameters will be written to the Python Window (marked with red in the picture below). Does anybody know if it is possible to ...
1
vote
1answer
182 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
411 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
2answers
89 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
2answers
3k 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 ...
1
vote
1answer
744 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 ...
5
votes
3answers
3k views

Python: Combine multiple Shapefiles

i have got a lot of Point-Shapefiles (r20010101.shp, r20010202.shp, r20020101.shp...). Each of them has the same amount of points at exactly the same location. In a column that is named after the Date ...
-1
votes
1answer
76 views

Is it possible to import/run AML script into GRASS?

I have an AML script that has instructions to import tmp files of (grid, network, basin...) is there any way to run the script in GRASS? I tried to converted to Python but I couldn't do it for the ...
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 ...
5
votes
1answer
1k views

How to automate the drawing of polygons (square) around a number of points in QGIS?

In QGIS (or alternatively any other scripting + GIS stack), how can I automate drawing a 100km x 100km square around a number of points, with the point being dead in the center? I'd need to loop ...
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 ...
5
votes
2answers
3k views

How to install add-ons in GRASS?

How do I install the r.inund.fluv script in GRASS? https://svn.osgeo.org/grass/grass-addons/grass6/raster/r.inund.fluv/
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 ...
6
votes
3answers
2k views

Check if shapefiles exists in folder

In ArcGIS modelbuilder I want to check if a shapefiles exists, if not I want to create the shapefile in that folder. I guess the calculate value tool within ArcGIS modelbuilder can be used, but I need ...
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
56 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: ...
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 ...
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 ...
1
vote
1answer
122 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 ...
3
votes
1answer
680 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
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 ...
3
votes
1answer
47 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
59 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
60 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 ...
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 ...
3
votes
1answer
894 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
71 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
116 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
45 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
392 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 ...
2
votes
1answer
265 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
137 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
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
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
2answers
177 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
30 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 ...