|
POST
|
Either run the split tool manually in ArcGIS Pro or output the result to a file geodatabase so you can see what it looks like. Compare the fields yourself and see if anything changes and make the field mappings accordingly. Alternatively, use the "NO_TEST" schema_type option for Append: Fields from the input dataset do not need to match the fields of the target dataset. Any fields from the input datasets that do not match the fields of the target dataset will not be mapped to the target dataset unless the mapping is explicitly set in the Field Map parameter.
... View more
05-19-2022
07:35 AM
|
0
|
0
|
2515
|
|
POST
|
Fields in a calculate field Python expression need to be enclosed in exclamation marks. The error is referring to "name", which is the value you entered for the Cyrillic field tool parameter. You did it correctly for expression2, but the expression argument for the first calculate field should be '!'+Cyrillic_Field+'!'
... View more
05-17-2022
07:21 AM
|
1
|
0
|
1041
|
|
POST
|
My test app always zooms back to the feature clicked in the search results without performing another search, no matter how the map changes. A quick search for a demo WAB app also shows it working correctly.
... View more
05-16-2022
04:02 PM
|
0
|
0
|
5371
|
|
POST
|
It's possible there's a spatial reference issue. Try projecting your data to Web Mercator (WKID 3857) before sharing it with ArcGIS Online or use a custom basemap in the coordinate system of your choice. I built a test app using this Public Land Survey System data from BLM and, once configured, the search widget was able to find and zoom to features.
... View more
05-16-2022
02:07 PM
|
0
|
2
|
5406
|
|
POST
|
Are you looking to use Web AppBuilder to create a web app for this project? The Search widget can be configured to search only specific fields in your attribute table. It's fairly customizable but the default behavior is to zoom to the selected record. If the user will be searching by S T R, then I assume the app will be zooming to features in a PLSS feature class of some kind?
... View more
05-16-2022
01:19 PM
|
0
|
4
|
5414
|
|
POST
|
If you add the split features to the original feature class, then you'll have duplicate features: the original lines and the split lines. If that what you want, just use Append.
... View more
05-16-2022
10:26 AM
|
1
|
2
|
2532
|
|
POST
|
If you are certain that replacing the original feature class is safe, try adding arcpy.env.overwriteOutput = True before you call the gp tool. env—ArcGIS Pro | Documentation
... View more
05-16-2022
09:16 AM
|
0
|
4
|
2541
|
|
POST
|
Using the os module: import os
root_dir = r"C:\yourFolderNameHere"
subdir = [
i for i in os.listdir(root_dir)
if os.path.isdir(os.path.join(root_dir, i))
]
if subdir:
# handle having subdirectories This will create a Python list with the name of all folders that exist within your root_directory folder. If there are no folders, the result will be an empty list, which is falsy when evaluated with an if statement.
... View more
05-16-2022
08:49 AM
|
1
|
0
|
1414
|
|
POST
|
@MitchellMoore wrote: ...how can write a python script without using existing geoprocessing tools? ... Sorry, I'm a little confused by this. Could you elaborate what you mean about not using existing geoprocessing tools? Also, as @MichaelVolz mentioned, you need a field in your CSV data that can be located (coordinates) or geocoded (address, placename, intersection, etc).
... View more
05-16-2022
08:37 AM
|
0
|
0
|
858
|
|
POST
|
You should review the documentation for cursors and use it in a with statement like this: with arcpy.da.SearchCursor(POUR_POINTS, ["NAME_FIELD"]) as cursor:
for point in cursor:
name = str(point[0])
print("Working on pour point {}".format(name))
# Do stuff with data in cursor... Also, as @Luke_Pinner mentioned, you need more of your code that shows where select_pour_point is defined. It must be defined before it is used.
... View more
05-10-2022
07:26 AM
|
0
|
0
|
950
|
|
POST
|
Try adding allowed origin domain names to your server. Restrict cross-domain requests to ArcGIS Server—ArcGIS Server | Documentation for ArcGIS Enterprise additionally: CORS with the API | Overview | ArcGIS API for JavaScript 4.23 | ArcGIS Developer
... View more
05-09-2022
08:21 AM
|
1
|
1
|
3850
|
|
POST
|
I think you can put whatever parameters you want in the url. You can parse it with urlUtils or the built-in URLSearchParams(). I would do something like this: // window.location url example "http://www.myworld.com?state_name=Ohio&city_name=Akron&visible_layer=TheLayerNameHere"
const urlParams = new URLSearchParams(window.location.search);
let visibleLayer = urlParams.get("visible_layer");
// Set layer visibility...
... View more
05-05-2022
08:54 AM
|
2
|
2
|
1718
|
|
POST
|
How do you want it to resolve ties if the point is snapped to the intersection of two different lines?
... View more
05-03-2022
03:42 PM
|
1
|
0
|
1654
|
|
POST
|
Interesting question. If you were making a Python Toolbox, I think you could use a GPFeatureRecordSetLayer parameter. In the getParameterInfo function of the tool, you would create a feature class that outputs to a memory workspace, then make a feature layer from the feature class, and set the value of the GPFeatureRecordSetLayer parameter to the feature layer. This creates an input on the tool to draw a feature on the map. I've seen this done in ArcMap, but not in ArcGIS Pro so the process might be slightly different.
... View more
05-03-2022
02:43 PM
|
1
|
0
|
12699
|
|
POST
|
Does this do it? import arcpy
from collections import defaultdict
c = defaultdict(list)
with arcpy.da.SearchCursor("samplepoints", ["OID@", "ORIG_FID", "curvature"]) as cursor:
for row in cursor:
c[row[1]].append(row)
... View more
05-03-2022
12:47 PM
|
1
|
1
|
1575
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |