-
create local database from sql management studio named
UTRANS -
enable as enterprise gdb via pro
import arcpy arcpy.management.EnableEnterpriseGeodatabase(r'...\utrans-attribute-rules\pro-project\localhost.sde', r'C:\Program Files\ESRI\License10.6\sysgen\keycodes')
If you receive errors, you may need to execute the following sql
ALTER DATABASE UTRANS SET ALLOW_SNAPSHOT_ISOLATION ON ALTER DATABASE UTRANS SET READ_COMMITTED_SNAPSHOT ON
-
import the XML Workspace for the existing UTRANS database
arcpy.management.ImportXMLWorkspaceDocument(r'...\utrans-attribute-rules\pro-project\localhost.sde', r'...\utrans-attribute-rules\data\STAGING.XML', 'SCHEMA_ONLY', None)
-
Create a python conda workspace for the project
conda create --clone arcgispro-py3 --name utrans
-
Activate the environment
activate utrans
-
install the development requirements
pip install -r requirements.dev.txt
- County boundaries
- Municipal boundaries
- Zip code boundaries
- add
localhost.sde,stage.sde, andprod.sdeto the pro-project - Install attribute rules
python ar.py update --env=local, dev, prod
This is a doc opt cli, so check the help for the tool.
- Bump ar.py
VERSIONstring - Bump ruletypes.py
Constraint.error_numberto match in the integer form- Bump before you run since it adds a record to the
Version_Informationtable
- Bump before you run since it adds a record to the