SE_spatialref_create

Creates a spatial reference entry

Usage syntax

LONG SE_spatialref_create (SE_CONNECTION connection, SE_SPATIALREFINFO spatialref);

Parameters
connection A connection
spatialref A pointer to a spatial reference object
Description

SE_spatialref_create creates a spatial reference entry in the spatial_references table. The ESRI srid (spatial reference ID) is assigned when the entry is added to the spatial_references table. If an exact duplicate of the spatial reference exists, the srid for the existing entry is returned, a new entry is not inserted, and the warning SE_SPATIALREF_EXISTS is returned.

Returns

SE_SUCCESS
SE_FAILURE

SE_DB_IO_ERROR

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_SPATIALREFINFO_OBJECT

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_OUT_OF_SVMEM

SE_SPATIALREF_EXISTS