27 votes
Accepted

Splitting multipart polygon into singlepart polygons using ArcMap

Under "Advanced Editing" there is a Button for "Explode Multi-Part features". Worked just fine!
user avatar
  • 469
24 votes
Accepted

What does an asterisk (*) mean when shown beside a field name in the attribute table?

It means that the field is indexed. You can change the character used to indicate whether a field is indexed under the Table Options > Appearance menu:
user avatar
  • 12k
19 votes

Splitting multipart polygon into singlepart polygons using ArcMap

You can use the Multipart To Singlepart (Data Management) tool which: Creates a feature class containing singlepart features generated by separating multipart input features.
user avatar
  • 52.8k
17 votes

Label legend interval with number of elements in ArcMap?

In layout view, open the legend properties and browse to the Items tab (see above picture) where you can specify which items show the count. If you were asking specifically about showing the count in ...
user avatar
  • 3,043
17 votes
Accepted

Using dynamic text to display layer credits

As mentioned in my comment above, there isn't a way to do this using dynamic text. However, you could write a script to do this and attach it to a python addin button or to run when you save the MXD ...
user avatar
  • 21.3k
17 votes
Accepted

arcpy.SelectLayerByAttribute not working with an integer saved in a variable

Error 000358means "The SQL expression is invalid", as described in Help - ArcGIS Desktop Your query, "Id=k", means that "get Idand k (field) value of a feature, compare both, if both are equal, ...
user avatar
16 votes
Accepted

Disabled zoom and pan in ArcGIS desktop

They probably set it to a fixed extent. If you right click the data frame, go to properties, and under the "Data Frame" tab you can set the extent to "Automatic" which should allow you to move things ...
user avatar
  • 1,571
15 votes

Using ArcPy to determine ArcMap document version?

The function below is based on Ryan's idea, but is a little more direct. ArcGIS map documents are actually OLE documents, which can be parsed with the oletools module (available on pypi: https://pypi....
user avatar
15 votes

Python only using one core at a time to work?

You can use subprocesses to take advantage of multiple cores within a Python script, so that several tasks can run in parallel. But you can't split a single task over several cores. See a detailed ...
user avatar
  • 9,567
14 votes

Extracting coordinates of polygon vertices in ArcMap?

