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

arcpy.sa.CostDistance from Python gives error about number of args but executes fine through Toolbox

I am attemping to call arcpy.sa.CostDistance to calculate the cost distance to a source point as well as generate the optional Cost Back link raster: arcpy.sa.CostDistance("input", cost, "costDist", ...
0
votes
2answers
216 views

How to create a route and add that route as layer to map using ArcPy?

I wrote a little script for ArcGis, and when I make it run by GUI it happens that it seems to create routes but the routes do not appear in the TOC. Consequently, when the script tries to execute ...
5
votes
1answer
303 views

Error using con in Map Algebra in Python script

I am experiencing a painful problem in the middle of a Python script I am writing. When I get to a Map Algebra function, I have tried two different options and both return a different error. At first ...
3
votes
2answers
198 views

ArcGIS Calling Wrong fme.exe When Python Script Converted To An ArcGIS Script Tool

I'm using this this bit of code to execute a FME Workbench file through a Python script ... import os os.system("fme.exe P:\\Mapping\\Scripts\\FME\\Easements_ROW_Extract_From_CAD.fmw") However, ...
9
votes
1answer
3k views

How to export only certain columns to a CSV file in ArcGIS?

I've written a python script using arcpy which outputs a polygon feature class into a File Geodatabase. I have added a function to export the attributes to a separate CSV file. I am using the code ...
4
votes
3answers
334 views

ogrinfo bash script failure

I need to recursively document a bunch of Shapefiles using orginfo in many directories. For example, $ tree -P *.shp . ├── acfish2s │   └── acfish2.shp ├── airports │   ├── airport_runways.shp │   ...
1
vote
3answers
290 views

Can one edit xls, and convert xls to csv - with a portable python or Perl module? [closed]

I am on a network and computer where nothing can be installed. On this computer i run portable apps through a USB, however I need also to to edit xls, and save as csv. Since i cannot install anything ...
3
votes
1answer
555 views

Automate removal of duplicate polygon nodes from shape file in Arcmap

I have a whole lot of polygon shape files, many of which have got duplicate nodes. This makes processing difficult as almost all tools (erase, union, calculate area) do not work. I found that by ...
1
vote
1answer
148 views

Is there a bug when creating a relationship class with Python using a GlobalID?

I'm trying to create a relationship class with Python using a GlobalID. When I use Python it gives me the error: Failed to execute. Parameters are not valid. ERROR 000800: The value is not a ...
1
vote
1answer
336 views

Can I use arcpy.Exists for domains?

A script I made creates domains within a selected geodatabase. I need it to not create the domains if they already exist because if they do, it gives an error saying invalid domain name. Is there ...
3
votes
2answers
266 views

How to generate Buildings ID numbers inside parcels

In order to decrease manual data entry, I would like to automate a task to generate numbers for all buildings inside a parcel starting with 1. For example, I have 4000 parcels and each parcel has ...
3
votes
1answer
195 views

How can I put coded domains into a list to be created in python script?

I have a large list of coded domains. They are numbers like: 01.6530.01, 05.7991.08, 05.7991.01, 05.7991.06 The code will be the exact same as the description. I've tried to make a list using: ...
1
vote
1answer
155 views

Why can't I add GlobalIDs to the table and feature classes I created?

I'm creating a script to which make a blank geodatabase with a required dataset, feature classes, tables, subtypes, relationships. I've got everything to work expect for the damn GlobalIDs! I have ...
8
votes
1answer
907 views

How to make a new raster using con() script in Python?

I'm new to Python and have been trying to code a raster calculator style script. Basically, I want to convert a raster that has values 0 to -10,000 into a raster that is populated by 1s between ...
3
votes
1answer
106 views

Is there any way to speed up the script I wrote?

I have a pretty simple script which gets 2 parameters from the user: 1)Geodatabase location 2)Spatial reference It then creates a dataset with 6 feature classes. It also adds a large amount of ...
2
votes
2answers
1k views

Help with ListFields and CalculateField_management syntax

