Hot answers tagged

90

You are confusing two different operations dealing with Projections. Define a projection: You would use this when you have a shapefile or other feature class 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 ...


37

Right click on the mxd in ArcCatalog, click on Set data sources, and bulk change from there. However, this tool warns: Note: this dialog is intended primarily for preparing map documents for publication. Customizations (VBA code, UI Controls and custom toolbars), graphs, and table window appearance properties are removed from .mxd files when you update ...


31

In the Table of Contents window, there is a button across top titled "List By Selection". Clicking this button toggles the Table of Contents into a mode that lets you change the selectablity of each layer in your dataframe.


31

Any old video card will work for the 2D display functions. The video card's 3D capabilities only come into play when using specific 3D GIS features such as ArcScene or ArcGlobe in ArcGIS Desktop. If you aren't planning on doing 3D visualization then it does not matter one bit. I would spend the extra money on an SSD instead.


30

Use the Feature Vertices To Points tool within ArcToolbox or if you do not have Advanced license then you may use the Polygon to Point tool from ET GeoWizard (free tool). Finally, in ArcMap use the Add XY Coordinates tool to generate the XY value for each vertex and use Table to Excel to generate a spreadsheet.


30

Although you have set the projection of your 3 other layers by the properties menu in ArcCatalog, you have failed to re-project the data to the proper coordinate system. Please try the Project tool, located in Data Management Tools → Projections and Transformations → Feature. This should allow you to create a new feature class that is projected ...


29

I've seen similar complaints on the Esri discussion forums and a quick search turned up this thread. Some suggestions: Save a copy of the mxd Open the geoprocessing results window and delete the history Under geoprocessing options, results management, change the value to a day or two


27

Use the Erase (Analysis) Tool:


26

There are three different ways to find and store polygon area into a feature class with arcpy: 1) field calculator, 2) "classic" arcpy cursors, and 3) arcpy.da cursors. Some of this is borrowed from my previous answer about using SearchCursor. 1. Field calculator When using field calculator, there are three different expression types that use different ...


24

You can use basemap layers to solve this. Once you are happy with the symbology of your layers you can right click the data frame and select New Basemap Layer (see below) which is similar to a group layer. You can then drop the layers into this group, it will redraw them once and then 'store' this view rather than redrawing every time you make a change. If ...


23

A quick and dirty method is to draw the shadows of the building roofs only, render them in dark gray (preferably semi-transparent if there are any underlying ground layers), and draw the building polygons over them. The roof shadows are obtained by translating the building polygons by the distances determined by the building heights in the direction ...


22

ArcGIS 10.1 and ArcGIS 10.2 both natively support PostGreSQL and PostGIS data types. Included in the help for both versions is a walkthrough of gettting set up, and configuring tables to use the PostGIS geometry types.


22

We need to bear in mind that these data are samples of discrete lithologic domains. Often, the boundary between two such domains cannot be identified in the field and so it's not valid to expect that many of the sample locations will lie precisely along boundaries. A correct solution will be a partition of the study area and each polygon within that ...


21

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 sure you ...


20

Use Bilinear Interpolation resampling during display You can somewhat improve the display by changing the resampling method used from the default Nearest Neighbor to Bilinear Interpolation. Layer Properties -> Display Tab -> Resample during display using: Bilinear Interpolation. This effect works best with DEM and the default black and white color ramp. ...


20

On the Table of Contents pane just below the words "Table of Contents" there should be 5 buttons. Ensure that you are on the first button called "List by Drawing Order". This mode allows you to do the dragging that you want. A trap for new users is that adding a table to ArcMap changes the Table of Contents to List By Source View (because that is the ...


20

If you have an advanced license, you can use Find Identical or Delete Identical. Both can be used to find/delete features that have identical attributes, or, if the Shape field is specified, identical geometries. If you don't have an advanced license, this post will be useful. In short, you add two fields for X,Y in your attribute table and run a Dissolve ...


18

Right-click the feature class in ArcCatalog and go to the Properties. In the Feature Extent tab, click on Recalculate. And voilà! I'm using ArcGIS 10.2.1


18

Another option here would be to perform a union and then delete the inner feature. After the union, select features from the initial layer and use the delete feature tool to remove the selected polygons.


18

Yes - I use the Rectangle Text tool from the Draw toolbar instead. It is not well known (see the number of times it is requested on ArcGIS Ideas) but is documented as Adding text that flows within a graphic: You can add text that flows within a graphic to your map annotation or graphic text by using the Polygon Text, Rectangle Text, and Circle Text ...


18

To add a custom toolbox, in ArcMap or ArcCatalog, open ArcToolbox and right click in the white space and go to Add Toolbox: To see the script, right click on the tool, and go to Edit or Export Script. If you use Export Script, create a new text file and select it when exporting. You might need to go into the Geoprocessing menu, and go to Geoprocessing ...


17

GPX File Support has 820 points so far on the ArcGIS Ideas page, so I guess there are few people around waiting for this functionality (vote on the Ideas page please! :]). There are few ways to tackle this problem (in no particular order): Use GPSBabel to convert your GPX files to CSV and then import them into Arc. Use GPX to Features Tool from script ...


17

Or you can run the ArcToolBox tool Frequency (Analysis Tools>>Statistics>>Frequency) which will output a table with unique values and a count of how many time they appear. Or you could write python script that gets a SearchCursor on a field then build a list of all values of the form if value not in myList: myList.append(value)


17

Here is the help document covering the function in question: Select Layer by Attribute (Data Management) I think this is how you would implement it: arcpy.SelectLayerByAttribute_management(Table, "CLEAR_SELECTION") rows = arcpy.SearchCursor(Table, " \"Name\" LIKE 'Albert%' ", "", "Name;") As an aside, there are a lot of helpful examples of how to use the ...


17

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 = arcpy.mapping.MapDocument(...


17

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.


17

You could use execfile. For instance, >>> execfile(r'c:\my\script.py')


17

The Layer object has a read/write property, visible, that can be used to turn on/off layers. This is some basic code that should get you started: #A list of layer names that you want to be turned off. names = [x,y,z,etc] mxd = arcpy.mapping.MapDocument("current") df = arcpy.mapping.ListDataFrames(, mxd, "Layers")[0] layers = arcpy.mapping.ListLayers(mxd, "...


17

Many thanks to @Erica for the reply, which for some reason didn't work for me. But it did put me on the right track to finding a solution, which was to use the Minimum/Maximum Stretch, in combination with the Edit High/Low Values option: Importing this symbology into the other rasters caused the correct stretch to be applied to all images.


17

Using the Select by Attributes tool, you could enter the following SQL query to select all features with less than 5 characters in the ZIP field: CHAR_LENGTH("ZIP") < 5


Only top voted, non community-wiki answers of a minimum length are eligible