OmniSciDB  04ee39c94c
GeoWktSerializer< 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

struct GeoWktSerializer< kPOLYGON >

Definition at line 201 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

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

Definition at line 202 of file ResultSetGeoSerialization.h.

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

203  {
204  std::vector<int32_t> ring_sizes_vec;
205  unpack_geo_vector(ring_sizes_vec, vals[1]->pointer, vals[1]->length);
207  *decompress_coords<double>(geo_ti, vals[0]->pointer, vals[0]->length),
208  ring_sizes_vec);
209  return NullableString(poly.getWktString());
210  };
void unpack_geo_vector(std::vector< T > &output, const int8_t *input_ptr, const size_t sz)
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: