Hot answers tagged arcmap
19
You are confusing two different operations dealing with Projections.
Define a projection: You would use this when you have a shapefile or other featureclass, that does not currently have a spatial reference defined when you look at the properties in ArcGIS. You might also use this if you knew based on some observation, that the projection defined for the ...
13
I have found that in 10.0 Field Calculator is quite weird.
But I've managed to get it work. The main idea is to enclose field name with single quotes.
Example. let suppose we have fields text1 and text2. Rather than Calculating field text2 with expression !text1!, which probably will fail, try this one: '!text1'. As you see I am using single quotes here.
...
13
A few suggestions:
Add a thin white border to your inset map, to separate it from the main map. In your example, the thin black line doesn't do enough to differentiate the inset from the main map:
When adding leader lines from the inset map to the inset frame (which shows the extents of the inset map on the main map), do it in Layout view and make ...
12
To start with I will drop this website as a resource you should tie into.
your sequences are actually backward. your fourth has to be the first thing you attempt. (something I learned long ago is to plan what you want to end up with and then work back to where you are so you are sure you will end up with what you want [not something else]).
1. you need ...
12
Your screen capture shows nicely how to copy current cell value to the clipboard. To copy selected records, right-click on the left-most gray button (where the 'triangle' is shown in your screen capture) and choose Copy Selected. Note: keyboard shortcut for both is Ctrl + Shift + C.
11
Because this is a local operation, let's work out how to do it for a single cell: Map Algebra will take care of the rest.
First note that the order of the rasters obviously matters. Therefore single-shot cell statistics, such as a cell sum, won't do it.
If we were to encounter a sequence such as 01110101 at a given cell, we would process this from start ...
11
I like keeping them simple in regards to the outline and leader line. Below are two examples of Key Maps, though not Insets they show two things that can be done to enhance the readability of yours.
1) In yours, you have two leaders (which would look better if attached to the corners), try to reduce them to one:
The red square is the extent indicator for ...
11
Silverman quadratic
"The kernel function is based on the quadratic kernel function described in Silverman (1986, p. 76, equation 4.5)."
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_Kernel_Density_works/009z00000011000000/
The reference is to this book:
...
10
ArcMap just orders based on geometry type: 1. Points, 2. Lines, 3. Polygons.
My suggestion is to use transparency to help you symbolize these overlapping features. Take a look at a color wheel when you're selecting colors and choose colors that have good additive properties.
By using this technique you'll be able to identify the individual layers and ...
10
The best way is to convert this shape file to file-geodatabase and build the topology in ArcGIS for "Must Not Gaps" and "Must Not Overlap".
Important thing in building topology is cluster tolerance. This is tolerance in which topology will remove/fix errors automatically after validating. So you should select this tolerance very carefully as big values can ...
9
If you are using version 10.1 and you are sure you want to get rid of every instance of double quotes you can use:
!testing!.replace("\"","")
If anyone knows why this works in 10.1 and not 10.0 I would be interested.
Here are the results entry from my run.
9
These are the basic steps you need to run through (is this what you have done? Apologies if this is too basic)...
Make sure that your 1940 shapefile has an attribute containing county
area (e.g. ‘Area1940’)
use the Union tool (ArcToolbox > Analysis Tools > Overlay > Union)
with your 1880 and 1940 shapefiles as inputs.
Specify a new output shapefile.
In the ...
9
If you use the ArcToolbox Tool "Table to Table" you can add, rename, or delete output fields using the Field Map Parameter. With arcpy you can use the tool and build your own field map. That field map can use the aliasName property of the field object (have a look at the FieldMappings example 2: ...
8
Assuming your tool is always outputting the output file in the same directory, this function will return the next highest-numbered file name:
import os
def getNextFilePath(output_folder):
highest_num = 0
for f in os.listdir(output_folder):
if os.path.isfile(os.path.join(output_folder, f)):
file_name = os.path.splitext(f)[0]
...
8
Just chatting about this and wondering whether you could approach the problem by treating the input grids as a binary stream. This would allow you to combine them to give a unique summary integer for the sequence - ie 01110101 = 117. This value could then be reclassified to give the maximum number of consecutive 1s.
Here's an example showing one way to ...
8
The approach described in the question exhibits exceptional care in the selection of projections for a given study area. This answer aims only to make a more direct connection between the objective (of minimizing distortion) and the steps that were and can be taken, so that we can be confident such an approach will be successful (both here and in future ...
8
If the intent of your application is to provide the user a simplified view when identifying features then I would suggest just turn off all the other fields within the layer properties that you do not want to show. When the user identifies a feature, they will only see info for the two that are turned on. This can be done by:
Right click layer in the ...
7
Here is a non script way to do it.
Start edit session on you layer.
Open up table and highlight field column.
Select Table Options drop down arrow and select Find & Replace.
Select Replace tab and enter Find what: ", select Replace all (you will have to click the Replace All button twice).
7
Do you want to actually delete the layer from the geodatabase or remove it from the mxd?
If you just want to remove the layer from your mxd, replace arcpy.Delete_management("CADAnnotation") with arcpy.mapping.RemoveLayer(df, lyr)
If you want to delete the data source you can do this.
for item in mxds:
print (item)
mxd = ...
7
The ArcGIS Resource Center has the following sample script demonstrating how to do multiple ring buffers using Pyton
# Name: MultipleRingBuffer_Example2.py
# Description: Create multiple buffers for the input features
# Author: ESRI
# Import system modules
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "C:/data/airport.gdb"
...
7
ArcMap is very picky about enabling the option to clip a data frame to "Outline of selected graphics." I don't remember where I read it, but here's the trick. Before you create the graphic element you want to use for clipping, right click on the data frame (while in Layout View) and choose "Focus Data Frame" (shown below).
The outline of the dataframe ...
7
This is one of those annoyingly simple but obscure software things. If you just right click on the grey boxes over on the left of the attribute table and select "copy selected" there, you will get the whole tuple, not just the field your mouse happens to be over. You'll be able to paste the table as tab separated plain text into whatever application you ...
6
After some experimenting, I found that the answer is surprisingly simple - from version 10 on, the ArcMap application object (esriArcMap.Application) also implements IGxApplication, besides the expected IMxApplication.
This means you can easily access IGxApplication.SelectedObject and work with the catalog in other ways, just like you would in ArcCatalog as ...
6
In my personal experience, no.
Looking at the product matrix, there is also nothing to indicate they would groom their performance as such.
http://www.esri.com/library/brochures/pdfs/arcgis10-functionality-matrix.pdf
I would suggest running some test cases with the same data, stored locally, on the same computer, with different licenses in order to ...
6
Here is a code block for the Field Calculator that will do what you require.
Open the attribute table
Select all of the records that contain a NULL value in the desired field
Open up the Field Calculator and insert this code in the appropriate sections.
Accumulative and sequential calculations
Calculate a sequential ID or number based on an interval.
...
6
The batch project tool is designed for just such a task
The help files provide a really clear standalone python example, which can be adapted to meet your needs:
# Name: BatchProject.py
# Description: Changes coordinate systems of several datasets in a batch.
import arcpy
from arcpy import env
# Set workspace environment
env.workspace = ...
6
There is a built-in script tool that does exactly this: Multiple Ring Buffer
You can right-click it and go to edit to see the source Python script for its implementation.
If you want to roll your own (as a script tool), the key to the implementation is a multi-value parameter (of type double) for the distances, which at runtime is passed as a ...
6
If you look at the tool help you'll note that Join Field permanently adds 1 or more fields to the input table.
The tool you probably want is Add Join, which works more like the interactive join command to create a temporary join.
You'll probably want to use Remove Join when you're done though to clean up after yourself.
6
The attached image shows four coordinate systems. The top two are projected coordinate systems and the bottom two are geographic coordinate systems. I suspect you will like the visual appeal of the Idaho state system located in the top right dataframe. You can easily experiment with the look of various projections by assigning a projection to the ...
6
In ArcGIS you need to 'calculate statistics' for your raster. The easiest way to accomplish this is to right-click on your raster in the table of contents and select Properties. Click on the Symbology tab and you will have access to your display and symbolization properties. From here you can select the symbology you want to use. If you switch between ...
Only top voted, non community-wiki answers of a minimum length are eligible


