Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3

You can use selection and Python. This may be faster. Make sure your edited feature is selected. Then use the below code in the Python window. if arcpy.Describe ("layer").FIDSet: with arcpy.da.UpdateCursor ("layer", "update_field") as curs: for row in curs: row = ("U",) curs.updateRow (row) else: print "no selection" ...


3

If the field holding your dates are of date data type, then: Add a text field Use Field Calculator to write year and month to the field, see for example: How To: Extract a portion of the Date field Split By Attributes using the field as Split_Fields (If the field is already text and year-month then all you need is Split By Attributes) With Split By ...


2

A quick solution for converting to string is to use str() but then you loose the last zeros. str(!Folio!) for the best control on the format of your text field, I suggest that you use the "format" from Python. The basic command (just below) is just a longer way to write str() "{}".format(!Folio!) But then you cn do a lot more. In your case, if you want ...


2

You can create a new feature class and use a data access insert cursor, projecting each Geometry with projectAs. Sample code; update with correct values for spatial reference, geometry type, etc.: mergeFcs = ["fc1", "fc2"] #merge feature classes outFc = "out_feature_class" #--- import arcpy outPath, outName = os.path.split (outFc) arcpy....


2

After more extensive search, especially, ArcGIS bug reports, I found that ArcGIS has a bug when one uses the raster projection from geographic coordinate to projection coordinate and when the cell is blank. https://support.esri.com/en/technical-article/000007126 To solve this problem, they suggest to use export instead of raster projection. I think that ...


2

The Set Null tool takes the following parameters: SetNull (in_conditional_raster, in_false_raster_or_constant, {where_clause}) which are described in the tool's documentation as follows: in_conditional_raster: Input raster representing the true or false result of the desired condition. It can be of integer or floating point type. ...


1

One approach is to resample your second raster (elevation correction) to fit the size of your DEM. Of course, as you are going from a bigger pixel size to a smaller one, you will have repeated values for each original pixel (see picture below). Image taken from Chris Garrard's Geoprocessing with Python On ArcGIS, you can use the Resample tool and use your ...


1

Although if-else statements are not as user-friendly as they should be in Modelbuilder, Esri did develop the 'If Field Value Is' tool to do this kind of logical selection. Esri Document on 'If Value is' tool


1

You need to re-run Point Density and in the tool environment setting, set the output extent and snap raster to "Raster A":


1

Not sure if it's still actual but: Have you ever had you locator working with the original "50000 lines of magic Xml" file? If Yes and you just need to clean up the file to 400-600 lines, I'd suggest to delete them by small pieces and rebuild the locator after each update. In order to catch the part that you mistakenly deleted.


1

The answers proposed are really time consuming. If you want to transform the symbology of several rasters, I strongly encourage you to try the following toolbox. It works like a charm! https://github.com/USGS-Astrogeology/ArcGIS_Plugins/tree/master/CopyPasteRasterSymbology_toolbox


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