-
weird results with Align Features
I'm getting some weird results with the Align Features GP tool (arcpy.edit.AlignFeatures) in Pro 3.5.6. I have 2020 Census Blocks that use geometry from the Census Bureau and I want to align the blocks to my streets layer. We use the streets for geocoding, so I want these two to line up to know what census blocks touch a…
-
Thank You Python API Community - v2.4.4
With the release of ArcGIS API for Python 2.4.4, we want to extend a huge thank you to our community. Your feedback and active participation are what truly shape the evolution of this product. For those new to the ecosystem, our public GitHub repository is your go-to hub for samples, tutorials, and documentation. Your…
-
Spatial Join: is many-to-one possible?
I have a point layer and a streets layer that I want to do a spatial join on. Because the points can fall on street intersections, I want to join one-to-many such that I get a record for each street it touches. This works, but the output is a point layer, with one point for each street it touches. What I really want is…
-
Enable the FeatureLayer.calculate() method in the ArcGIS API for Python to accept Arcade expressions for calculating attribute values.
Current limitation The FeatureLayer.calculate() method currently supports calculating field values using SQL expressions or scalar values. However, there is no direct way to apply an Arcade expression through this method. This creates a gap for workflows that rely on Arcade for attribute calculation logic, particularly…
-
Open-source Forestry Toolkit for ArcGIS Pro – fieldwork, drone mapping, fire hotspots, and forest analysis
Hi everyone, I’d like to share a small open-source project I’ve been working on called Forestry Toolkit, an ArcGIS Pro add-in built around practical forestry and fieldwork workflows. I originally started it to simplify some of the repetitive GIS tasks I encounter in forestry work, and it gradually grew into a collection of…
-
Snap Pour Points in ArcGIS Online notebook
I am trying to recreate the steps of watershed delineation in an AGOL notebook. I am using an "Advanced" notebook so I can use arcpy tools. I have a hosted feature layer for my pour points. I also have a hosted tile layer for my flow accumulation raster. I want to run Snap Pour Points tool using these two inputs, but I get…
-
GeoSeriesAccessor snap_to_line example?
I'm trying to figure out a way to use the GeoSeriesAccessor snap_to_line function so that I can return a geometry where a point snaps to the nearest line. I have the geometry for both an example point and polyline contained within separate Spatial Enabled DataFrames (created from FeatureSets). snap =…
-
sdf.spatial.to_featureset() weakref error
using arcgis 2.4.1. Developed this script a few months ago and didn't have this problem until testing it again this week, and it is now throwing this error when trying to create a featureset from an SEDF created by the GeoAccessor. ValueError("<weakref at 0x000002874A68BA10; to 'ExtensionBlock' at 0x000002874C193DD0> is…
-
Error creating Survey123 form from multilayer hosted view feature service when target layer is not first
I’m trying to create a Survey123 form using the ArcGIS Python API(version 2.4) from a hosted feature service view from AGOL that has multiple layers. The service view layers are A, B, C. My XLSForm schema corresponds to A, and form_id = A. It works when A is the first layer in the service, but fails if A is the second or…
-
Large Point Feature Class: Fastest Way To Transfer Field Values From Overlapping Polygon
I have a large point feature class (<2Mill features) and a polygon feature class consisting of multiple polygon features. The points and polygons overlap. I'd like to write the polygon field values into their overlapping point features. Example: Point feature A lies within polygon feature B -> Write respective value from…
-
Intersections - Biggest Overlap Methods - Query
Hey there! In ArcPy you have the option to choose 'biggest overlap' when performing a spatial join. I was wondering if there is any possible way to perform the same operation with the arcgis api. You have different options to perform eg a query on a feature layer with geometry filters, same for sdf.spatial.join() method.…
-
Search Cursor not obeying selection rules
Hello, I have a script that uses a search cursor to go to a selected feature in a table called SplicePoints_test, that is selected based on it intersecting with some fibercable. After that I use the selected feature and extract the last 2 digits of the string of the selected entry in the SplicePoints_test layer. However…
-
arcgis.features.analyze_patterns.interpolate_points does not overwrite.
arcgis.features.analyze_patterns.interpolate_points appears to run successfully and charges credits but does not overwrite the layer passed to 'output_name'. arcgis.features.analyze_patterns.interpolate_points( data_item, field = 'value', interpolate_option = 9, classification_type = 'Manual', class_breaks = [50, 100, 150,…
-
Exporting Specific Layer from ArcGIS REST Service to TIFF - Export Disabled
Hi everyone, I'm trying to get a TIFF of a specific layer (ID 54, "1:12.000") from this ArcGIS REST Map Service: https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Historische_tijdreis_1901/MapServer. The export capability is disabled, and I need to extract this layer for a specific municipality. Are…
-
CalculateField Expression Not Working
I am new to ArcGIS and the ArcPY Module; recently I've run into an issue with ArcPY losing resolution to an object (a feature class) that I know exists. Error: name '<variable name>' is not defined (where <variable name> is the object/feature class to which I'm referring). The '<variable name>' can be accessed prior to the…
-
ExportToJPEG crash with error on ArcGIS Server python
Hello, I'm trying to export a JPEG with a geoprocessing task running on an Arcgis server. The ExportToJPEG line of code crashes with an error with ArcGIS Server python, but works fine with local ArcGIS Pro python. I can't figure out what's wrong. Here is the error: Job Messages: esriJobMessageTypeInformative: Submitted.…
-
Issue with ID Field when Appending GeoJSON Data to ArcGIS Feature Layer
Trying to upload a GeoJSON file to ArcGIS using the append method. One of the fields in data, the id, is supposed to be a string. However, during or after the upload process, the id values appear as large numbers in scientific notation (e.g., 1.374023E+18), instead of as regular strings. In both GeoJSON and ArcGIS the…
-
Map area for the bookmark/extent/area already exists
Hi, I am writing a python script to create few offline areas for same a single geometry with different LODs. I can create first area without any issues, I am getting error while creating offline area with same geometry with different name and different scales. Could you please suggest, How to generate offline areas for…
-
Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates
I can't quite figure out how to reconcile the difference in reported footage between the following two methods. e.g. feature1.distanceTo(feature2) -> 1,810 feet and using the point returned by .firstPoint for each of the features: def get_dist(coord1: tuple, coord2: tuple): sr = arcpy.SpatialReference(3418) p1 =…
-
`features.manage_data.overlay_layers` does not update my Service Feature Layer
Hello, I have created a jupyter notebook in my ArcGIS Online to update my temperature feature layer daily. The code reads the source map from the Living Atlas and reads the boundary from a feature layer in my account. It also opens the target feature service layer from my account. It then uses…
-
Get Error Everytime Trying to Generate Drive Times
I am trying to POC generating drive times. I've followed multiple tutorials and I get the same error everytime I get to the drive time part. For instance, I can create buffer locations for distance, but not for drive times in this…
-
WKT, SpatialReference, and DefineProjection Problem
Hello developer, Why when I use DefineProjection on DEM .tif files to manually set their spatial reference using a wkt string, "None" is added to the end of the string?…
-
Publish DLPK(Deep Learning Model package) file in arcgis living atlas
I have created the .dlpk file to detect the trees from a satellite imagery using arcgis pro , now i want to publish my dlpk file to arcgis living atlas , but i'm not able to get any reference , documents or solutions for that . Any suggestions or references will be appreciated Thank you
-
Spatially Enabled Dataframe join not producing results
I have a notebook server that has arcgis for python installed, version 1.9.1. I have a separate server and a local environment using the version of arcgis for python, version=2.1.0.4 & 2.2.0.2. For some read I cannot get the spatial join to work. I have two layers one layer is coming from a feature service and the other…
-
how to create arcgis pro tool with steps like Geostatic analysis wizard using python,