4

For using ArcGIS API for Python, credentials have to be provided gis = GIS("http://www.arcgis.com", "username", "password"). from arcgis.gis import GIS gis = GIS("http://www.arcgis.com", "***", "***")


4

One of your GEOID columns has a leading zero, so that's why they are not joining, you are joining on text fields so the text don't match up. You have two options: convert the GEOID fields to numeric format or add a leading zero to the GEOID field that is missing it. You probably want to do the latter as leading zero's usually hold some importance in census ...


3

Create a Dictionary using da.SearchCursor, then update: import arcpy fc = r"path/dat_1" tbl = r"path/dat_2" common_id_field = "ogr_id" valuefield = "field_1" d = {ogrid:value for ogrid,value in arcpy.da.SearchCursor(tbl, [common_id_field, valuefield])} with arcpy.da.UpdateCursor(fc, [common_id_field, valuefield]) as cursor: for row in cursor: ...


3

The spectral and spatial detail values range from 0 to 20. Since they are using the default values of 15, you wouldn't be able to increase your spatial and spectral detail by much more. However, the small increases in values (even by 1) have shown difference in my 0.5 cm drone imagery. By increasing the spatial setting, the proximity of your objects to one ...


3

Try using the arcpy.sa.ExtractValuesToPoints() function which: Extracts the cell values of a raster based on a set of point features and records the values in the attribute table of an output feature class.


3

I think you will be able to do this by having your Map open in ArcGIS Pro, and using Windows Explorer to search for files using *epso.shp. If you see just the shapefiles that you want in your Search Results, then use Ctrl-A to select them all, and then drag and drop them all together into your Map.


2

You are using a coding method called list comprehension which is something that the language Python understands. To the best of my knowledge this technique does not exist in Arcade so you need to approach the problem in a different manner. Below is some code I worked up and it returns the first non-zero value from a sorted array. f1 to f4 would be your ...


2

The best option is to leave a computer on physically on the network you're working on, and then Remote Desktop into the computer itself. That way the data isn't actually moving over the internet, which even under more ideal conditions I've found terribly slow. Rather, just the image of what is on the screen is moving over the internet, which is far less ...


2

Make sure you get correct syntax for Calculate Field. It is best to include parameter names (for example in_table='blablabla') instead of just relying on order/index of parameters: arcpy.CalculateField_management (in_table="sometable", field="somefield", expression="someexpression",...) For example you are providing outputFilePath + '/' + name[:-4] as ...


2

Try: def calc(PA, defor, GPS): #The input fields here, not the output field. The field order need to be the same as when you call the function. if PA == 0 and defor == 0: return GPS else: return ((PA + defor) * GPS) Call with coop_score= calc(!PA_score!,!def_score!,!GPS_score!) #You need the actual fieldnames here enclosed in !!


2

Here's what I do for Visual Studio Code and it works out pretty well for me. I use this code in a .cmd file to create a conda environment for my project, based off of the arcgispro-py3 environment. This will mirror that environment, so arcpy will work (change paths and venv names accordingly - I use a custom place to store my venvs so I really know where ...


2

Your imagery is 16bit. 16bit data can contain a lot more information than 8bit. The signed range of integer values that can be stored in 16 bits is −32,768 to 32,767 and the unsigned range is 0 to 65,535, while 8bit is 0-255 (unsigned). 8bit RGB is really only the end product, rendered for visualisation and pretty useless for analytical purposes. If you ...


2

@Vince's comment is pretty close, but the GEOID field is actually a string, so you need to explicitly include single quotes around each value in the list in the sql query expression = '"GEOID" in ({:s})'.format(','.join(["'" + str(geoid) +"'" for geoid in interest_list]))


1

Sounds like you want to use the Extract values to points tool? This would transfer a pixel value from your classified raster to the point dataset.


1

Per the Label Expression help, the < (less than) character is being evaluated as part of the expression. Thus your labels get confused. You can do an inline replace on the the less than: [Well_ID] + '\n' + "<CLR red ='255'><FNT size ='7'>" + [Benzen_1Q_2019].replace("<", "&lt;") + "</FNT></CLR>" There are other approaches ...


1

So, turns out I just needed to switch the field type from float to double. UTM coordinates are too long to be stored using float (when I looked more closely, my northings were being rounded off to 10m). Thank you @FSimardGIS - you were on the right track.


1

Reference Scale can do this. Although it would have to be a very different scale to your current map scale to have that kind of effect. See: Units and Symbol Size (Scroll down to the 'Reference Scale' section).


1

This can be done using networkx module providing 3d distance between end points of the same group lines is smaller than distance to other group points. This is workflow: arcpy.FeatureVerticesToPoints_management("sparts_3d", "C:/SCRATCH/ends_3d.shp","BOTH_ENDS") arcpy.Near3D_3d("ends_3d", "ends_3d") arcpy.AddField_management("ends_3d", "TO_LINE", "LONG") ...


1

Your Oiling Zone layer looks like it cannot find its data source because your picture has a red exclamation mark next to it. If a data source cannot be found for a layer then it will not be possible for ArcPy to find any fields within it.


1

I believe you need to forward (re-use) the parameter from the Create LAS Dataset step again in the Make Dataset Layer step. R-click >> Create Variable >> From parameter >> Surface Constraints.


1

If you want to clip/crop the the map to a layer this is a property of the Map DataFrame. Right click on your Data Frame in TOC and select properties Select Clip Layers Set drop down to Clip to a custom extent and complete the rest of the dialog. You can use vector or raster layers to clip.As always more information is found in the Help File.


1

This error implies attachment is None (NULL) for a least one record. This in turn implies that attachment = item[1] is assigning None (NoneType). Which implies that the 'DATA' field has a NULL value (for at least one record). Is it possible that no photo was included for one (or more) of the surveys? If so, your script needs to cater for this possibility....


1

I also asked this question on Esri’s GeoNet forum and wanted to share the solution that xander_bakker came up with: var minv = 99999; var arr = [$feature.FromAddr_L, $feature.ToAddr_L, $feature.FromAddr_R, $feature.ToAddr_R]; for (var i in arr) { var v = arr[i]; if (v!=0 && !IsEmpty(v)) { if (v < minv) { minv = ...


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