-
Map not displaying graphic (React)
Hiya, I'm building a map app in React/TypeScript and I'm struggling with displaying a point on the map. I had several setbacks and errors but the code is clear of errors (for now…). However, I get an error in the console: [@arcgis/core/views/support/LayerViewManager] Failed to create layerview for layer title:'no title',…
-
Survey123 Preventing Duplicate Entries
I have been working on a data collection survey where location is grabbed at the beginning of the survey. To ensure that multiple entries aren't entered I tried to find a good method to constrain the geopoint entry. I found a few threads on here about pulldata("@layer",… I tried many variations of it but none of them…
-
Consuming ArcGISPro -py3 scripts for Spatial Projections
Hello All. I have a web application hosted on a windows server with ArcGIS windows 12 enterprise( server) that conumes the arcpy scripts for SpatialReference and project to WGSSpatialReference. Will every user on the web application initiating projection of a set of coordinates( happens in the background without generating…
-
Issue converting H3 cell boundary WKT to geometry with GeoAccessor.set_geometry()
H3 polygons work at resolution 8 but become empty at resolution 9+ Environment * ArcGIS Pro 3.6 * ArcGIS API for Python 2.4.2 * DuckDB 1.5.4 * DuckDB Spatial Extension * DuckDB H3 Extension * Python Notebook in ArcGIS Pro Description I found what appears to be a bug in GeoAccessor.set_geometry() when converting H3 cell…
-
Detecting split operation
Providing a product tailored to streamline grid editing and planning (Volue Grid Planner) we have a need for identifying split operation when a user splits a cable or an overhead line. Grid Planner is provided SaaS and uses the ArcGIS Javascript SDK. The justification behind this need is as follows: * Following the…
-
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 =…
-
Issue with Multi-Layer View Creation in ArcGIS Online Using Python API: Only Point Layer is visible
I’m facing an issue with creating a view layer from a multi-layer hosted feature service in ArcGIS Online using ArcGIS API for Python (v2.4). The hosted service contains points, lines, and polygons. When I create a view layer using Python by passing the required layer objects to create_view(), only the point layer appears…
-
"Have their center in" equivalent in ArcGIS API for Python
Is there an equivalent method in the Geometry class in the ArcGIS API for Python to the "Have their center in" operation that is used selecting by location in ArcGIS Pro? * Geometry.EWKT * Geometry.JSON * Geometry.WKB * Geometry.WKT * Geometry.angle_distance_to() * Geometry.area * Geometry.as_arcpy * Geometry.as_shapely *…
-
Request for the events to capture the split and merge edit operations
* User is trying to edit the geometry by using split and merge methods and trying to capture these operations to changes their attributes. * As there are no events available to capture the split and merge operations, the user is unable to update the attributes of the edited geometry. * In the below-mentioned URL, the…
-
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.…
-
arcgis.geometry.union returns result without reference
Hi, I need to union some Polygons into one using geometry.union, however, the result I got doesn't have a spatialReference, and I can't figure out why: The Polygons are listed in a python list And I tried both: wkid = 32632 geo_union_2 = arcgis.geometry.union(shape_list, spatial_ref=wkid) and wkid = 32632 ref =…
-
Offline Areas Creating using Python
was trying to re create all offline areas for a webmap after compress. We are using World _imagery (Export ) tile layer, ArcGIS python API was modified recently to add another argument in offline_areas.create tile_services = if "HIGH" in title_upper: # Street level levels = ",".join(str(i) for i in range(10, 17))…
-
Converting Pandas Dataframe (with polygon geometry) to Spatially Enabled Dataframe
I have recently run the Time Series Cross Correlation geoprocessing tool to get outputs including a polygon feature class and a correlation table listing correlation coefficients for each polygon for each lag value defined by the correlation analysis. I am hoping to take this correlation table and convert it to a polygon…
-
Error while generating offline areas
I am trying to generate offline areas through ArcGIS Python API, getting an below error TypeError: 'VectorTileLayer' object is not subscriptable
-
Replacing existing feature geometry with Python API
Hi, I have a hosted online feature service containing a polygon layer with just a circle. Now I have a more complicated geometry (more circles) and want to replace the original geometry with the new geometry without touching any of the attributes. How do I achieve that with python api?
-
Python File Troubleshooting
Good afternoon yall, firstly, I hope your day is going well. I am near the final stage of automation from API to ArcGIS Geodatabase Upload, And I have found a new obstacle. Upon trying to validate where my python environment was installed within ArcGIS, I began searching for it through the settings, and options of the…
-
Elastic Editing of Utility Network features
It looks like that editing a feature through SDK (for example a custom button) like moving a point in the correct position is not also moving the attached lines, there is now an enhancement request for this (ENH-000172547) but ESRI support suggested to also open this idea to gain traction. In the old geometric network…
-
GeometryEditor for Pro SDK
We want to implement a custom MapTool in ArcGIS Pro that selects a Feature on the map, then (OnSketchComplete) pass the Geoemtry of the feature to a "class/control" called FeatureEditor: Editor.Start(geometry). The GeometryEditor would then show an overlay graphic that has the selected geometry, and can be used to move and…
-
Flawed Logic: Creating lines from coordinates in geographic coordinate systems
Note: This is not actually a question, I am trying to somehow report this issue to Esri but the options available for bug reports don't feel like they're well-suited to this case When creating a 2-vertex Polyline from an Array of PointGeometry objects (via InsertCursor), the line is forcibly created with 0-length (null)…
-
ArcGIS Online Notebook how to create buffers and append against existing layer
Hi, I have a Hosted Feature Layer in ArcGIS Online, with a point layer and a polygon layer. I am looking to run an ArcGIS Notebook as a task that will: * Query the point layer where processed=no * For each point, buffer by a point attribute ("distance_field") * Take the buffer and append to the polygon layer, passing…
-
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…
-
Issues with Geodesic Buffer function.
Python Version: 3.11.8 Using arcgis python I just want to create 5mi circle around point (in the US) using Point.buffer(), but because I covert from 4326 to 3857 and back to 4326 the distortion results in a smaller and squashed circle. So I decided to look into arcgis geodesic buffers but the documentation seems wrong and…
-
Add / Insert a Feature Set to an existing Feature Service (aka Hosted Feature Layer)
The following code adds a spatially enabled dataframe to a feature service: feature_service_item = sedf.spatial.insert_layer(feature_service = feature_service_item,service_name=new_sublayer_name)<div><div><span>However, there happens some type casting under the hood, which I do not want at the moment (e.g. Int32 will be…
-
Re create offline Map Areas with existing properties
I would like to re create offline maps after doing compression process using ArcGIS Python API. Currently, I am thinking to delete existing offline area , pass all deleted item related properties to the new offline area. We have re- Create option in Enterprise, with that, it automatically creates offline areas without…
-
Need query_point_and_distance Clarification
I am looking for help in understanding what values and the order they are returned when using the query_point_and_distance function on a Polyline. From the confusing documentation it says: Finds the Point on the Polyline nearest to the in_point and the distance between those points. query_point_and_distance retrieves…