Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Apr 1, 2024
1 parent d340ade commit 0d3d1c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spatial/include/spatial/geos/functions/scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct GEOSScalarFunctions {
RegisterStReducePrecision(db);
RegisterStRemoveRepeatedPoints(db);
RegisterStReverse(db);
RegisterStShortestLine(db);
RegisterStShortestLine(db);
RegisterStSimplifyPreserveTopology(db);
RegisterStSimplify(db);
RegisterStTouches(db);
Expand Down Expand Up @@ -75,8 +75,8 @@ struct GEOSScalarFunctions {
static void RegisterStReverse(DatabaseInstance &db);
static void RegisterStLineMerge(DatabaseInstance &db);
static void RegisterStMakeValid(DatabaseInstance &db);
static void RegisterStShortestLine(DatabaseInstance &db);
static void RegisterStSimplifyPreserveTopology(DatabaseInstance &db);
static void RegisterStShortestLine(DatabaseInstance &db);
static void RegisterStSimplifyPreserveTopology(DatabaseInstance &db);
static void RegisterStSimplify(DatabaseInstance &db);
static void RegisterStTouches(DatabaseInstance &db);
static void RegisterStUnion(DatabaseInstance &db);
Expand Down
4 changes: 2 additions & 2 deletions spatial/src/spatial/geos/functions/scalar/st_shortestline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void ShortestLineFunction(DataChunk &args, ExpressionState &state, Vector
auto left_geom = lstate.ctx.Deserialize(left);
auto right_geom = lstate.ctx.Deserialize(right);

auto coord_seq = GEOSNearestPoints_r(ctx, left_geom.get(), right_geom.get());
auto coord_seq = GEOSNearestPoints_r(ctx, left_geom.get(), right_geom.get());
auto result_geom = make_uniq_geos(ctx, GEOSGeom_createLineString_r(ctx, coord_seq));

return lstate.ctx.Serialize(result, result_geom);
Expand Down Expand Up @@ -51,7 +51,7 @@ void GEOSScalarFunctions::RegisterStShortestLine(DatabaseInstance &db) {
ShortestLineFunction, nullptr, nullptr, nullptr, GEOSFunctionLocalState::Init));

ExtensionUtil::RegisterFunction(db, set);
DocUtil::AddDocumentation(db, "ST_ShortestLine", DOC_DESCRIPTION, DOC_EXAMPLE, DOC_TAGS);
DocUtil::AddDocumentation(db, "ST_ShortestLine", DOC_DESCRIPTION, DOC_EXAMPLE, DOC_TAGS);
}

} // namespace geos
Expand Down

0 comments on commit 0d3d1c5

Please sign in to comment.