

The SAP HANA ST_Geometry type is used for spatial data storage in SAP HANA and SAP HANA Cloud. PostgreSQL database-as-a-service offeringsĪrcGIS supports only the PostGIS geometry type in database-as-a-service options such as Amazon Aurora (PostgreSQL-compatible edition), Amazon Relational Database Service (RDS) for PostgreSQL, and Microsoft Azure Database for PostgreSQL. See PostGIS documentation for information on the installation and configuration of PostGIS. Once installed, either use the PostGIS template database to create a database containing the PostGIS types, or configure an existing database to use the PostGIS types.
Postgresql vs mysql for spatial data install#
To use the PostGIS geometry or geography type, install PostGIS on the PostgreSQL database cluster. PostGIS is a third-party, open source installation. See Add the ST_Geometry type to a PostgreSQL database for instructions. Next, use the Create Spatial Type geoprocessing tool to create the ST_Geometry type in the database.

To install the ST_Geometry type in PostgreSQL, place the st_geometry library in your PostgreSQL installation's lib directory.

Install one or all of these types in your database. PostgreSQLĪrcGIS supports three spatial types in PostgreSQL: ST_Geometry, PostGIS geometry, and PostGIS geography. Only SDO_Geometry is supported in Amazon RDS for Oracle. Amazon Relational Database Service (RDS) for Oracle Therefore, you can access the SDO_Geometry type without additional installations, but to access all SDO_Geometry functions, you may need to install Oracle Spatial in the database. Oracle Locator objects, including the SDO_Geometry type, are present by default in Oracle databases. If you will define queries that perform spatial functions on your layers, you also need to configure the Oracle extproc to use ST_Geometry. See Add the ST_Geometry type to an Oracle database for instructions. Use the Create Spatial Type geoprocessing tool to install the ST_Geometry spatial type in your Oracle database. OracleĪrcGIS supports two spatial types in Oracle: ST_Geometry and SDO_Geometry. You do not have to install or configure these spatial types, as they are present automatically. SQL Server, Azure SQL Database, and Amazon RDS for SQL Server include two spatial types: Geometry and Geography. IBM Db2ĭb2 databases include their own ST_Geometry spatial type. Damengĭameng includes its own ST_Geometry spatial type however, you must initialize it. The following sections list all the databases ArcGIS supports, what spatial data types are supported in each, and what, if any, configuration is needed to use a spatial data type in each database. Others require some configuration or an installation Many databases automatically include spatial data types. I wanted to migrate the database to MySQL and I wanted to use its spatial functions, but I don't find a way to use/convert the KML data inside MySQL as I do with PostGIS.Spatial data types store the spatial attributes that allow you to visualize data on a map. So I use ST_geomFromKML to convert data to geometry then I search for intersection of a circle I create around the point. I query it with postGIS commands with a query like this: SELECT ST_geomFromKML(geometry) I have a PostgreSQL DB that contains KML data in one column of a table.
