OmniSciDB  f17484ade4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeoWktSerializer< 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 GeoWktSerializer< kLINESTRING >

Definition at line 173 of file ResultSetGeoSerialization.h.

Member Function Documentation

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

Definition at line 174 of file ResultSetGeoSerialization.h.

References Geospatial::decompress_coords< double, SQLTypeInfo >(), SQLTypeInfo::get_notnull(), and Geospatial::GeoBase::getWktString().

175  {
176  if (!geo_ti.get_notnull() && vals[0]->is_null) {
177  // May need to generate "LINESTRING EMPTY" instead of NULL
178  return NullableString("NULL");
179  }
181  geo_ti, vals[0]->pointer, vals[0]->length));
182  return NullableString(linestring.getWktString());
183  }
std::shared_ptr< std::vector< double > > decompress_coords< double, SQLTypeInfo >(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)
boost::variant< std::string, void * > NullableString
Definition: TargetValue.h:179
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:398

+ Here is the call graph for this function:

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