I need some assistance with the syntax for a CalculateField_management calculation as I have still yet to master all the python syntax rules. What I am trying to do is find the max value in a ...
9
votes
2answers
2k views

Python scripts that run inside ArcMap vs ones that run outside?

I'm just starting to get into Python scripting for work.. I'm currently creating a script to automate a process. Basically, it asks the user the client name, gets a projection if available, creates ...
2
votes
1answer
1k views

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS Java script API

I am new to programming in JSAPI. I have two dynamic layers and I want to set the property setMinScale(scale) and setMaxScale(scale) to layers so how do I Set ? ex. I tried using ...
1
vote
2answers
193 views

Way to script customization for ArcPad AXF file?

I have an ArcPad AXF file, created from a geodatabase. I've opened the AXF in ArcPad Studio and created some a custom edit form. It's all great. But if the original geodatabase ever gets destroyed ...
3
votes
1answer
519 views

Get extents of vector shape features in python

i am just wondering if it is possible to iterate through vector features and return the extent per feature without clipping the vector shape? The code looks like this and comes from the ...
4
votes
1answer
740 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 ...
2
votes
0answers
310 views

How to access mysql data from python built-in console?

I'm writing a QGIS Plugin, and somewhere I want to present data from a MySQL database. It's simple data(strings,etc), not Geospatial, or vector data. I'm familiar with querying databases from python ...
3
votes
3answers
612 views

How to merge a large amount of polygon-features in a script?

We have a very large shapefile with over 30000 features and want to merge it with a script on a server. Currently we try it with QGIS, but the processing takes way too much time. Is there a way to do ...
7
votes
1answer
436 views

How to simulate moving vehicles?

I have a point layer (stored in SQL Server 2008) that is being served up by a map service in ArcGIS Server 10.1. I am consuming this service in a web client. Lets say the points are boats out at ...
13
votes
1answer
2k views

How do you write a Python script for repairing data sources in ArcGIS 10

So, I have about 50 mxd's with all broken layers that I have been going through and manually resetting. The data was moved from another computer and the folder structure was changed so it isn't just ...
0
votes
1answer
149 views

How to show script tool dialog from a button in ArcMap 9.3.1?

Thanks to Jason I was able to properly set up the parameters of a script tool. I would like to get the same dialog box from the script tool to appear when used from a button in ArcMap. I know how to ...
1
vote
1answer
241 views

Setting Script Tool Parameters Using Python and ArcGIS 9.3.1

Can't quite figure this out and i'm sure it's a simple fix. I have a script that utilizes the AGSSOM tool. It first stops all published services, allows for databases to be tidied up by ...
5
votes
2answers
327 views

Better “ESRI recommended” method other than Pythonscript for filling in patterns into attribute table column?

Attribute tables in ArcGIS are not nearly as easily editable in comparison to something like Excel. For example, you have sorted the table based on some column value, and now want to fill in the ...
1
vote
1answer
215 views

How to import datasets into OpenStreetMap?

A coworker of mine was recently given permission to import our local county government's GIS data into OpenStreetMap. I've made single edits on the OpenStreetMap site before, but I have never imported ...
3
votes
2answers
357 views

Housenumber(point) angle from line (street)

using arcgis 10 with Point data (Housenumber without angle attribute) and line data (street without angle attribute) I want to create housenumber labels from point with correct angle from nearest ...
2
votes
1answer
361 views

Splitting large shapefile into numerous smaller files based on number of objects in each smaller file

I have a shapefile containing approximately 600 000 point-objects. Unfortunately, for a couple of reasons I need to split this file into a larger number of shape-files each containing approximately ...
11
votes
1answer
847 views

How can I display raised error messages to the user in the ArcGIS geoprocessing results window?

Question: Can print statemnts raised from a custom exception be displayed in the gp results window? Background: I modified a script that I found that takes two inputs from a user, finds the ...
2
votes
1answer
750 views

Importing QGIS core into Python on OSX

I am interested in learning how to write standalone scripts using QGIS. An answer to my previous question directed me to the PyGIS CookBook which has the following instructions for importing the ...
6
votes
1answer
2k views