This works with a standard ArcGIS license: desc = arcpy.Describe(fcl) shapefieldname = desc.ShapeFieldName gebieden = arcpy.UpdateCursor(fcl) for gebied in gebieden: polygoon = gebied.getValue(...
user avatar
  • 141
12 votes
Accepted

Methodology for creating accurate drainage networks (and catchments) from high resolution LiDAR DEM?

Have you consider to use GRASS GIS analysis? I have expirience that GRASS algorithms have very good accurance on hydrology analysis. For example, I want to generate something like drainage network on ...
user avatar
  • 1,753
12 votes

Programmatically edit/update metadata in ArcGIS?

We had a big need for a similar capability and ended up building a general, free, open source Python library for the purpose. You can find it at https://github.com/ucd-cws/arcpy_metadata or by running ...
user avatar
  • 1,656
12 votes
Accepted

How I can reverse numbers in a string without reversing any text?

Something like this should work: def reverse(s): items = s.split() digs = ''.join(i for i in s if i.isdigit()) dr = digs[::-1] return ' '.join(map(None, items)).replace(digs, dr) >...
user avatar
  • 8,374
11 votes

Calculating average width of polygon?

I've developed a formula for the average width of a polygon and put it into a Python/ArcPy function. My formula is derived from (but substantially extends) the most straightforward notion of average ...
user avatar
  • 4,068
11 votes

Adding XY Coordinates from GoogleMaps to ArcMap 10

The WGS_1984_Web_Mercator_Auxiliary_Sphere coordinate system is a PROJECTED coordinate system, its units are METERS. Your coordinates are read in meters so they fall near the origin of the coordinate ...
user avatar
  • 9,567
11 votes

Cropping basemap to specific area using ArcGIS Desktop?

The accepted method did not work for me because my basemap layer wouldn't show up in the Input Features dropdown. I solved this by doing the following: At the View menu, choose Data Frame Options. ...
user avatar
  • 273
10 votes

Where is Angle Measure Tool in ArcMap?

In ArcGIS 10.1 and later, there is a tool called COGO - located in the Editor Toolbar/More Editing Tools/COGO. On the tool bar there is a button called Reporting COGO descriptions. This reporting tool ...
user avatar
  • 2,061
10 votes

How to get all field names from table using arcpy.ListFields?

def getFieldNames(shp): fieldnames = [f.name for f in arcpy.ListFields(shp)] return fieldnames fieldnames = getFieldNames("country.shp") returns a list of all fields of country....
user avatar
10 votes
Accepted

Calculating volume with Cut Fill tool in ArcGIS Desktop?

Provided your Z units are the same as your X and Y units: You have it almost right. Adding the negative values would give you the total volume of the increase. HOWEVER, this would only be your answer ...
user avatar
10 votes

Is there a way to calculate closest distances to a point without using Near Analysis?

Do a spatial join! First, set up your data frame in a projected coordinate system of your choice (whatever units you want your distances to show up in). So, say you're working in State Plane Feet, ...
user avatar
10 votes

What does an asterisk (*) mean when shown beside a field name in the attribute table?

The asterisk means that the field has an index. A Shapefile does not have any indexed fields by default, you need to add them. A GeoDatabase Featureclass always has a spatial index on the Shape field ...
user avatar
  • 39k
9 votes

Exporting 3GB ArcGIS Raster to KML without losing resolution?

Save your money, buy nothing. Associate this script with a toolbox tool. Set it up with 4 parameters (Input Raster, Output Folder, Draw Order and Output Prefix). Run. Tried the SuperOverlay thing from ...
user avatar
  • 720
9 votes
Accepted

Search if field exists in feature class

I would prefer a list comprehension instead of string operations (like accepted answer). In my opinion, this is more readable and pythonic. Furthermore, the list comprehension approach could be ...
user avatar
  • 1,250
9 votes

Tree symbol style set?

There is a nice ESRI blog post on building your own vector tree symbols. I personally use these for this same purposes and they look great. There are also some instructions on randomizing tree sizes ...
user avatar
9 votes
Accepted

When to use Clip Output to Graphics Extent in ArcMap?

It's used to eliminate any whitespace you may have around your layout in the output file. For example, I have some MXDs set up to print on a specific paper size with specific margins, so that the maps ...
user avatar
  • 12k
9 votes
Accepted

Unsplit/Dissolve multiple touching lines in Stream Network using ArcGIS Desktop?

I've devised a way of doing it with little bits from all of the other answers. The scripts that @GeoJohn and @FelixIP have created may well work (if you have access to ArcGIS 10.1 and the database ...
user avatar
9 votes

Adding point to existing attribute record, rather than editing attributes of existing point?

When you have a record but no geometry it's known as a null geometry. The quick fix while in an Edit Session is to select the record/row in question and use the Replace Geometry tool on the Advanced ...
user avatar
  • 15.5k
9 votes

Building a grid of equal square polygons in ArcGIS 10?

You can do this with both the Create Fishnet tool or the Grid Index Features tool. Create Fishnet is a bit more configurable, and can output either polygon or polyline. Both will allow you to set a ...
user avatar
  • 29.2k
8 votes
Accepted

Changing feature class and field aliases in bulk using ArcPy?

As of version 10.1 AlterAliasName() can be used to re-alias tables: table = r"C:\path\to\connection.sde\OWNER.TABLE" arcpy.AlterAliasName(table, "table_alias") As of version 10.3 Alter Field can be ...
user avatar
  • 1,452
8 votes

To Use or Not to Use Relationship Classes?

Think about the bigger picture - GIS data is just a means to an end for most people, especially when it comes to government entities. My experience has been that relationship classes are primarily ...
user avatar
  • 319

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