ArcMap is the main application of ArcGIS for Desktop and the tag for that (arcgis-desktop) should normally be used in preference

learn more… | top users | synonyms

6
votes
1answer
4k views

Delete layer from ArcMap using Python

Problem: I'm trying to loop through all my layers looking for layer named "CADAnnotation". If the layer exists then remove the layer from the mxd Notes: Running from Stand-Alone script (ie. NOT ...
6
votes
3answers
4k views

Arcmap: attach python script to a button?

In ArcMap 9.x how can I attach a python script to a button?
6
votes
2answers
409 views

Deleting polygons smaller than certain dimension using ArcGIS for Desktop?

I've made a model in modelbuilder in Arcmap 10.3, what it basically does is creating polygons over open areas such as farm-lands, grass-lands, marshes etc that has a low slope. My challenge is that I ...
6
votes
3answers
4k views

Checking "connectedness'' of line shapefile in ArcMap?

I inherited a line shapefile in ArcMap that is used to represent a road network. The problem is that the road network is pretty large and it is impossible for me to: Tell if the end of each line (...
6
votes
2answers
14k views

Using multiple attributes feature for symbology in ArcMap?

I am trying to make a map using US census data showing vacant housing to total housing on the same map. I came across the "multiple attributes" feature under the symbology tab and wondered if this ...
6
votes
2answers
126 views

Is there a shortcut for switching between drawing Lines and drawing Arcs in ArcMap?

I normally use AutoCAD for something like this. I am digitizing parking lots and have to press the buttons on the toolbar to switch between lines and arcs while drawing. Is there a shortcut that I ...
6
votes
3answers
310 views

Is the filename of a shapefile the same as its Feature Class name?

This is a very basic question, but I'm not finding the answer on Google or here... I have a bundle of files I have to submit in an incredibly specific format. Our sub-consultants gave us a set of ...
6
votes
2answers
18k views

How to remove duplicate features with the same geometry in ArcMap?

Is it possible to uniquely identify each geometry in a feature layer? Essentially I have a polygon feature layer with many rows of data represented by the same geometry. I would like 1 row for each ...
6
votes
3answers
7k views

Exporting Selected Raster Graphics using ArcGIS Desktop?

I'm having a problem exporting raster graphics using ArcGIS 10. It seems simple enough, but for some reason I cannot get ArcMap to work with me. Here are my steps: Add a raster to ArcMap Open the ...
6
votes
3answers
13k views

Using ArcMap, how may I convert a shapefile to use decimal degrees?

I have a shapefile that currently uses meters as the measure for its coordinate system, but the map framework I wish to use expects decimal degrees. I'd like to reproject my shapefile to use decimal ...
6
votes
2answers
1k views

How to refresh the ArcMap display using ArcPy?

Was trying to replicate a RePast Agent Analyst simulation using just Python and arcpy. The script was about urban expansion. The script just changes the values of a column in a shape file. ArcMap's ...
6
votes
6answers
10k views

ArcObjects - Create and Draw a Transparent Polygon

I'm trying to create a transparent Polygon in ArcMap; however, it's never transparent. Here's the code I have. // Create polygon IPolygon polygon = new PolygonClass(); // create & add points,......
6
votes
2answers
601 views

How to delete last part of a string starting from the 1st non numeric character? [closed]

I'm looking for a Python or VB statement to remove the last part of a string, starting where the 1st non Numeric character appears, using the Field Calculator in ArcMap 10. Here's an example of what I'...
6
votes
3answers
4k views

What is the target .NET Framework of ESRI ArcObjects SDK 10.2

I had ArcMap 10 Add-In project built with ArcObjects SDK for .NET 10.1 where I could not reference external COM DLL build on .NET 4.0 due to a .NET forward compatibility issue. (ArcObjects SDK 10.1 ...
6
votes
5answers
4k views

Volume of water in basin with reference to incremental height of DAM?

I have a DEM of my area. I did watershed analysis with Arc Hydro. I want to calculate "Volume of water in a basin with reference to incremental height of DAM" Is there any method, tool to give ...
6
votes
2answers
8k views

Interpretation of ArcGIS Kernel Density legend parameters

In ArcMap 9.3 I've used Kernel Density to map various incidents, but the resulting shapefile doesn't display any units of measurement. Is there a good, not-to-technical source that would explain in ...
6
votes
2answers
270 views

Automating labels with numbers

Is there a way to strip characters from a string using python? The string is varied in length... Examples of strings: Interstate 10 Auxiliary road 24 State highway 14 I am looking for just the ...
6
votes
1answer
518 views

How to remove Commas from field values in multiple files?

I'm working in QGIS, presenting data in ArcMap, and Arc is having trouble with the attribute tables. I have a "species" column which lists the species found in that area and have added commas "," in ...
6
votes
3answers
4k views

How to efficiently read and reclassify many rasters in R

I've been tasked to create a suitability analysis of wave conditions in the Gulf of Mexico. I have 2 thousand or so raster files that are about 8 MB each (2438 columns, 1749 rows, 1km cell size). ...
6
votes
1answer
686 views

overlay county shapefiles for 2 different years

I have county-level shapefile for South Caroline in 1880 and one for 1940. I would like to overlay these two files so that they do the union and indicate the percentage of the land in 1880 that went ...
6
votes
3answers
2k views

How to determine elevation drop along stream with ArcGIS Desktop?

I need to calculate(estimate) hydraulic head(elevation drop) along a single river stream in order to find potential site for small hydropower plant. I have a DEM with 20m resolution and raster and ...
6
votes
2answers
265 views

Create a projection to emphasize a given direction in ArcMap?

Suppose one had a dataset (centered on a given coordinate) of lines that were very close together in terms of longitude but also had important turns/bends far separated by latitude. In order to map ...
6
votes
2answers
747 views

How to decide how to “stretch” raster imagery?

I have to symbolize a digital elevation model. ArcMap offers many different setting for stretching the symbology which all give widely different results. Some stretch methods symbolize the data so ...
6
votes
4answers
3k 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 ...
6
votes
4answers
1k views

Code to open web browser crashes ArcMap when run from a Python add-in

I created an ArcMap Python add-in using ArcGIS 10.1 to open a webpage after the map is clicked. It opens the page but then ArcGIS crashes. import arcpy import pythonaddins import webbrowser class ...
6
votes
3answers
2k views

Is it possible to target an ArcMap add-in to an earlier version?

My development environment is Visual studio 2010 with ArcGIS Desktop 10.1 installed. I need my add-in to support 10.0 AND 10.1. Right now, if I try to install it on ArcMap 10.0, it fails. Is it ...
6
votes
5answers
17k views

Trouble when georeferencing CAD files in ArcMap

I've definitely got at least a couple of grey hairs while trying to convert some dwg. files to shapefiles. I've seen that this subject has been disscused a lot, but hope someone will have the ...
6
votes
2answers
182 views

What event is fired when a feature is edited?

When the user draws a new feature (line, point, etc.) in ArcMap, there are null attributes. If the user enters values in these null fields what is the event that is fired? I want to control the ...
6
votes
2answers
669 views

Select by Attribute within a specific area (using Select by Location?)

I have a map with four layers. Two of these layers cover an entire state, and the other two focus on the area I'm actually interested in within the state. I'm trying to Select by Attribute with one ...
6
votes
1answer
673 views

Turn off field programmatically in ArcMap via VB.Net

I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. My idea is to hide the unnecessary fields ...
6
votes
1answer
842 views

Automating ArcMap with ArcObjects for unit testing?

I need to run unit tests against ArcMap extension which closely coupled with specific edit workspace and map state. When I try to initialize ArcMap 10 application with code like this: ESRI.ArcGIS....
6
votes
2answers
741 views

How to alter transparency by spatial location

I'm trying to create a map that has a all layers within a subject area having 0% transparency (full opaque), while features outside that area (defined by a polygon shapefile) having a reduced ...
6
votes
2answers
1k views

How to create regular soil sampling grids?

I need to be able to set up a soil sampling grid at regular spacings of around 50 - 100 meters. Then export the points to a GPS so I can be guided to the points. I am new to GIS and have tried to do ...
6
votes
2answers
11k views

How to sort a feature class and then calculate a sequential ID field?

I am in ArcMap and I want to sort the records based on a field and then do a Calculate Field with an auto-incrementing value with the sort in-place. Any ideas? It looks like I could get an update ...
6
votes
4answers
5k views

Vertically docking Tools toolbar to left of map and right of TOC in ArcMap 10.x?

In general, I really like the docking environment in ArcGIS 10. As I was showing off ArcGIS 10 to some of my end-users, I couldn't get the toolbar docked to the left of the map and to the right of ...
6
votes
2answers
629 views

What are the alternatives to ArcMap's Report Wizard?

I have a polygon layer which has lots of attributes, and I'd like to create a report template which summarises these attributes for individual polygons. That is, the user will select a polygon from ...
6
votes
2answers
1k views

How to divide polyline into 1-mile increments?

I have a river shapefile that I need to break up into 1-mile increments. The polyline is 53 miles in distance, so I should I have about 53 mile markers as a result. I have tried the Divide tool, ...
6
votes
1answer
2k views

Where is Object Loader found in ArcMap?

I've only used the Simple Loader in ArcCatalog. The documentation also mentions an Object Loader which resides in ArcMap. Where do I find this?
6
votes
3answers
249 views

Can I access Trimble logged positions in ArcMap10?

We recently walked a fence perimeter with a Trimble Ranger, auto-logging positions at 5 second intervals in a generic point file. The exported file acknowledges over 800 points, but only displays the ...
6
votes
3answers
856 views

How to Comment Out Definition Queries

I use Definition Queries a lot in my daily GIS life, but one of the many things I've found annoying about ArcMap is the inability to comment out Definition Queries. I'd like to have this option as ...
6
votes
1answer
546 views

Why does tool take longer to run when in Python script?

I have written a python script that does some euclidean allocation. For that I use arcpy.gp.EucAllocation_sa() method. Now, my python script takes 30-40% extra time than spatial analyst euclidean ...
6
votes
1answer
2k views

Forcing long layer names to multiple lines based on specified legend width in ArcGIS Desktop?

Do to various limitations I almost always create static (graphic) legends but I do have the occasional map where impeccable cartography is secondary to functionality hence a dynamic legend is ...
6
votes
1answer
1k views

How to persist a polygon to SQL Server database and vice versa?

How do I extract all the points from a Polygon drawn in ArcMAP and then persist that data into a SQLServer database table containing a geometry column and then when I've got the data persisted read ...
6
votes
3answers
3k views

Convert .mxd with embedded VBA command button to ArcMap 10

I'm trying to convert an .mxd file from an older version to ArcMap 10. The old version had two simple VBA scripts attached to toolbar buttons. I am trying to convert this .mxd to ArcMap 10. For ...
6
votes
1answer
5k views

How can I save and re-apply symbology properties for a classified raster in ArcMap 10.2?

I have a classified raster which has the desired symbology configured in ArcMap, and I want to apply this symbology to other similar rasters. So I use the Save option on the Symbology tab, intending ...
6
votes
1answer
5k views

ArcMap tables - copying multiple horizontal cells between rows

I would like to be able to select a contiguous set of horizontal cells in a row, take a copy, then paste the values into another row at the same position in the same table. I do not want to copy all ...
6
votes
1answer
5k views

Analyzing Flow direction in Geometric Networks in ArcGIS

I have a task in ArcGIS which involves using Geometric Network and right now I am experimenting with Set Flow direction function from Utility Network Analyst toolbar in ArcMap. I've read section Flow ...
6
votes
2answers
5k views

How do you construct a definition query to return only those features in the current month without hard coding the date?

I have a feature class containing a date field within a 9.3.1 File Geodatabase. There are "duplicate" features contained within this layer, one feature for each month over the past few months. ...
6
votes
4answers
3k views

How to export aerial imagery as layers in layered PDF?

I want to show aerial imagery as layers in my pdf, so people can turn them on and off (e.g historical images). However according to ESRI images become merged when exported as a layered pdf. What is ...
6
votes
2answers
3k views

Count number of unique raster pixels in polygon using ArcMap?

I have a polygon shapefile and I want to generate a table of a count for each pixel value in each polygon. My main goal is to find out what pixel is most abundant in each polygon. I am using ArcMap ...