How to write standalone Python scripts using QGIS?

I've been learning how to use the Python Console in QGIS using references from qgisworkshop.org. I'm familiar with writing standalone scripts in ArcGIS and want to learn how to do the same with QGIS. ...
6
votes
2answers
3k views

How to calculate XY coordinates in Decimal Degrees from projected dataset in model or script?

Is it possible to calculate points XY coordinates in Decimal Degrees in model or script when a feature class is in projected coordinate system? It's easy when a FC is in geographic coordinate system: ...
5
votes
2answers
266 views

ToolValidator not doing anything

I have created a simple script tool which has a single parameter of type "String". I have written the tool validation to disable the input field (simply trying to learn tool validation). The ...
3
votes
1answer
264 views

How do I stop GP script from adding temporary data to Table of Contents?

I have a script that does a series of calculations, producing temporary data along the way. However, at each step of the script, data is added to the TOC and then removed when I call the ...
2
votes
0answers
642 views

Dynamic Contour generation and project on google maps

Is it possible to generate contour map layer at runtime and overlap or project on google maps. I am using google map api v3 and want to generate contour map layer using data from sql server and ...
1
vote
0answers
480 views

Variable stored as NoneType in Python with updateCursor

SOLVED: although the field was not nullable (no null values), a glitch created one in the heading field, so the variable was stored as a null value and thus the NoneType. I am using updateCursor to ...
3
votes
1answer
407 views

Python conditional on current and previous row

I need to calculate a new field with a python conditional where some values only occur if a sequence in a separate attribute field (X) occurs. For instance my data set looks like this. Y is the ...
2
votes
3answers
3k views

Python script: Access data from databases [closed]

I need to access data that is inside an oracle database using a python script. Its a Unix server running oracle 10g. I dont have much access to the database server. It works fine on model builder ...
2
votes
2answers
479 views

Looking for python/VB script to insert a new uniqe field

Is there any phyton/VB script which will add a field to shapefile which will be corresponding to first three characters from the shapefile name ? I am working in modelbuilder and arcgis 10. Thanks ...
1
vote
1answer
295 views

Search By Location

Using Arcmap 9.3 I was curious if anybody has a script or vba tool that will select items from a layer that are not within a selected polygon or not touching the selected polygon. Thanks for your ...
4
votes
2answers
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 ...
2
votes
2answers
513 views

Configure QGIS to show only the toolbars wanted.

I friend of mine who are using QGIS in their organization for non GIS-experienced people asked me a question the other day that I didn't knew the answer to. He would like to configure QGIS to only ...
4
votes
5answers
510 views

Can a new point automatically be populated with data from the containing polygon

I need some help to create a script. Imagine that I'm using 3 shapes: 1 point and 2 polygons. When I create a new point I want it to assume some attributes of the polygons in which that point is ...
1
vote
1answer
91 views

Other than the methods stated on the Desktop 10 Sharing Tools section, are there any other ways to distribute custom toolscripts?

Essentially I want to be able to distribute a custom script and it seems that I cannot create a .tbx file, so I looked into the other methods, but they are all only for Python modules it seems. What I ...
1
vote
2answers
339 views

Script for creating a tile-pyramid from a wms service

Given a WMS service, is there a ready-made script that, for a given extent, creates a tile-pyramid that is compliant with: http://leaflet.cloudmade.com/reference.html#tilelayer That is urls on the ...
1
vote
0answers
597 views

Python script for running ArcGIS10 Area Solar Radiation tool

I am trying to run the Area Solar Radiation tool using a Python script, because I want to run it on several DEMs at once. I am using a server with Windows 7, ArcGIS 10 and PyScripter. I am a beginner ...
1
vote
0answers
269 views

Does anyone know a script to make annotation & point data remain constant regardless of scale

I have a series of maps to create for a project (30+ maps). The maps will be at varying scales (roughly between 1:1000 and 1:6000). I have a geodatabase containing various annotation and point ...