Loads an existing topology by name from the database.
- Parameters
-
| iface | the backend interface handler (see lwt_CreateBackendIface) |
| name | name of the topology to load |
- Returns
- the handler of the topology, or NULL on error (liblwgeom error handler will be invoked with error message)
Definition at line 546 of file lwgeom_topo.c.
547{
550
552 if ( ! be_topo ) {
553
555 return NULL;
556 }
563
564 return topo;
565}
void * lwalloc(size_t size)
struct LWT_BE_TOPOLOGY_T LWT_BE_TOPOLOGY
Topology handler.
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static double lwt_be_topoGetPrecision(LWT_TOPOLOGY *topo)
LWT_BE_TOPOLOGY * lwt_be_loadTopologyByName(LWT_BE_IFACE *be, const char *name)
static int lwt_be_topoHasZ(LWT_TOPOLOGY *topo)
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
static int lwt_be_topoGetSRID(LWT_TOPOLOGY *topo)
LWT_BE_TOPOLOGY * be_topo
const LWT_BE_IFACE * be_iface
References LWT_TOPOLOGY_T::be_iface, LWT_TOPOLOGY_T::be_topo, LWT_TOPOLOGY_T::hasZ, lwalloc(), lwerror(), lwt_be_lastErrorMessage(), lwt_be_loadTopologyByName(), lwt_be_topoGetPrecision(), lwt_be_topoGetSRID(), lwt_be_topoHasZ(), LWT_TOPOLOGY_T::precision, and LWT_TOPOLOGY_T::srid.