Skip to content

Commit

Permalink
Fix MEOS build (MobilityDB#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi authored Oct 9, 2024
1 parent d57fa08 commit 938ec62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions meos/include/general/type_round.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@

extern double float_round(double d, int maxdd);
extern Datum datum_round_float(Datum value, Datum size);

extern Datum datum_round_geo(Datum value, Datum size);


#if NPOINT
extern Datum datum_npoint_round(Datum npoint, Datum size);
extern Npoint *npoint_round(const Npoint *np, int maxdd);
extern Nsegment *nsegment_round(const Nsegment *ns, int maxdd);
extern Set *npointset_round(const Set *s, int maxdd);
extern Temporal *tnpoint_round(const Temporal *temp, Datum size);
#endif /* NPOINT */


/*****************************************************************************/
Expand Down
4 changes: 2 additions & 2 deletions meos/src/point/pgis_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,11 +1826,11 @@ geo_out(const GSERIALIZED *gs)

#if MEOS || DEBUG_BUILD
/**
* @ingroup meos_pgis_types
* @brief Return a geometry/geography from its WKT representation (and
* optionally a SRID)
* @param[in] wkt WKT string
* @param[in] srid SRID
* @param[in] geography True if it is a geometry
*/
GSERIALIZED *
geo_from_text(char *wkt, int srid)
Expand Down Expand Up @@ -2319,7 +2319,7 @@ geog_from_binary(const char *wkb_bytea)
/* Error on any SRID != default */
// srid_check_latlong(lwgeom->srid);

GSERIALIZED *result = geography_serialize(geom, -1);
GSERIALIZED *result = geo_serialize(geom);
lwgeom_free(geom);
return result;
}
Expand Down

0 comments on commit 938ec62

Please sign in to comment.