PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_get_srid()

int32_t gserialized_get_srid ( const GSERIALIZED g)

Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function).

Definition at line 126 of file gserialized.c.

127 {
128  if (GFLAGS_GET_VERSION(g->gflags))
129  return gserialized2_get_srid(g);
130  else
131  return gserialized1_get_srid(g);
132 }
int32_t gserialized1_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
Definition: gserialized1.c:142
int32_t gserialized2_get_srid(const GSERIALIZED *g)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
Definition: gserialized2.c:190
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_get_srid(), and gserialized2_get_srid().

Referenced by ARRAY2GEOS(), ARRAY2LWGEOM(), boundary(), buffer(), convexhull(), geography_area(), geography_azimuth(), geography_distance(), geography_distance_knn(), geography_distance_tree(), geography_distance_uncached(), geography_dwithin(), geography_dwithin_uncached(), geography_length(), geography_perimeter(), geography_project(), gserialized_cmp(), gserialized_error_if_srid_mismatch(), gserialized_error_if_srid_mismatch_reference(), gserialized_get_sortable_hash(), LWGEOM_angle(), LWGEOM_asEncodedPolyline(), LWGEOM_asGeoJson(), LWGEOM_asGML(), LWGEOM_asKML(), LWGEOM_asX3D(), LWGEOM_collect(), LWGEOM_from_WKB(), LWGEOM_get_srid(), LWGEOM_line_interpolate_point(), LWGEOM_locate_between_m(), pgis_union_geometry_array(), POSTGIS2SFCGALPreparedGeometry(), postgis_valid_typmod(), RASTER_asRaster(), RASTER_clip(), RASTER_nearestValue(), RASTER_setPixelValuesGeomval(), sfcgal_approximate_medial_axis(), sfcgal_difference3D(), sfcgal_extrude(), sfcgal_force_lhr(), sfcgal_intersection3D(), sfcgal_minkowski_sum(), sfcgal_straight_skeleton(), sfcgal_tesselate(), sfcgal_union3D(), ST_ConstrainedDelaunayTriangles(), ST_MinimumBoundingCircle(), ST_MinimumBoundingRadius(), ST_MinimumClearanceLine(), ST_OrientedEnvelope(), topologypreservesimplify(), transform(), and TWKBFromLWGEOM().

Here is the call graph for this function: