The act of setting up computing instructions, usually stored in a file and interpreted at run time.
1
vote
1answer
350 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 ...
0
votes
1answer
25 views
Calculate text field based on codeblock query of numeric field
I am trying to populate a field with a L/R bank designation based on a route measure (as part of a larger script), but I am struggling. I have a shapefile created (tir_pts_lyr), I have a blank column ...
1
vote
1answer
36 views
Why does Animal Movement toolbox give SyntaxError: invalid syntax?
I found a complete toolbox (Animal Movement tbx, by Regan Sarwas) for my tasks and I tried it.
I had a systematic problem with the codes for all tools (line 1), for exemple:
Executing: ...
0
votes
0answers
31 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 ...
2
votes
0answers
92 views
What causes Scripting Error 000714 in ArcGIS when using GetParametersAsText?
I am trying to create a script tool in ArcGIS 10.2 in order to incorporate into a model. The script needs to incorporate three inputs which i've built using GetParameterAsText function then setting up ...
1
vote
1answer
182 views
ArcPad get vbs script location
Within arcpad (edit form) I want to get the current location of the vbs script running. This simple vbs script outside of arcpad works fine.
wscript.echo " " + Wscript.ScriptFullName
However, when ...
3
votes
1answer
440 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
1k views
How do I select by location based on selected features with Python?
Is there a way with Python to do Select by Location with the Use selected feature option?
I'm trying to automate a process and am running into barriers.
I need to be able to select the 2 lines ...
0
votes
1answer
18 views
How to troubleshoot and fix TypeLoadExceptions in ArcMap AddIn when executing a compiled c# script?
I am attempting to compile a c# script (class) on the fly and run it from an Arcmap AddIn (the script contains no ArcObjects). My unit test, in Visual Studio 2013, works just correctly and I am able ...
5
votes
1answer
749 views
Script tool Value error
I've been struggling to get my script tool to run without receiving the following error:
<class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid.
ERROR 000735: ...
1
vote
1answer
66 views
Arcpy Script tool
I'm creating a script tool and using the SelectLayerBy Attribute function (below),
arcpy.SelectLayerByAttribute_management("cities_lyr", "NEW_SELECTION", '"CRIME_INDX" <= 0.02')
However, I keep ...
2
votes
1answer
50 views
Conditional SQL Query
I've been running a code that searches a desired field in a feature class and performs an specified SQL query based on whether the field is string or double. The variables are just temporary fillers ...
0
votes
0answers
27 views
Failure to display R script result plots in QGIS
I'm trying to run R scripts (3.0.2) from QGIS (2.0.1) on Windows 7 x64. There seems to be a known bug whereby the output results do not display in the QGIS GUI, but rather just an html path ending in ...
1
vote
1answer
58 views
SQL within Python Script to get only part of the expression by GetParameterAsText
I was wondering if anybody could help me.
Im trying to create a tool within ArcMap using a python script.
Within the script i've been trying figure out how to change it so that I only need to get ...
0
votes
1answer
95 views
Change the extention of a map to show 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 ...
6
votes
2answers
493 views
Resources on using R in QGIS for R users?
This is a very basic question, but I'm having a heck of a time figuring it out because so much of the QGIS documentation is oriented toward use of the GUI.
I want to be able to run R scripts in QGIS, ...
2
votes
1answer
17 views
Setting the output parameter in a toolbox to be a PDF
I need to allow a user to input a path and name where they would like to save their new map book PDF on their computer/drive.
I have created a script where the user can input their mxd with data ...
0
votes
0answers
41 views
Using ArcPy, is there a way to change the color of a symbol in a UniqueValuesSymbology object?
I have an template mxd I reference with several pre-defined layers. The only variable I need to modify is the color of certain symbols in the layer. I have tried to modify and dig around the Symbology ...
0
votes
1answer
40 views
Use a variable to calculate a field with arcpy as a script in a toolbox?
stringvariable = "banana"
arcpy.CalculateField_management("c:\point.shp", "SUBDIRECT", "stringvariable", "PYTHON")
I get an error saying stringvariable is not defined what's the deal? I check ...
0
votes
2answers
56 views
How to get Python script tool to take list of variables?
I am looking at making a Python script script tool that requires the user to input a series of attributes into a list, which is then used to build a query, to select multiple polygons (i.e. "abc, ...
0
votes
0answers
14 views
std::bad alloc when writing simple script in QGIS
I'm running QGIS 1.8 on Scientific Linux and I'm attempting to write a script (obviously this will be built upon to do something useful) which simply writes to a file.
##raster=raster
value=5
...
0
votes
0answers
26 views
Add feature to csv via PyQGIS
I'm using PyQgis 2.0.1. Is it possible to add feature to csv file? I've tried to do this as it's shown in CoockBook:
if caps & QgsVectorDataProvider.AddFeatures:
feat = QgsFeature()
...
3
votes
1answer
107 views
Looking for help for automatically making a QGIS map
Im looking at making a standalone script, that on execution will run the QGis MapComposer using a previously generated template and output a PDF/PNG of the map. This process of making a map will be ...
0
votes
0answers
21 views
expanding atributte window during typing in ArcPad
I want to customize my ArcPad and I need add one ability, which I cannot change: To expand (widen) atributte window during writting in ArcPad. It means, when I'm typing an atributte, when running out ...
5
votes
4answers
725 views
How to check via Arcpy if ArcMap is currently in an edit session or not?
I've created a Python add-in button that helps speed up my coworkers workflow by copying one feature class attribute to another. It uses the arcpy.UpdateCursor function to update a row in the target ...
0
votes
0answers
32 views
Openlayers KML script loads slow
Hy,
I made a map with multiple KML layers with large datasets (total 500.000 markers).
It works fine but as expected it takes a very long time for the script to load al markers.
Is there a way to ...
1
vote
0answers
44 views
Automate data entry into Access from ArcMap
I have an Access 2007-2010 database that I'm currently working on by manually searching for roads in a defined set of areas in ArcMap 10.1 and then filling in the area's ID in an empty column in the ...
3
votes
4answers
871 views
Append to text file using ArcGIS and Python
I have wrote a small routine using Python for ArcGIS (9.3) that will get the count of 2 data layers, calc a percentage, and then write the text back to a text file (CSV) to create a sort of "report" ...
1
vote
1answer
51 views
Area Solar Radiation tool - many rasters with different lats and zs
My problem is as follows:
I want to count direct radiation for all Europe. As the Area Solar Radiation (ASR) tool allows to work only on small landscapes, I cut my raster-Europe into fragments with ...
1
vote
0answers
33 views
Moving a Google Map Marker on a Mac
I have exact lat & long coordinates that I will enter and hit return in Google maps. When I do this it displays this point with a green marker on the map but I can not move this marker.
I want to ...
1
vote
0answers
66 views
Python script does not work for a LGA with space [closed]
Thanks! I got my script working now with replace gp.AddMessage() instead of print when running the script in ArcMap and replace the quote with blank as well since Python would include the quotation ...
1
vote
0answers
155 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
73 views
How do I capture data from an OBD-II device?
So I happen to have a little bit of web experience, and have recently bought an OBD-II device. Basically, I'm trying to log certain metrics from the car, such as location and other diagnostics.
I ...
5
votes
2answers
632 views
Describing a coordinate system in arcpy
I have a python script in ArcGIS 10.1 which takes in a few inputs from the user. One of the inputs is a coordinate system. I would like to test whether the coordinate system the user chose was ...
0
votes
1answer
148 views
How can I always run an algorithm with standard input shapefiles from mapcanvas in QGIS 2.0.1?
I created a model in the graphical modeler and I want to run that model always with two specific polygon shapefiles from my project, e.g. pst and astenot. Whenever I run my model, it asks me to set ...
2
votes
1answer
488 views
Incremental “auto save” in ArcMap edit session
Is there any way to add automatic incremental saving to ArcMap 10.1 editing sessions? I found this script for 9.x but it doesn't seem to work with the newer versions. I'm looking for a script or add ...
3
votes
5answers
3k views
Renaming a 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:
EDIT:
import sys
import traceback
import ...
1
vote
1answer
91 views
Why am I getting “sequence size must match size of the row” error?
I'm trying to use an Insert Cursor to insert a point geometry into an existing point feature class.
I'm finding the coordinate and appending them to a list called rowValues, ex:
...
1
vote
2answers
65 views
Custom BatchProject Script
Here's my problem. My GPS collects data in WGS1984 and I have decided to start working in UTM instead of state plane. Needless to say, I would edit shapefiles, not paying attention to what ...
0
votes
1answer
43 views
How to programatically create point and use it in Select by Location query?
I have a section grid for a US state. I also have a quarter/quarter section grid which splits the section grid into 16 equal squares.
I have written a Python script that finds the XY coordinates of ...
4
votes
1answer
58 views
Programatically detect the format/version of an arc toolbox (e.g. 10.0,10.1 etc)
Is there a way to tell programatically (from the command line) what format a given ArcMap toolbox was saved in - 10.0, 10.1 and so on?
2
votes
1answer
136 views
How can I put the name of file in add field with python?
In my script, I have to create field in 15 layers. The name that I wold like to set in this new field is the same of the file's name. But all attempts that I did were worng.
My script:
...
0
votes
0answers
53 views
Model Run from Python script
Ive broken a complex task down to a very simple excersise and still cant get it to work.... I need to set up a Python Scpript to Run a Model.
model: "SelectTest"
toolbox: ...
2
votes
2answers
159 views
Create python script to update field based on change in another field ArcGIS
I am trying to update a field "TPN" based on another field "PASS_NUM". In my script "TPN" is a newly added number field and thus blank, "PASS_NUM" is also a number field but it contains the wrong ...
1
vote
0answers
95 views
Why do I get different results running a script in PyWin and loading it to the Python shell in ArcGIS? [closed]
I've been trying to teach myself Python scripting for ArcGIS and have gotten frustrated on multiple occasions when I try to debug my script endlessly, only to later find out that it actually works ...
0
votes
1answer
151 views
ArcGIS ModelBuilder pass arcpy.SetParameterAsText as input to next tool
I am trying to build a model which uses two simple scripts, Script A and Script B. I want to use arcpy.SetParameterAsText to set an output in script A, which is then used as an input in script B. In ...
6
votes
2answers
228 views
How to replace a cyrillic symbol in an attribute table using python?
I've tried searching for an answer and I've already seen some similar themes here, but I still haven't been successful in replacing Cyrillic symbols in an attribute table, which is why I'm asking for ...
2
votes
0answers
43 views
Near Analysis takes much longer in ArcPy? [duplicate]
I have a feature class of about 12 points, a feature class of hundreds of roads, and need to find the nearest road to each point. So the obvious solution (Near tool) takes about 20 seconds, and the ...
3
votes
3answers
174 views
ArcGIS NEAR returns -1
We are running an ArcGIS 10.0 geoprocessing script written in Python that (as part of many steps above & below) runs the NEAR command.
Both the input and output datasets (shapefiles & ...
2
votes
1answer
99 views
Embedded python script module import issue
I have two ArcGIS python scripts. One is a primary python script that calls a number of functions from a second python script.
Everything works well, i.e. primary tool calls and uses functions from a ...