OmniSciDB  5ade3759e0
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 170 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

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

Definition at line 171 of file ResultSetGeoSerialization.h.

References anonymous_namespace{ResultSetGeoSerialization.h}::decompress_coords< double >(), and Geo_namespace::GeoBase::getWktString().

172  {
173  Geo_namespace::GeoLineString linestring(
174  *decompress_coords<double>(geo_ti, vals[0]->pointer, vals[0]->length));
175  return NullableString(linestring.getWktString());
176  }
std::shared_ptr< std::vector< double > > decompress_coords< double >(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)
boost::variant< std::string, void * > NullableString
Definition: TargetValue.h:155
+ Here is the call graph for this function:

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