Use this tag when ArcGIS 10.1 is the version you are using from the ArcGIS platform.

learn more… | top users | synonyms

8
votes
3answers
733 views

Is there a way to tell the geodatabase version using Python?

I want to find out if either a file or personal geodatabase is 9.3, 10.0, 10.1, etc Is there a way to do this using Python?
8
votes
3answers
1k views

How to get the subbasin area of each specified river segment?

I have a DEM file of one district, and I have used those following tools in spatial analyst tools in ArcGIS 10.1 to get files related to the original DEM file: Fill Flow direction Flow accumulation ...
8
votes
1answer
869 views

Fastest methods for modifying attribute tables with Python?

A while ago, I wrote a quick Python function for converting an attribute table to a python dictionary, where the key is taken from a user-specified unique ID field (typically the OID field). ...
8
votes
4answers
2k views

How to split single address field into 4 fields (House No., Direction, Name, Suffix)

I have to do some massaging of our parcel data to make it usable by a program in sheriff helicopters. The program requires one of the following address formats within the fields: Our addresses are ...
8
votes
2answers
2k views

DEM Elevation Units

I'm fairly new to the GIS world, and have a quick question. I'm currently using 10.1. I do not know much about rasters, so does transforming a DEM from one projection to another automatically convert ...
8
votes
2answers
1k views

How to specify unit of measurement when accessing Geometry() object's 'length' attribute?

Using the CalculateField_management tool, one can specify the unit of measurement when calculating shape length: #Calculate polyline lengths in miles polylines = "C:\sampleShape.shp" ...
8
votes
3answers
1k views

How to mirror two geodatabases on the fly?

I'm new to arcgis and its applications. We have the full suite of arcgis solutions (arcgis server, desktop, arcgis sde) We have a requirement... geodatabase (A & B) A & B reside on 2 ...
8
votes
2answers
2k views

ArcGIS 10.1 edit PostgreSQL layer

I've been working with QGIS/PostgreSQL/PostGIS for a while now, without problems. But now I have to change QGIS for ArcGIS 10.1. I'm having trouble adding a layer from PostgreSQL and being able to ...
8
votes
1answer
524 views

How to integrate eclipse (PyDev) with Python Add-In development (ArcGIS 10.1)?

In ArcGIS 10.1, Python Add-Ins make various buttons, toolbars, extensions, etc, available to those already familiar with Python and OO in general. I am in the process of developing a Python Add-In and ...
8
votes
4answers
6k views

Connecting to ArcGIS Desktop PostgreSQL database (running locally)

I know this is a total noob question but then again, when it comes to PostgreSQL I am a total noob... I have installed the OpenGeo suite on my computer, running Windows 7, 64-bit. I have ...
8
votes
2answers
413 views

ArcGIS 10: Create an event linear layer from a point layer based on directionality

I have a point layer that reflects the speed limits and a line layer of the roads. The location of the speed sign indicates in which direction the speed limit applies. How can I make linear event ...
8
votes
2answers
2k views

Is there workaround for very slow ArcSDE 10.1 data display

I'm suffering from very slow viewing data of and ArcSDE database from an Arcgis engine application, the SDE database is in localhost so there's no network issues. but i still don't know the reasons ...
8
votes
1answer
4k views

Mathematics behind converting scale to resolution?

I have a ArcGIS service configured as shown in this pastbin. Specifically, the first LOD looks like this: { "level": 0, "resolution": 222.2222222222222, "scale": 256000 } I determined how ...
8
votes
4answers
2k views

Insert points into SQL Server?

I am collecting X and Y values from a web service (Twitter) via a python script. In the long run, this will run over a period of months and I intend on stopping at around the 6 million point mark. ...
8
votes
2answers
796 views

Python script to read CAD data to find polygon extents

I have Civil 3D 2012 with ArcGIS for AutoCAD 300. I want to read the extents of a polygon in the drawing. Feature Class in A4A300 = Boundaries, the CAD layer is PROP-BNDY, there is only one polygon on ...
8
votes
1answer
950 views

