POST
|
Hi, Currently it is not possible to create a view from a hosted table using the ArcGIS Python API. That is the answer I got from ESRI. I suggested an ArcGIS Idea, feel free to vote for it https://community.esri.com/ideas/16757-python-api-create-view-for-hosted-table De: José Antonio Anta Viguera Enviado el: miércoles, 16 de octubre de 2019 16:05 Para: Velasco Echeverria, Xabier (NASUVINSA) Asunto: Re: - Re: Create View of Hosted Feature Service using Python API GeoNet, The Esri Community | GIS and Geospatial Professional Community <https://community.esri.com/?et=watches.email.thread> Re: Create View of Hosted Feature Service using Python API reply from José Antonio Anta Viguera<https://community.esri.com/people/joseantonio.antaesri-es-esridist?et=watches.email.thread> in ArcGIS Online - View the full discussion<https://community.esri.com/message/884687-re-create-view-of-hosted-feature-service-using-python-api?commentID=884687&et=watches.email.thread#comment-884687>
... View more
10-16-2019
11:45 PM
|
0
|
1
|
60
|
POST
|
Hi Richard, what is the size of the data you are downloading? I had tu use the loop as there were issues while downloading big geodatabases (i.e. 1.8GB) without the loop.
... View more
08-06-2019
10:49 PM
|
0
|
1
|
438
|
DOC
|
Hi Oscar, Yes, it changed to http://www.indusland.es/cAAE_PUBLICA/ Sorry, Xabier PD: I changed in the first entry as well
... View more
08-01-2019
05:35 AM
|
1
|
0
|
327
|
POST
|
Hi Darryl, In that piece of code there is no reference to the ArcGIS Python API... Best regards, Xabier
... View more
07-01-2019
12:42 AM
|
0
|
0
|
438
|
POST
|
Ok, could you please post the code you are executing so that I may check what is going on?
... View more
06-28-2019
12:23 AM
|
0
|
2
|
597
|
POST
|
Hi Darryl, What is the size of the geodatabase that you are trying to download?
... View more
06-27-2019
02:50 AM
|
0
|
4
|
597
|
IDEA
|
Currently it is not possible to create a view from a hosted table using the ArcGIS Python API. This might be a very useful tool to allow multilanguage implementations without duplicating data in AGOL or Portal. This way, data maintenance and update tasks might be simplified.
... View more
05-30-2019
11:16 PM
|
9
|
2
|
290
|
IDEA
|
Currently it is not possible to create a view from a hosted table using the ArcGIS Python API. This might be a very useful tool to allow multilanguage implementations without duplicating data in AGOL or Portal. This way, data maintenance and update tasks might be simplified.
... View more
05-30-2019
11:16 PM
|
9
|
2
|
305
|
POST
|
Hi, This function works ok def crearVista ( coleccionFeatures , nombreVista , permisos , capas , edicionGeometria , limiteConsulta , gruposAGOL ) : global vflc ## Declaración uso variable global para usarla fuera de la función global itemVista vflc = 0 itemVista = 0 # Eliminar vista si existe print ( "nombreVista: " + nombreVista ) items = gis . content . search ( nombreVista , "Feature Layer Collection" ) if items : vistaExistente = gis . content . get ( items [ 0 ] . itemid ) print ( "vista para eliminar: " + str ( items [ 0 ] . itemid ) ) vistaExistente . delete ( ) print ( "vista eliminada" ) # Crear vista vista = coleccionFeatures . manager . create_view ( name = nombreVista , spatial_reference = None , extent = None , allow_schema_changes = True , updateable = True , capabilities = permisos , view_layers = capas ) itemVista = gis . content . get ( vista . itemid ) print ( "itemVista: " + str ( vista . itemid ) ) vflc = arcgis . features . FeatureLayerCollection . fromitem ( itemVista ) print ( "vflc: " + str ( vflc ) ) update_dict = { 'maxRecordCount' : limiteConsulta , 'allowGeometryUpdates' : edicionGeometria } ## Se señalan 25.000 puesto que es el límite máximo de todos los elementos consultables, incluyendo establecimientos que es la capa que más elementos puede tener (parcelas y naves solo se consideran las disponibles para el límite, etc.) vflc . manager . update_definition ( update_dict ) for grupo in gruposAGOL : print ( grupo ) idGrupo = gis . groups . search ( grupo ) [ 0 ] . groupid print ( idGrupo ) if idGrupo : itemVista . share ( groups = idGrupo ) else : msg = u "ATENCIÓN: grupo " + grupo + u " sin asignar permisos para el servicio de vista " + nombreVista print ( msg ) arcpy . AddWarning ( msg ) return
... View more
10-29-2018
07:39 AM
|
0
|
5
|
112
|
POST
|
Hi, You should import the arcgis module (ArcGIS Python API): import arcgis from arcgis.gis import GIS Regards, Xabier
... View more
08-15-2018
10:43 PM
|
2
|
0
|
74
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|