Tag Info

Hot answers tagged

8

Instead of using multiple RegExes to parse addresses, just use Esri's out of the box tool that is designed for this task, Standardize Addresses. It's available at all license levels and my experience with it has been positive.


5

The python addin button is actually simpler than I first thought. Just highlight a layer in the TOC and the button will pan to it. import arcpy, pythonaddins class ButtonClass1(object): """Implementation for pantolayer_addin.button (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): ...


4

The question asks for a rigid motion of the object on an idealization of the earth's surface. For ellipsoids the only continuous families of rigid motions possible are rotations around the earth's axis. But for a spheroidal model there is a three-dimensional family of rigid motions and they can move an object from any location to any other (for two ...


4

Another potential workaround (at least in 10.2) that doesn't make you mess with scale would be to right click the layer -> selection -> Select All, then right click the layer -> selection -> Pan to Selected Features, and then clear the selection.


3

The problem is that your data is still retaining the decimal degree numbers, although not units. Subsequent geometry calculations still use the same raw numbers that were associated with decimal degrees, but erroneously assume different units (meters). For example, if I say I'm 65 feet tall, I haven't actually grown, I'm just using different units than ...


3

No there isn't. The way a shapefile is made doesn't allow for that. A DBF is only the attribute/table information for the shapefile's features. The SHP file is the one that makes up the actual geometry/shapes of the shapefile while the SHX file is the one that contains the index between the two that helps associate the table information (DBF) with the ...


3

I think the largest problem was with the structure of the update cursor. Also, you have two ListFeatureClasses (you only need one to create the list and start the for loop). Try this: bufferCalc = arcpy.ListFeatureClasses("*.shp") for calc in bufferCalc: # pull out the shapefile name shpName = os.path.splitext(calc)[0] # define update cursor ...


2

Try the following workflow: Reclassify your rasters so that Value = 1. Calculate Cell Statistics using a "SUM" statistic. Any value in the resulting raster > 1 is an overlap area. Additionally, the value of the resulting raster indicates how many overlapping rasters there are.


2

@ChrisW said: As far as I know and can find evidence for, you cannot set a classification range below the minimum value in the data. This got me thinking, and I actually found a way to set the classification range below the minimum value. My original issue was built around the fact that the lowest classification range was required to contain the ...


2

See this prior answer. Each version of ArcGIS uses a specific version and architecture of Python and is hard-linked against it. Forcing an ArcObjects application to use an incompatible Python version will likely lead to a crash.


2

You can create a symbology of unique values for a layer without actually having a value occur in the dataset. you could use 'group values' (ctrl+select values and right click) to take all the possible values that indicate category 'A' in any given file. This way, you could have a single symbology that covers all possibilities from each dataset without ...


1

Your rename won't work because you are replacing the extension with nothing. Use os.path.splitext() to remove the extension and then you can add it back. polyFCs = arcpy.ListFeatureClasses("*_Value.shp", "POLYGON") field = "Area" #Don't need to keep redefining this each loop. field = "SHAPE@AREA" #Or, use this to grab the area of the feature. for polyf ...


1

Try this for your cursor (as I stated your cursor field parameter needs to be a string or a list and using the da.cursor use row[0] for getting the value): with arcpy.da.SearchCursor(polyf, field) as cursor: for row in cursor: if row[0] > X: # your rename here


1

Sounds like you are using the wrong tool. To create a separate dataset of points that are the centroids of a polygon use the Feature To Point tool. It requires an Advanced license.


1

The Field Calculator would crash on me whenever I would run the Field Calculator to update about 2,300 records on a point dataset that was generated as a checkout file geodatabase. This turned out to be a known ESRI bug where ArcMap would crash if the Field Calculator was used on more than 100 records at a time in a checkout file GDB, and was addressed in ...


1

While the classification uses similar ranges, the data don't share a range. I think the solution here is to solve it in the legend and color assignments, and not the actual classification. Start with your lower left result, and convert that legend to a graphic. Edit the text to get the ranges you want. I notice all your other images have a 10 unit range, ...


1

You can achieve this in field calculator using python. This may not be the most elegant but it's a start, assuming the simpliest case (ie. your addresses all look the same). I would first create the additional fields needed. Assuming your column with the full address is called "Address". For HOUSENO in the field calculator write: ##Return just numbers ...


1

Add a new field (text) In field calculator, round the original Percent value to no decimals, and append a percent sign: format(round(!Percent!)) + "%" or the shorter, more elegant "{}%".format(round(!Percent!)) (Thanks to Paul for the improved syntax!)


1

If you've already done the join, yes. If not, then you should start with the Join Field tool. This allows you to directly write attributes from one file to another based on a join (a one-step process rather than join/export two-step).


1

As others have suggested, reproject to something with a linear measurement. But be sure to use BILINEAR interpolation (not the default of Nearest Neighbor). This should avoid the grid-like artifacts that stem from resampling patterns (you may notice that if you do multiple reprojections and change the cell size among them, you can get the cross-hatching to ...



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