|
POST
|
It seems this should be resolved in 2.0.1: https://github.com/Esri/arcgis-python-api/issues/1265. However trying to append data into ArcGIS Enterprise using the 2.0.1 version, it throws another exception: Exception Traceback (most recent call last) in ~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\features\layer.py in append(self, item_id, upload_format, source_table_name, field_mappings, edits, source_info, upsert, skip_updates, use_globalids, update_geometry, append_fields, rollback, skip_inserts, upsert_matching_field, upload_id, return_messages, future) 2376 url = self._url + "/append" 2377 del cparams -> 2378 res = self._con.post(path=url, postdata=params) 2379 if future: 2380 executor = concurrent.futures.ThreadPoolExecutor(1) ~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\gis_impl_con_connection.py in post(self, path, params, files, **kwargs) 1410 file_name=file_name, 1411 try_json=try_json, -> 1412 force_bytes=kwargs.pop("force_bytes", False), 1413 ) 1414 ~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\gis_impl_con_connection.py in _handle_response(self, resp, file_name, out_path, try_json, force_bytes, ignore_error_key) 898 return data 899 errorcode = data["error"]["code"] if "code" in data["error"] else 0 --> 900 self._handle_json_error(data["error"], errorcode) 901 return data 902 else: ~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\gis_impl_con_connection.py in _handle_json_error(self, error, errorcode) 921 922 errormessage = errormessage + "\n(Error Code: " + str(errorcode) + ")" --> 923 raise Exception(errormessage) 924 925 def post_multipart( Exception: Error downloading item from Portal. (Error Code: 500) Nobody is doing a programmatic data append against ArcGIS Enterprise? Matej
... View more
06-06-2022
04:48 AM
|
0
|
0
|
1136
|
|
POST
|
Hi, I'm using ArcGIS Python API v2.0.0 and trying to append data to hosted feature layer in ArcGIS Enterprise v10.9.1. It fails with a message "Append only available on ArcGIS Online". Regarding the documentation: "The append method is only available in ArcGIS Online and ArcGIS Enterprise 10.8.1+". Am I missing something? Thanks, Matej
... View more
05-27-2022
07:07 AM
|
2
|
2
|
1211
|
|
POST
|
Hi, I have an ArcGIS Developer Subscription Essentials Plan. That includes a single-user ArcGIS Online account which provides tools for hosted data management, etc. However, if using a Map Viewer Classic (under this single-user AGOL account), there is no "Analysis" button to perform analysis. I'm missing especially the Join Features tool, which can be used to create a Join Feature Layer View as a result of joining two hosted feature layers. Are the Analysis tools missing from the Map Viewer becase of Essentials Plan? How to create a hosted join feature layer view in ArcGIS Platform? Thanks, Matej
... View more
05-26-2022
06:24 AM
|
0
|
1
|
1541
|
|
EVENT
|
Po emailu ke mě zabloudil ještě dotaz ohledně použití operace truncate v rámci procesu aktualizace hostovaných dat, tak zde podrobněji: Jedná se o operaci truncate, která je dostupná v admin rozhraní hostované vrstvy prvků (feature služby) a to jak v ArcGIS Online, nebo ArcGIS Enterprise. Popis této operace najdete zde: https://developers.arcgis.com/rest/services-reference/online/truncate-feature-layer-.htm. Operaci můžete použít přímo ve webovém prohlížeči (v ArcGIS REST Admin), ideálně však z prostředí nějakého programu/skriptu, který může proces aktualizace dat např. automatizovat. K tomu lze využít ArcGIS Python API, viz. https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html?highlight=truncate#arcgis.features.managers.FeatureLayerManager.truncate a to jak v podobě vlastního skriptu, nebo notebooku s automatickým spouštěním. Pokud jsou pro Vás tyto postupy nové, může se hodit např. tento dokument: https://community.esri.com/t5/arcgis-online-documents/overwrite-arcgis-online-feature-service-using/ta-p/904457
... View more
04-26-2022
04:38 AM
|
1
|
0
|
1173
|
|
EVENT
|
Ještě doplním odkazem na dokumentaci: https://doc.arcgis.com/en/arcgis-online/reference/arcgis-server-services.htm#ESRI_SECTION1_FEB0DF92DA064B6A970DFB59A18AA4C2
... View more
04-26-2022
02:32 AM
|
1
|
0
|
1181
|
|
POST
|
Ahoj, svůj dotaz @AdministrátorJihlava jsem bral spíš ze zvědavosti, nechtěl jsem tím naznačit, jak by se dnes měli tvořit webové mapy v systému ArcGIS. Konkrétně, zda ve webové mapě použít data kreslená na serveru (Map Image Layer), nebo data kreslit na klientu (Feature Layer)? Stejně tak, jako příchodem vektorových dlaždic nezmizely dlaždice rastrové, ani dynamická mapová služba se nikam nechystá 🙂 Nicméně, můžeme pozorovat masivní rozvoj v oblasti kreslení dat na klientu a proto máme na výběr. Osobně upřednostňuji vektorová data kreslená na klientu, pokud to situace umožňuje. Aplikace pak může uživatelům nabídnout mnohem interaktivnější mapu (tooltips, rotace, kvalita zobrazení, clustering, ...). Pokud však narazím na potřebu renderovat data na serveru (složitá kartografie, hooodně vrstev, ...), mohu využít mapovou službu a její server-side rendering. Při tvorbě webové mapy bych se však otázkou výběrue měl zabývat. Na druhou stranu se zdá, že nové generace aplikací systému ArcGIS (Map Viewer, Field Maps, Dashboards, ...) "upřednosňují" data kreslená na klientu a při volbě dynamické mapové služby začnou narážet na určité "nedostatky". Nelze však tvrdit, že by tyto aplikace dynamické mapové služby nepodporovaly, jenom umožňují více funkcionality nad daty kreslenými na straně klienta. Co se týče Field Maps a otázky editace dat, situace je malinko složitější a rozumím tomu, co @AdministrátorJihlava zmiňuješ. Po pravdě, neznám best-practice jiný, než přehodnotit, zda skutečně potřebuju kreslit data na serveru, nebo slevím z nároků na symbologii a využiji data kreslená na klientu. Některé funkce editace, jako např. přichytávání na geometrii stávajících prvků v mapě, dokonce vyžadují data kreslená na klientu, jinak fungovat nemůžou. Nechám zde prostor pro @DavidNovak, se kterým Field Maps patrně řešíš. Abych to shrnul, při tvorbě webové mapy bych měl zvážit, zda budu data v mapě kreslit na serveru (map service), či klientu (map service/layer, feature service) a s tímto ohledem pak s mapou pracovat. Pěkný den, Maťo
... View more
03-29-2022
12:52 AM
|
4
|
4
|
4293
|
|
POST
|
Hi Casper and thank you for your reply. I had in mind what @Anonymous User suggested: Field Calculator processors can be used to make this easier, by converting null integers to zero, or null strings to "null", and so on. However, this can only be done conditionally (convert the value only if it is null, otherwise pass the value on) and there seems to be no way to do this in GeoEvent Service processing. Unfortunately, I do not have the ability to change the backend providing the data as it is operated by a third party. Regards, Matej
... View more
02-24-2022
07:37 AM
|
0
|
1
|
1813
|
|
POST
|
Hi, can you please give an example of how to handle NULL values using a field calculator? If I understand correctly, I need to conditionally process NULL values (if it is NULL, set the default value, otherwise use the original value), but I am not aware that Field Calculator supports conditional processing. Thanks, Matej
... View more
02-21-2022
06:43 AM
|
0
|
3
|
1823
|
|
POST
|
Hello, Currently, when you click the Dataset's View Metadata button, the item's metadata is displayed. Eg: https://www.arcgis.com/sharing/rest/content/items/8b5b4f2777a84b67b8130c3ca5009107/info/metadata/metadata.xml?format=default&output=html However, if there is a Feature Service item, there is usually more than one layer inside. These sublayers have their own metadata, describing the data of each layer. Eg: https://services9.arcgis.com/UILu2wREgFBEuDZW/arcgis/rest/services/AD_Address_Brussels_Belgium_AD_demo/FeatureServer/0/metadata?format=default&f=html In addition, when publishing Enterprise Geodatabase data by reference (using ArcGIS Enterprise services), the metadata of each layer within the service is linked to the metadata within the geodatabase, which is great. Unfortunately, this service-level metadata is not available in the ArcGIS Hub data catalog because it references item metadata. Is there any development planned in this area? Thanks, Matej
... View more
02-16-2022
12:48 AM
|
1
|
1
|
728
|
|
POST
|
Yes, one option may be to place the GIS Server or better all ArcGIS Enterprise components outside your firewall. Another very widely used technique is to expose ArcGIS Enterprise (Server / Portal) via a perimeter network reverse proxy server (DMZ). This is well documented here: https://enterprise.arcgis.com/en/server/latest/deploy/windows/single-machine-deployment-with-reverse-proxy-server.htm https://enterprise.arcgis.com/en/portal/latest/administer/windows/using-a-reverse-proxy-server-with-portal-for-arcgis.htm https://enterprise.arcgis.com/en/server/latest/deploy/windows/using-a-reverse-proxy-server-with-arcgis-server.htm You can also deploy ArcGIS Enterprise completely outside your network in the public cloud environment of your choice (AWS, Azure, ...). In any case, if your only intention is to power the Hub data of your enterprise geodatabase, not to use other portal options, the REST API of GIS Server services is the only thing you need to reveal. Matěj
... View more
02-09-2022
12:17 AM
|
1
|
0
|
1830
|
|
POST
|
Hi, If you have an ArcGIS Enterprise base deployment (Server federated with a Portal) you can publish the data in bulk: https://enterprise.arcgis.com/en/portal/latest/use/bulk-publish-arcgis-server-feature-layers.htm. This will create a service endpoint and a portal item for every single Feature Class/Table accessible thru the registered enterprise geodatabase connection. If an enterprise geodatabase data contain the standard metadata (hopefully), this will be also published along with the portal item metadata. Moreover, data and metadata updates are automatically accessible thru the published services/portal items. Then, you can setup a collaboration between the ArcGIS Enterprise and ArcGIS Online: https://enterprise.arcgis.com/en/portal/latest/administer/windows/set-up-an-arcgis-enterprise-and-arcgis-online-collaboration.htm. The collaboration will transfer selected portal items with its metadata to ArcGIS Online and also sync any updates which might happen on the Enterprise side. Lastly, the service endpoints (REST API) of data published in the Enterprise has to be publicly accessible on the Internet, to be available to ArcGIS Hub as a downloadable data. Matej
... View more
02-08-2022
01:22 AM
|
1
|
2
|
1844
|
|
POST
|
Hi, regarding the documentation at https://doc.arcgis.com/en/arcgis-online/manage-data/metadata.htm, Hub does not search the full metadata document. "Future updates to ArcGIS Hub will include support for searching the full metadata document." How far is this future? Thanks, Matej
... View more
02-08-2022
12:51 AM
|
0
|
0
|
500
|
|
POST
|
Hi, I have configured the BDS data source with the "Data Retention Option" set to 1 hour. However the data are not being purged even after several days. Is there something I am missing? PS: Using ArcGIS Enterprise base deployment with a GeoEvent Server version 10.9.1. Thanks, Matej
... View more
01-26-2022
05:48 AM
|
0
|
1
|
1163
|
|
POST
|
Hi, It is already some time since this post, however I found the following is working (tested on AGE 10.8.1 base deployment with SAML auth): import arcpy, json
from urllib import request, parse
tokenUrl = arcpy.GetParameterAsText(0)
def getUserInfo(url):
try:
token = arcpy.GetSigninToken()
data = {"token": token["token"], "f": "json"}
req = request.Request(
url,
data=parse.urlencode(data).encode(),
headers={"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
)
response = json.loads(request.urlopen(req).read().decode("utf-8"))
return response["user"]
except Exception as e:
arcpy.AddError(e)
try:
user = getUserInfo(tokenUrl)
arcpy.AddMessage(user)
arcpy.SetParameterAsText(1, user)
except:
arcpy.AddMessage(arcpy.GetMessages()) The tokenUrl parametr is pointing to https://<gis_server_fqdn>/<web_adaptor/rest/self. This parametr can be set as a constant during the publication of this python script as a GP web tool. Point the tokenUrl parametr to https://<portal_fqdn>/<web_adaptor>/sharing/rest/portals/self to get more detailed user information. Edit: if the GP service is running on ArcGIS Enterprise (base deployment), fetching the user info is a one liner arcpy.GetPortalDescription(arcpy.GetActivePortalURL())["user"] Matej
... View more
11-24-2021
05:43 AM
|
3
|
1
|
2687
|
|
POST
|
Hi, Is the Hub's DCAT Editor going to be extended to support customizing also the new DCAT-AP feed? Are there any other plans for the DCAT Editor, like customizing the root metadata of data catalog itself? Thanks, Matej
... View more
11-05-2021
09:09 AM
|
0
|
1
|
1061
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 11-02-2025 10:58 AM | |
| 1 | 12-02-2022 12:18 AM | |
| 5 | 02-27-2025 12:39 AM | |
| 1 | 04-22-2024 01:00 PM | |
| 2 | 09-20-2024 01:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
14 hours ago
|