Rule Packages (rpk)

What is a Rule Package

A 'rule package' is a compressed package, containing compiled (binary) CGA rule files, plus all needed referenced assets and data.

Rule packages are an easy way to share procedural rules in a handy single file. For finding the package content, the rules are analyzed. Note that with CGA, one can create very complex asset dependencies, so it cannot be guaranteed that in every case, all assets are included. In doubt, add the files manually (see 'Additional Files' below).

Creating a Rule Package locally on your machine

  1. Locate the target CGA rule in the Navigator.
  2. Right-click on the .cga file and choose Share As...
  3. The Rule Package dialog box appears: Name your RPK.
  4. Click 'Save package to file' (Note the sharing tab disappears) and set the file path.
  5. Decide if you want the CGA source code (human readable text files) to be included.
  6. Fill out the item description
  7. Remove proposed files and folders, or add new ones. This enforces the packaging of specific assets.
  8. Click Analyze to validate your RPK for any errors or issues. You must validate and resolve all errors before you can save it to disk or share it to ArcGIS Online. If any issues are discovered, an error will be reported. You have to fix the error before you can continue.
  9. Click 'Share' to save the file to disk.


Publish to ArcGIS online

ArcGIS Online is an online platform to share maps and geographic information with others. CityEngine allows you to easily share RPKs with others by publishing them to your ArcGIS Online content.

Help on signing into ArcGIS Online / Portal and other details can be found here.

 

  1. Locate the target CGA rule in the Navigator.
  2. Right-click on the .cga file and choose Share As...
  3. The Rule Package dialog box appears: Name your RPK.
  4. Take the same steps as descibed above under 'Creating a Rule Package locally on your machine' for the Item Description and Additional Files.
  5. Click on the 'Sharing' tab.
  6. CityEngine will ask you to log in with your AGOL account, unless you're already logged in.
  7. Set the groups with whom you want to share the PRK with.
  8. Analyze the RPK for it's validity, then click 'Share' to upload the RPK onto AGOL.

 

If the RPK already exists on the portal, the RPK will be updated with the new version, and will keep the same ID.

 

RPKs can be uploaded to other ArcGIS portals as well. See Sharing data on a different Portal

 

 

 

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.