◆ HasCRS()
| bool duckdb::GeoType::HasCRS |
( |
const LogicalType & | type | ) |
|
|
static |
140991 {
140992 D_ASSERT(type.id() == LogicalTypeId::GEOMETRY);
140993 auto info = type.AuxInfo();
140994 if (!info) {
140995 return false;
140996 }
140997 D_ASSERT(info->type == ExtraTypeInfoType::GEO_TYPE_INFO);
140998 const auto &geo_info = info->Cast<GeoTypeInfo>();
140999
141001}
@ INVALID
Not set / invalid.
Definition duckdb.cpp:20439
◆ GetCRS()
141003 {
141004 D_ASSERT(type.id() == LogicalTypeId::GEOMETRY);
141005 auto info = type.AuxInfo();
141006 if (!info) {
141007 throw InternalException("Geometry type has no CRS information");
141008 }
141009 D_ASSERT(info);
141010 D_ASSERT(info->type == ExtraTypeInfoType::GEO_TYPE_INFO);
141011 auto &geo_info = info->Cast<GeoTypeInfo>();
141012
141013 return geo_info.crs;
141014}
The documentation for this struct was generated from the following files: