Code Monkey home page Code Monkey logo

agol_cloning's Introduction

agol_cloning

Cloning content between AGOL orgs

You can use the CloneItemsAcrossOrgs jupyter notebook to clone a user's items from one organization to another.

The notebook contains some helper methods and the CloningTank class. These create a framework for cloning the user's items folder by folder, creating the folder in the destination if it doesn't exist. It tries to work from most complex items to least complex: apps, web maps, feature services, any other types. The notebook includes some example code for setting up a CloningTank object and cloning items.

For each item, the clone_items() method in the ArcGIS API for Python will attempt to clone any dependencies for that item if they don't already exist in the target gis. Cloning an app will clone any web maps in the app, and the web map cloning operations will clone any feature services or other layer sources in turn.

If the CloningTank framework encounters an error with a particular item, it will skip that item and any of its parents. For example, an app relies on a map which has a layer, and the layer throws an error while cloning its soruce. Neither the layer, web map, nor the app will clone (this behavior comes from clone_items(). However, the framework will then attempt the next item in the list for that particular folder instead of bombing out for the whole folder.

As of the current ArcGIS API for Python release (1.8.1), the newer version of several items can't be cloned. These include newer dashboards, Experience Builder apps, and the new JS 4.x Story Maps.

For more info on cloning items, see https://developers.arcgis.com/python/guide/cloning-content/.

agol_cloning's People

Contributors

jacobdadams avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.