bnelson85 / state-tree-diagram

A tool to create geodatabase state tree diagrams in ArcGIS desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create geodatabase state tree diagram

This tool provides three ways to visualize SDE database version states and their relationships in ArcGIS desktop.

Setup (quick and easy)

As needed:

  1. Install R 3.3.2 or later.
  2. Install The R-ArcGIS bridge.
  • The bridge is easy to install with ArcGIS Pro via geoprocessing settings

(Stepwise directions, be patient at step 3 be patient as it takes a moment for the home directories list to be populated. Also, ArcGIS Pro will need to be restarted after insalling the R-ArcGIS bridge.)

  • Or, follow the instructions for installing offline or with ArcMap (note: the bridge only needs to be installed once via any of the methods).
  1. Download and unzip a copy of this repository in a convenient location (top right green button).

Running the tool

  1. In ArcGIS Pro or ArcMap, browse to the repository folder and open the Create_State_Diagram toolbox in the catalog window and open the Create state tree diagram model.

  1. Browse to the desired database connection file - note: the connection must use geodatabase administrator credentials.
  2. Select one or more of the desired output formats.
  3. Click Run or OK. (The first time the model runs it will install the required external packages).

Notes

  • Diagram features are added to the current map without a spatial reference and centered near 0, 0. This seems to work fine with an empty map document in ArcMap or a map with default Web Mercator projection in ArcGIS Pro. In some cases, it may be necessary to zoom to the features to view the diagram and experiences with other spatial references and projections may vary.
  • The default symbology and labels of the features in ArcMap or ArcGIS Pro can be changed in ArcMap by symbolizing a diagram as desired and saving layer files over the default files stored in the StateTreeFiles folder.
  • Tested against Microsoft SQL Server, PostgreSQL, and Oracle databases. The tool may work with other databases but has not been tested.

Known limitations

  • If the Y dimension of the diagram is very large, ArcMap or ArcGIS Pro may crash.
  • If the diagram is lacking some of the possible vertex categories, the symbology may be shifted in ArcGIS Pro.
  • Oracle user schema databases not supported.
  • Please report any issues!

About

A tool to create geodatabase state tree diagrams in ArcGIS desktop

License:Apache License 2.0


Languages

Language:R 81.0%Language:Python 19.0%