1119{
1124 double max_seg_length;
1125 uint32_t type1;
1126
1127
1128 g1 = PG_GETARG_GSERIALIZED_P(0);
1130
1131
1133
1134
1136 PG_RETURN_POINTER(g1);
1137
1138
1140
1141
1143
1144
1145
1146
1147
1149
1150
1152
1153
1154 g2 = geography_serialize(lwgeom2);
1155
1156
1159 PG_FREE_IF_COPY(g1, 0);
1160
1161 PG_RETURN_POINTER(g2);
1162}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
void lwgeom_set_geodetic(LWGEOM *geom, int value)
Set the FLAGS geodetic bit on geometry an all sub-geometries and pointlists.
void lwgeom_free(LWGEOM *geom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
LWGEOM * lwgeom_segmentize_sphere(const LWGEOM *lwg_in, double max_seg_length)
Derive a new geometry with vertices added to ensure no vertex is more than max_seg_length (in radians...