Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Jun 5, 2024
1 parent 03c76c5 commit 28ba343
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spatial/src/spatial/core/functions/scalar/st_points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ static void GeometryPointsFunction(DataChunk &args, ExpressionState &state, Vect
vector<const_data_ptr_t> vertex_ptr_buffer;

UnaryExecutor::Execute<geometry_t, geometry_t>(geom_vec, result, count, [&](geometry_t input) {
const auto geom = Geometry::Deserialize(arena, input);
const auto has_z = geom.GetProperties().HasZ();
const auto has_m = geom.GetProperties().HasM();

// Reset the vertex pointer buffer
vertex_ptr_buffer.clear();

auto geom = Geometry::Deserialize(arena, input);
// Collect the vertex pointers
Geometry::Match<op>(geom, vertex_ptr_buffer);

const auto has_z = geom.GetProperties().HasZ();
const auto has_m = geom.GetProperties().HasM();

if (vertex_ptr_buffer.empty()) {
const auto mpoint = MultiPoint::CreateEmpty(has_z, has_m);
return Geometry::Serialize(mpoint, result);
Expand Down

0 comments on commit 28ba343

Please sign in to comment.