Handle annotation layers with arcpy

I want to access annotation layers using arcpy (the purpose is to verify few text strings in text annotations). By annotation I mean draw tool annotations, not dynamic labels. These annotation layers ...
8
votes
5answers
907 views

How to set ArcGIS for Desktop license to lower level for testing whether Python script still runs?

I have a Python script that will need to be given to a client. We are currently evaluating what license level the client will need in order to run the script for their software acquisition purposes. ...
8
votes
1answer
270 views

ArcObjects running in Addin slower?

I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
7
votes
2answers
297 views

Displaying legend item as polyline instead of polygon in ArcMap?

I am using ArcMap 10.1 and am trying to create a legend that will display a polygon layer as a single line.
7
votes
3answers
10k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
7
votes
2answers
182 views

Reducing elevation from DEM using ArcGIS for Desktop?

I am so curious how would I strip off elevation from the DEM. I don't know how I would explain it further but I have attached an image to clarify this. I wanted to eliminate the area shaded with ...
7
votes
5answers
5k views

Manually classifying graduated data outside of range in ArcGIS for Desktop?

I have two shapefiles representing grids with values that are symbolized with graduated colors, shown below: You can see that the two shapefiles encompass similar ranges of data, but assign ...
7
votes
3answers
714 views

can arcpy detect whether it's running in Desktop or Server?

I'm developing some code that I want to run both as an ArcGIS Server web service and as a standalone script. I want to be able to modify the execution slightly depending on whether it's running as an ...
7
votes
2answers
4k views

Getting XY map coordinates on mouse clicks as input variables into a python script

This is my first time coding in python, so bear with me. I wrote a script to calculate an analytical solution to find the orientation of a plane based on three points. I'm using ArcGIS 10.1. # Input ...
7
votes
1answer
5k views

How to increase maximum memory usage cap for running Arc 10.1?

Not sure if this is strictly GIS related or perhaps belongs on StackOverflow...it is regarding ESRI ArcGIS 10.1, so I'm sticking it here. I'm looking for options to increase processing capacity, and ...
7
votes
1answer
2k views

How to choose raster interpolation method?

I work with a dataset of ~1.3 million residential buildings; each of them is described by a normally distributed variable ranging from 0 to 100. The dataset covers whole Switzerland so there are ...
7
votes
1answer
402 views

Do ModelBuilder or Geoprocessing tasks run slower if screen locked?

Is it true if you are running ModelBuilder or a geoprocessing task on a large raster\vector dataset then locking the computer would that cause the ModelBuilder or any geoprocessing to run slower? Is ...
7
votes
1answer
4k views

How to change/add keyboard shortcuts in Arcmap?

How can I change or add keyboard shortcuts in Arcmap? I have tried Customize --> Customize mode --> Commands --> Keyboard. However, this does not seem to actually work. I can add shortcuts and link ...
7
votes
1answer
324 views

How much database bloat is reasonable?

I use personal geodatabases to hold all the data for my projects (probably around 10-20 feature classes across 2-4 datasets on average). I use the personal gdb because I like being able to hook into ...
7
votes
2answers
887 views

Autoincrement field when New Feature added

I know that this is probably a very basic programming but I am brand new to Python. I have a layer in a geodatabase that I need a unique ID field (for joining). I can't use the ObjectID because that ...
7
votes
1answer
2k views

Why can't I access a table in a personal geodatabase (.mdb) with arcpy after installing 64-bit geoprocessing?

I wrote and ran a simple script last year - it cycled through some line features, buffered them and then intersected with some other lines - it all worked fine. I'm now trying to tweak the file to ...
7
votes
2answers
4k views

Merging attribute tables from feature classes into single table?

I have a large number (approx. 1,100) polygon feature classes. What I would like to do is to merge the attribute tables from each of these feature classes into a single table, in the simplest and ...
7
votes
3answers
4k views

