OmniSciDB  c07336695a
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

struct GeoTargetValueSerializer< kLINESTRING >

Definition at line 158 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

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

Definition at line 159 of file ResultSetGeoSerialization.h.

References anonymous_namespace{ResultSetGeoSerialization.h}::decompress_coords< double >(), and anonymous_namespace{TypedDataAccessors.h}::is_null().

160  {
161  if (vals[0]->is_null) {
162  return GeoLineStringTargetValue(std::vector<double>{});
163  }
165  *decompress_coords<double>(geo_ti, vals[0]->pointer, vals[0]->length));
166  }
std::shared_ptr< std::vector< double > > decompress_coords< double >(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)
bool is_null(const T &v, const SQLTypeInfo &t)
+ Here is the call graph for this function:

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