Esri has created a new format for storing data with the geodatabase. If you’re creating or saving data, it is recommended to use this format instead of shapefiles. Data stored in a geodatabase will take up less space and perform faster than shapefiles.
The following steps take you through adding a geodatabase to Esri ArcGIS Pro and creating an Enterprise Geodatabase from that data, using the sample HongKong database. You can substitute or create your own database in place of this.
Go to the HongKong GDB, or another downloaded geodatabase, as instructed in the Download GIS Database steps, and click Download.
Locate and unzip HongKong.gdb.zip file that was downloaded.
HongKong.gdb contents
Inside the zip file is a geodatabase file: HongKong.gdb. Inside the geodatabase there are a lot of files
with mysterious names. These are for functionalities in the geodatabase, do not do anything with them.
Return to ArcGIS Pro and select New then select Map from the options under New Project, name your project and specify where it will be stored and click OK.
In the Catalog pane, on the Project tab, right-click Databases and choose Add Database.
Adding geodatabase data
You can add the geodatabase data the same way you would add a shapefile (with the Add Data button),
or you can also add it with Add Database options in ArcGIS.
Browse to and select HongKong.gbd, click OK.
In the Catalog pane expand the Databases folder.
Default.gdb
There will be a few geodatabases listed. If Default.gdb is present, it was created automatically when you
created the project. It is empty now, but any new data that you create in this project will land here by default.
Add the HongKong.gbd geodatabase to the map by selecting the arrow next to it, and right-clicking each item and selecting Add to New then select Map.
Expand the HongKong.gbd database to view the data.
Create Database Connection
To create a database connection, follow the steps below.
Connect to the database by right-clicking the Databases folder in the Catalog pane, and click New Database Connection. The Database Connection dialog box appears.
Provide the information necessary to connect to your new database as an EDB Postgres Advanced Server superuser. Since you will use this connection file in a geoprocessing tool, you must check Save username and password. After the tool is run, you should either uncheck this option in the connection file, connect as a different user, or delete the connection file to prevent other users with access to this file from logging in to the geodatabase as a database administrator.
Click OK to create the connection.
A new connection file is created with Database Connection and will appear under Databases in the Contents pane.
PostGIS files are added with a successful connection.
Create Enterprise Geodatabase
Enterprise Geodatabases create geodatabase system tables, stored procedures, functions, and types in an existing database, which enable geodatabase functionality in the database.
The Create Enterprise Geodatabase tool creates a database, storage locations, and a database user to be used as the geodatabase administrator and owner of the geodatabase depending on the database management system (DBMS) used. It grants the geodatabase administrator privileges required to create a geodatabase, and then creates a geodatabase in the database.
Open Analysis then open Tools.
Open ToolBox then select the following nested options: Data Management Tools, then select Geodatabase Administration, and finally select Create Enterprise Geodatabase.
Enter the connection information for your EDB Postgres Advanced Server instance by providing the platform, in this case PostgreSQL, the Instance connection information and the Database information used to create the connection.
Select the Keycodes Authorization file created in the Enable Enterprise Geodatabase section.
Select PostGIS under Spatial Type.
Click on Run.
When the run is completed and successful, you will see a green box displaying the message Create Enterprise Geodatabase completed., from there you can click View Details to read more information.
The Schema will be created on your EDB Postgres Advanced Server Instance with its geodatabase objects.
Note
If you hover your mouse over your Database Connection in the Catalog pane it will display the message "Enterprise Connection" to easily keep track of your Enterprise Geodatabases within your project.
The following code demonstrates the sde schema that is created after the Enterprise Geodatabase has been created in Esri ArcGIS Pro:
Move Geodatabase Data to EDB Postgres Advanced Server using An Enterprise Geodatabase
Right click on the Database Connection and select Import then Feature Class.
Select the tables from the File Geodatabase as the Input Feature and select your Enterprise Geodatabase as the Output Database.
Click on Run, when the process is successful you will receive a green box with the message, Feature Class to Geodatabase completed.
Navigate to the PostGIS database in your EDB Postgres Advanced Server instance to see the tables with data that was moved from Esri ArcGIS Pro, in this instance the HongKong tables were successfully imported.
Verify the table structure in your EDB Postgres Advanced Server instance with the Esri Table Structure.
Verify that the correct data is loaded in the imported Tables in EDB Postgres Advanced Server from Esri ArcGIS Pro using PgAdmin and/or PEM.
The following images display the data that was imported into the EDB Postgres Advanced Server instance from Esri ArcGIS Pro in PgAdmin to visualize table structure and maps.
Alternately, display the imported data in ArcGIS Pro on your Esri ArcGIS Map and table, and confirm that it is correct in Esri ArcGIS Pro.
Click on your Database Connection, and select the required table and click on Map/Geography or Table to explore the data.
Test any changes in data that you may make in EDB Postgres Advanced Server with Esri ArcGIS Pro. Execute the following commands to change the data in EDB Postgres Advanced Server.
Changing some data in the EDB Postgres Advanced Server instance:
Checking the data in Esri ArcGis Pro to ensure that the test changes are visible:
Performing a few more data alterations, deleting some data and inserting new data to test the connections:
Displaying the new changes to the data in Esri ArcGIS Pro:
Click on the Database Connection and select the changed table, then click on Map/Geography or Table to confirm the changes are made within Esri ArcGIS Pro from your EDB Postgres Advanced Server database.
Sharing/Publishing a Map from ArcGIS Pro to Enterprise Server
This guide shares a use case in which a map was shared from Esri ArcGIS Pro to an Esri ArcGIS Enterprise Environment. The steps below discuss sharing maps that have been created in Esri ArcGIS Pro and how they can then be viewed in the Esri Portal that is part of an Esri ArcGIS Enterprise Environment.
Right click on the table you want to share, in this case postgis.gisadmin.HongKong.Roads, and click Add to Maps, select the newly added map.
Click the Share option in the top menu pane.
In the Share As group, click Web Map.
Accept the default name or provide a new name for the web map.
Select a configuration for your web map, Copy all data: Editable was selected for this use case.
Optionally, click the Folder drop-down arrow and choose or create a folder in your portal content to store the web map.
Specify how the web map will be shared, ArcGIS Enterprise is the choice if you are sharing to your Enterprise configuration.
The Use symbol types compatible with all clients option is checked by default, you can uncheck it if you need.
The following image displays all of the Web Map options that were checked before selecting Finish Sharing.
Under Finish Sharing, click Analyze to review for any potential problems. In order to share a map successfully to an Esri ArcGIS Enterprise configuration you must resolve all errors that appear, you do not have to resolve warnings in order to share.
After you have resolved errors, and optionally resolved warnings, click Share to share the web map.
Once the web map has been successfully shared, click the Manage web map link at the bottom of the pane to manage the web map in your portal.
Click the map and select Open in Map Viewer Classic.
The shared map of the HongKong Roads Table.
The shared map of the HongKong Population Table.
Click Save to save the Map in your portal.
Optionally, click Open in Map Viewer to check the contents in the map.
Go to your Portal and then navigate to the Contents section and saved Maps and data that was shared are there.
You can click on each map individually in the Contents pane of your Portal to see its details.