Calculating Field based on name of shapefile

I have multiple shapefiles to which I have added a field called "gname1". For each shapefile, I want "gname1" to be set to the name of that particular shapefile, for every feature within the ...
7
votes
4answers
415 views

Do you use a proven workflow to edit and document ArcGIS ModelBuilder models?

Do you have any reference to best practice examples , or can you share your expertise on how to keep track of edits to ModelBuilder models , track changes between model/tool versions and maintain ...
7
votes
3answers
3k views

A tool or way to Extend line by specified distance?

I have a purely aesthetic layer which has arrow symbols. Some aren't showing up right because the line is too small. I have selected maybe 50 records where I need to extend this line by a given number ...
7
votes
1answer
371 views

Circular insets in ArcGIS

Looking for a way to add an AutoCad-type circular inset in ArcGIS 10.1. Have tried many different methods but the best we have been able to do is shown here using "insert picture" after various ...
7
votes
2answers
141 views

How to classify agriculture employment data?

I have employment data which are huge - about 500 data for each category, like agriculture field, fishing field etc. Now I want to categorise this data in to 7 ranges. Suppose <50=1, >50-100=2, ...
7
votes
3answers
5k views

ArcObjects/ArcServer 10.1 - How to programatically publish a map service?

I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that matters). Here is the code I am ...
7
votes
2answers
195 views

Rules of Nodata value?

What are the arithmetic rules that govern Nodata values? Regardless of how these null values are defined? I am using ArcMap Raster Calculator. I am thinking specifically of operations like 1*Nodata ...
7
votes
2answers
968 views

Truncate Table tool with geoprocessing service?

A model I built with ModelBuilder works as expected in Desktop yet generates numerous error messages when published as a geoprocessing (GP) service in ArcGIS Server 10.1 SP1. I've decided to start ...
7
votes
2answers
69 views

Creating a point on edge of closest polygon

My project is looking at a grid in the ocean. I want to capture each ocean point's distance to the nearest coastline as a weight, and then use buffer to capture the sum of nightlight data within a 1 ...
7
votes
2answers
683 views

How can I speed up my arcpy script?

I have written an application that does a lot of geoprocessing using arcpy. Once started, the application itself runs at an acceptable speed, but it is very slow to boot. It can take 30 seconds or so ...
7
votes
3answers
4k views

How to replace non-English characters in attribute tables using Python?

I have a few shapefiles where some of the attributes contain the non-English characters ÅÄÖ. Since some queries doesn't work with these characters (specifically ChangeDetector), I tried to change them ...
7
votes
6answers
392 views

Unable to debug Esri Addin for ArcCatalog

It was a toss of a coin whether this question is a GIS.SE or StackOverflow question... I'm going with GIS.SE because the problem seems to lie with ArcCatalog. I have several addins that have been ...
7
votes
2answers
169 views

Clean up attributes

I want to clean up the attribute table of a road shapefile for all the entries in the fields. For example: As seen below I have a road feature with a "Name", Name From and Name To in the attribute ...
7
votes
1answer
279 views

Calculate the common area between polygons using python?

I am trying to calculate the common "empty" area between the neighbouring polygons in order to calculate the porosity volume (the red area in the image) My idea was, first to use Convert ...
7
votes
1answer
354 views

Is it possible to interrupt Select Layer By Location when first feature selected?

I´ve got a point feature class with some 7.000.000 points and I´m trying to check if any of these points is simply intersected by several polygon feature classes using 'for' loop and ...
7
votes
2answers
4k views

Select and copy features in ArcMap using Python add-in tool

I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. ...
7
votes
2answers
10k views

Select by Attributes based on SQL wildcard range

I want to select all the records from a geodatabase table where the string starts with a letter, so I tried SELECT * FROM tbl_names WHERE "name" LIKE '[A-Z]%' This returned no records. After some ...
7
votes
1answer
2k views

Creating ArcGIS add-ins for both 10.0 and 10.1

Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...