Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::GeoType Struct Reference

Static Public Member Functions

static DUCKDB_API bool HasCRS (const LogicalType &type)
static DUCKDB_API const CoordinateReferenceSystem & GetCRS (const LogicalType &type)

Member Function Documentation

◆ 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
141000 return geo_info.crs.GetType() != CoordinateReferenceSystemType::INVALID;
141001}
@ INVALID
Not set / invalid.
Definition duckdb.cpp:20439

◆ GetCRS()

const CoordinateReferenceSystem & duckdb::GeoType::GetCRS ( const LogicalType & type)
static
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: