Tips and TricksArcGIS tips
and tricks will be filled in as time allows.
Drop me an email on what you would like to see here!
I'm always open to suggestions.
ArcCatalog: Tables
Connecting to an Excel Table
for use in ArcCatalog and ArcMap (for pre-9.2 users)
ArcCatalog: Data Sources
Fix Source pathnames for your map
document
ArcMap: Editing
Select portions of polygons
(perhaps from a polygon coverage) and build into new polygons in a
Personal GeoDatabase
Windows: Management
Recover your identify results window,
or any window that has accidentally gotten moved to a point off your
screen
Turn off
annoying Windows sounds
Connecting to an Excel Table for use in ArcCatalog and ArcMap
(read only access)
To connect to an Excel table so you
can use it in ArcCatalog and ArcMap, follow these instructions:
-
Close
ArcCatalog before starting any of this.
-
In
your Excel table highlight the rows/columns you want in your table,
including the field names. This is done so you can possibly have
more than one table within an Excel document.
-
From
Worksheet Menu Bar, choose Insert > Name > Define. Give it a
name.
-
Click OK
and Save your document.
-
Open your
system Control Panel and choose Administrative Tools > Data
Sources (ODBC)
-
On User DSN tab, click Add…
-
Highlight
Driver do Microsoft Excel Driver (*.xls) and click Finish.
-
Fill in
the Data Source Name with any name you wish. It doesn’t have to
be the name of the xls file you are working with.
-
Click
Select Workbook…
-
Browse and
select your Excel document.
-
In ODBC
Microsoft Excel Setup window, click OK.
-
In ODBC Data
Source Administrator, click OK.
-
Start
ArcCatalog.
-
In the
catalog tree, click Database Connections.
-
Double-click
Add OLE DB Connection.
-
Highlight
Microsoft OLE DB Provider for ODBC Drivers. Click Next >>
-
In Use data
source name click the down arrow. You should find the name you
set in step 8. Choose it.
-
Click Test
Connection to see if things are working OK.
-
Click OK. A
new entry under Database Connections should be listed by the
name of OLE DB Connection.
-
Open OLE DB
Connection (or you may rename it first).
-
There should
be a table listed by the name you assigned in Step 3 above.
-
Easy, huh?
Back to Top
Select
portions of polygons (perhaps from a polygon coverage) and construct new
polygons in a Feature Class.
For a copy
of the Word document of this process that includes screen images, contact Mr.
Kessler (no cost).
This
solution was developed for a user needing to create boundaries from a number of
sources: historical map, surveyed boundaries, existing ownership. Some of the
new boundary lines were coming from each source and the user didn't want to
digitize them again.
-
Perform this step if you have polygon feature classes already in a
GeoDatabase. Use the tool Data Management Tools > Features > Feature to
Line. Convert your polygon feature class to lines (so you can copy
individual lines).
- Add
the line feature classes that you want to copy portions of to ArcMap. If you
are using coverages, simply add the arc feature class.
-
Create a new, empty line feature class to collect your copied lines and
optionally to collect newly digitized lines that you will be adding to
“close” polygons (at least in a later step). Let’s call it NewLines (just
for drill). Add it to ArcMap as a layer.
- Start
editing and make the target NewLines and the task Create New Feature.
-
Select the features you want to copy, for instance district lines from one
layer (in ArcMap) and roads from a second.
-
Choose Main Menu > Edit > Copy.
-
Choose Main Menu > Edit > Paste (this puts the selected features into
NewLines).
-
Save Edits. Turn off other layer visibility. Change symbols for NewLines.
-
Digitize the “closing” lines you will need (any polygons not “closed” will
not show up in the later steps). All you have to do is cross the lines.
- Stop
editing and save edits.
- Open
Arctoolbox > Data Management Tools > Features > Feature to Polygon.
-
Specify your input features as NewLines.
-
Specify your Output Feature Class as “NewPolygons”.
-
Set other parameters as necessary.
-
Click OK. In the example shown below (shown with and without NewLines
visible), there are two polygons in the output.
Back to Top
Recover your identify results window
or any other window that has accidentally gotten moved off your screen
You know an identify tool is working
in ArcMap and you suspect the Identify Results Window is also displayed,
but you can’t see it. This may be due to the fact that sometimes (for an
unknown reason) your window has ended up positioned off your screen.
There are a few ways to recover from this.
Method 1 (thanks to Kayla
Kruse -- Spokane Regional Transportation Council)
Advantage – very easy to do
and not dangerous
Disadvantage – can't think of
a danger
-
If
you have lost a application window, activate it from your Taskbar.
-
If
you have lost an Identify window, click on the Identify tool in your
ArcMap application (this should activate the window even though you
cannot see it).
-
Hold
the Alt key down and click on the spacebar (this opens the menu for
that window).
-
Press enter
(this makes certain your window is not maximized).
-
Hold
the Alt key down and click on the spacebar (this opens the menu for
that window again).
-
Press
the down arrow on your keyboard once (this changes your choice to
Move).
-
Press enter
(this will attach your mouse to the top bar of your window).
-
You can either
use your arrow keys to move the window in any direction or click and
hold your mouse and drag the window. Start with small movements left
and right to see if it appears at the edge of your display.
Method 2
Advantage – easy to do
Disadvantage – you may have
other ArcMap customizations removed by this process
-
Close your ArcMap application.
-
Open Windows Explorer and go to
C:\Documents and Settings\
<your_profile_name>\Application
Data\ESRI\ArcMap\Templates
-
Rename the Normal.mxt file to
OldNormal.mxt. (You rename because
you may notice that after fixing this problem, you have also removed
customizations that you wanted to keep.)
-
Restart ArcMap and try your identify tool again.
Explanation: ArcMap uses a
special template called the
Normal template
(Normal.mxt) to store information about the default user interface, for
example, the state—visible or hidden, docked or free-floating—of each of
the ArcMap toolbars (and positioning of the Identify Results Window).
This information is recorded automatically in the Normal template, so
when you
start ArcMap
(whether you saved the map you were working on or not), the toolbars
look the same as they did when you quit. When you restart ArcMap and it
can’t find your profile’s copy of Normal.mxt, the software will go into
ESRI’s install directory and use its copy. You will now have a new copy
of Normal.mxt in your profile directory.
Method 3
Advantage – very specific
operation that performs the one change you need
Disadvantage – it is always
very dangerous to be editing your registry
-
Close your ArcMap application and any other applications (reducing
clutter).
-
On your desktop, choose Start > Run and type in regedit. (Note:
running rededit can be VERY DANGEROUS! Be extra careful when
performing this operation!)
-
In the left panel of Registry Editor, navigate to
My Computer\HKEY_CURRENT_USER\
Software\ESRI\ArcMap\
IdentifyResultsDialog.
-
In the right panel you will notice a property IdentifyWindowPos and
see some pixel coordinates, such as 478,127,1110,570. These are
coordinates for placing and sizing the window on your display. Your
coordinates will likely be much different than the ones listed
above. For safety sake, write down your coordinates as they now
exist (just in case other things are going wrong and you want to put
things back together).
-
Right-click on the IdentifyWindowPos object and choose Modify.
-
Type in a new values for all four, such as 300,100,1000,500.
-
Click OK and close regedit.
-
Restart ArcMap and test your identify tool. The coordinates I’ve
given you should work just fine to get your Window back on your
display. If that doesn’t work, try some others. You will likely want
to resize the window after you get it back on your display.
Back to Top
Turn off annoying Window sounds
I can never remember how to do this... so I thought I
would put it here.
Control Panel > Sounds and Audio Devices > Sounds tab
Scroll down to Start Windows event and set sound to
[None]
Back to Top
Fix Source pathnames for your map
document.
Right-click on your map document in ArcCatalog and
choose Set Data Source(s).... Great tool!!!