-
Anhänge in AGOL Notebooks von einem Feature-Layer in einen anderen kopieren
Hallo! Ich habe zwei Layer – Trees und RemovedTrees – in einem gehosteten Feature-Layer und versuche, in AGOL Notebooks (Python 3 Standard – 14.0) ein Skript zu erstellen, das den Layer Trees nach allen Bäumen abfragt, die als entfernt markiert sind, und sie in den Layer RemovedTrees kopiert. Das funktioniert bereits, bis…
-
Mit der ArcGIS API for Python das Formular eines Webkarten-Layers auf Grundlage des Pop-ups konfigurieren?
Für alle Layer in meiner Webkarte sind optimale Pop-ups konfiguriert, da dies automatisch mit arcpy und CIM geschieht, bevor die Layer mithilfe desselben arcpy-Skripts, das die Pop-ups konfiguriert, automatisch aus ArcGIS Pro in AGOL veröffentlicht werden. Im Field Maps Designer von ArcGIS Online kann ich interaktiv…
-
Python-API-Neuling braucht Hilfe bei der Syntax!
Ich kenne mich mit der Python-API noch nicht besonders gut aus und brauche Hilfe beim Ändern eines Notebooks. Der Code steht unten. Zeile 42 wirkt sich nicht auf den Zieldatensatz aus, und ich kann nicht herausfinden, warum. Hoffentlich habe ich genug vom Notebook eingefügt, damit jemand meinen Fehler erkennen kann. Vor…
-
Datenexport für Fehler und Verbesserungen
Gibt es eine Möglichkeit, Daten von der Seite „Fehler und Verbesserungen“ per API oder automatisiert zu exportieren?
-
Features mit API-Schlüsselauthentifizierung bearbeiten
Ich versuche, ein Python-Skript einzurichten, das sich mit einem API-Schlüssel bei AGOL anmeldet und einen Feature-Layer aktualisiert (löschen, hinzufügen). Ich kann auf den Feature-Layer zugreifen, aber wenn ich versuche, ihn zu kürzen, erhalte ich einen 403-Fehler: Ausnahme: Der Benutzer hat keine Berechtigung, auf…
-
Attributwerte für einen gehosteten Feature-Layer mit ArcPy oder der ArcGIS API for Python aktualisieren?
Hallo, Ich arbeite in einem Python-Notebook in ArcGIS Pro und möchte die Attributwerte für eine Teilmenge meines Feature-Layers aktualisieren. Dafür ziehe ich zwei Ansätze in Betracht. Ich habe die Features, deren Attributwerte ich aktualisieren möchte, zunächst mit SelectLayerByAttribute und anschließend mit…
-
Publish reference feature service to enterprise
Hi All, I'm trying to replicate the process normally done in Pro, using Publish Web Layer referencing registered data but instead using Python. I can create a new hosted feature service from data stored in out SDE database but I don't want to host the data I want to reference data in our SDE database, as running the…
-
Layer.calculate occasionally hangs
I have a python script that runs every hour or so as a windows scheduled task and does some updates to an ArcGIS Online hosted feature layer using the layer.calculate function. Every so often (once every couple of days) it hangs. The layer it hangs on only has 1600 records and the query reduces that to 26 records so it…
-
spatial.join gibt stillschweigend 0 Zeilen zurück, wenn ein Punkt 'NaN'-Koordinaten hat (arcpy engine)
Fehler beschreiben Ein Punkt mit 'NaN'-Koordinaten führt dazu, dass spatial.join 0 Zeilen ohne Fehler zurückgibt, wenn arcpy die Geometrie-Engine ist. full_extent gibt ebenfalls nan zurück. Mit shapely als Engine löst dieselbe Datenmenge einen Fehler aus. ESRI REST Service-Abfragen können 'NaN' in Geometrien zurückgeben.…
-
Danke an die Python API Community - v2.4.4
Mit der Veröffentlichung von ArcGIS API for Python 2.4.4, möchten wir unserer Community ein großes Dankeschön aussprechen. Euer Feedback und eure aktive Teilnahme sind es, die die Weiterentwicklung dieses Produkts wirklich prägen. Für alle, die neu im Ökosystem sind, ist unser öffentliches GitHub-Repository eure…
-
Löschen von Features aus dem Feature-Service nicht möglich
Hallo zusammen, Ich versuche, ein Notebook zu erstellen, das mir alle gelöschten Features aus einem gehosteten Feature-Layer anzeigt und sie in einen spatial data frame (SDF) überträgt, um sie zu überprüfen. Die Idee ist, dass wir später bei Bedarf aus diesem SDF Daten abrufen können. Ich habe dasselbe Skript in unserer…
-
Punkte in Polygonen mit der ArcGIS API for Python zählen
https://youtu.be/Wtrsev5v30E Bei räumlichen Analysen geht es oft darum, eine täuschend einfache Frage zu beantworten: Wie viele Features liegen in jedem Gebiet? Wie viele Grundstücke gibt es in jedem Bezirk? Wie viele Bäume stehen in jedem Park? Wie viele Vorfälle gab es innerhalb jeder Verwaltungsgrenze? Wie viele…
-
Aktivieren Sie die Methode FeatureLayer.calculate() in der ArcGIS API for Python, um Arcade-Ausdrücke zur Berechnung von Attributwerten zu akzeptieren.
Aktuelle Einschränkung Die FeatureLayer.calculate()-Methode unterstützt derzeit die Berechnung von Feldwerten mit SQL-Ausdrücken oder Skalarwerten. Es gibt jedoch keine direkte Möglichkeit, einen Arcade-Ausdruck über diese Methode anzuwenden. Dies führt zu einer Lücke bei Workflows, die auf Arcade für die Logik der…
-
Authentifizierung des ArcGIS Online-Datensatzes für die Verwendung im Arpy-Geoverarbeitungswerkzeug nicht möglich
Ich habe einen gehosteten Feature-Service auf arcgis.com, der nicht öffentlich geteilt wird, und ich muss die Daten aus einem Python-Skript lesen. Das untenstehende Skript lief bis vor Kurzem ohne Probleme. Jetzt erhalte ich einen Fehler 000732 ("Datensatz existiert nicht oder wird nicht unterstützt"), wenn das…
-
Automating ArcGIS Notebooks
Hello, for context I am currently developing a way to have records automatically added to a "Master Results Table". I am using a feature layer in AGOL that has tasks enabled through Field Maps Designer. Within the EsriTask workflow, the field team will be required to complete a Survey123 form. There is n many Survey123…
-
FeatureLayer.query() giving Exception - TypeError: '>=' not supported between instances of 'int' and 'NoneType'
While querying Feature Layer getting Exception as <em><strong>"</strong></em><em>TypeError: '>=' not supported between instances of 'int' and 'NoneType' "</em> But the same outStatistics value and where clause is working fine in the REST end point in the browser, and giving the expected result. <em> </em> // Below code is…
-
FeatureLayer.query() not returning a feature set
Hello, I am looking to create a spatially enabled dataframe from a FeatureSet with the ArcGIS API for Python. I have always: * Created a FeatureLayer object * Used .query(where="whatever") to return a feature set, * Used the .sdf property to create the dataframe. Today the sdf property doesn't work, .query() is returning a…
-
clone_items() fails cloning hosted feature layer
First, a couple bullets with some basic information * ArcGIS Pro version: 3.6.3 * Source: ArcGIS Enterprise organization * Target: ArcGIS Online organization * Cloning between same source/target organizations worked previously with another Feature Layer Collection. I'm trying to clone a Feature Layer with a Survey123 point…
-
Update feature geometry?
I have a script that is supposed to replace the geometry of a polygon with a new polygon constructed by reading some of its fields (minX, minY, maxX, maxY). I can do this with traditional arcpy, but I'm running into issues when trying to do it with the arcgis module. Specifically, I either get no edits to the geometry if I…
-
What is wrong with this code?
Good afternoon, I am trying to overwrite an AGOL hosted feature class with API Python and testing it from ArcGIS Pro Notebook. I am able to load the zipped FGDB in AGOL and overwrite the hosted feature class manually. When I try to do the same thing with my program, selecting the same zipped FGDB, I get the following error…
-
Which cell tag to use for AGOL Notebook parameters: injected-parameters or parameters?
The docs list two different cell tags to use when setting up a Notebook to use external parameters. In one place they say to use injected-parameters but in another they say to use parameters. After some experimentation I think parameters is correct when I'm calling the Notebooks from arcgis.notebook.execute_notebook(), but…
-
Expose ArcGIS Online Required and Suggested Metadata Elements Scores to API for Python
My organization is attempting to create an automated process using the API for Python to check items in our organization against our customized publishing guidelines (i.e., summary, tags, categories, etc). Our process is similar to this example, but much more in-depth and linked to a live dashboard to monitor…
-
Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] ("module 'arcgis.layers' has no attribute '_ogc' ")
I am calling in a layer from an item ID by using the arcgis module "layers". If I just pull in the item using gis.content.get(item_id), the item shows up fine. When I try to get to the layers though, I get the error module 'arcgis.layers' has no attribute '_ogc' . This was working for a long time, and is my go-to method…
-
FeatureLayerCollection.replicas.create always returns the correct tables but 0 records in the tables
Hi there. I have a python script that attempts to export a hosted feature service as a file geodatabase using the python api's featurelayercollection.replicas.create() method. I am running python 3.11.10 and arcgis api 2.3.0 The service details: - One feature layer (id: 0, geometry type: point) with attachments - One…
-
Issue with the Tutorial: "Classify land cover to measure shrinking lakes"
Classify land cover to measure shrinking lakes | ArcGIS API for Python | Esri Developer The code extracting the sentinel fata in this tutorial is not working for me. sentinel2016 = gis.content.get("a264d1eaa8bd4ff2a0a1e27b59daa7d3") sentinel2017 = gis.content.get("ea192d03d1324c62a2cb91e26e3a0ece") These Item IDs do not…