OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeoTargetValueSerializer< kLINESTRING > Struct Template Reference

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

static TargetValue serialize (const SQLTypeInfo &geo_ti, std::array< VarlenDatumPtr, 1 > &vals)
 

Detailed Description

template<>
struct GeoTargetValueSerializer< kLINESTRING >

Definition at line 173 of file ResultSetGeoSerialization.h.

Member Function Documentation

static TargetValue GeoTargetValueSerializer< kLINESTRING >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 1 > &  vals 
)
inlinestatic

Definition at line 174 of file ResultSetGeoSerialization.h.

References anonymous_namespace{ResultSetGeoSerialization.h}::decompress_coords< double >().

175  {
176  // Removing errant NULL check: not needed currently - there is no NULL geo
177  // in existing tables, all NULL/empty geo is currently discarded on import.
178  // TODO: once NULL geo support is in, resurrect coords NULL check under !notnull
179  // if (!geo_ti.get_notnull() && vals[0]->is_null) {
180  // return GeoTargetValue();
181  // }
183  *decompress_coords<double>(geo_ti, vals[0]->pointer, vals[0]->length));
184  }
std::shared_ptr< std::vector< double > > decompress_coords< double >(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)

+ Here is the call graph for this function:


The documentation for this struct was generated from the following file: