Upgrade the ST_Geometry type in a PostgreSQL database
Available with Standard or Advanced license.
The ST_Geometry library contains new functionality or fixes at each ArcGIS release. The database administrator can upgrade the ST_Geometry type in a PostgreSQL database using the Create Spatial Type geoprocessing tool or the CreateSpatialType ArcPy function.
Note:
The st_geometry.dll file requires the Microsoft Visual C++ Redistributable Package (x64) when deployed on a Microsoft Windows server. See ArcGIS requirements for using PostgreSQL for the package version required. If this package is not present on the PostgreSQL server, download it from the Microsoft site and install it.
Upgrading the ST_Geometry type from the 11.2 version drops and re-creates the spatial indexes that you defined on the ST_Geometry columns in user-defined tables.
To upgrade the ST_Geometry type, complete the following steps:
Grant superuser authority to the sde login role in the database cluster if the login does not already have it.
Download a new version of the ST_Geometry package from My Esri.
If the option to download is not present, contact your ArcGIS organization administrator.
Extract the contents of the downloaded file.
Make a backup copy of, or rename. the existing
st_geometrylibrary on the PostgreSQL server.Copy the new
st_geometrylibrary from where you extracted the package's contents, and place the new library in the PostgreSQLlibdirectory.If PostgreSQL is installed on a Linux server, place the
st_geometry.sofile in thelibdirectory.To determine the correct location, run
pg_configas the postgres user. The value that is returned for PKGLIBDIR is thelibdirectory where you need to place thest_geometry.sofile. Sign in to the machine as the root user to copy the file or files to theliblocation.Note:
If your Linux operating system does not include
libstdcc++.so.6.0.29or a later release of the library, also place thelibstdcc++.so.6library in the PostgreSQLlibdirectory.If PostgreSQL is installed on a Windows server, place the
st_geometry.dllfile in the%PostgreSQL%\libdirectory.
Open a project in ArcGIS Pro, open the Catalog pane, and connect to the database as the sde user.
A database connection (
.sde) file is created in the project folder.To update the ST_Geometry type, subtypes, and functions in the database, run the Create Spatial Type geoprocessing tool or a Python script that uses the
CreateSpatialTypeArcPy function.Use the
.sdefile you created in the previous step for the database connection.