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

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

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

Detailed Description

template<>
struct GeoTargetValuePtrSerializer< kPOLYGON >

Definition at line 250 of file ResultSetGeoSerialization.h.

Member Function Documentation

static TargetValue GeoTargetValuePtrSerializer< kPOLYGON >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 2 > &  vals 
)
inlinestatic

Definition at line 251 of file ResultSetGeoSerialization.h.

252  {
253  // TODO: once NULL geo support is in, add coords NULL check under !notnull
254  // if (!geo_ti.get_notnull() && (vals[0]->is_null || vals[1]->is_null)) {
255  // return GeoTargetValuePtr();
256  // }
257  return GeoPolyTargetValuePtr({std::move(vals[0]), std::move(vals[1])});
258  }

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