PostGIS  3.4.0dev-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:143
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:191
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:446

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

Referenced by ARRAY2GEOS(), ARRAY2LWGEOM(), 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_line_interpolate_point(), geography_line_locate_point(), geography_line_substring(), geography_perimeter(), geography_project(), geography_shortestline(), gserialized_cmp(), gserialized_datum_get_internals_p(), 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_collect(), LWGEOM_from_WKB(), LWGEOM_get_srid(), LWGEOM_line_interpolate_point(), pgis_union_geometry_array(), postgis_valid_typmod(), RASTER_asRaster(), RASTER_clip(), RASTER_getGeometryValues(), RASTER_getPixelValueResample(), RASTER_nearestValue(), RASTER_setPixelValuesGeomval(), ST_AsMARC21(), ST_LargestEmptyCircle(), ST_MaximumInscribedCircle(), ST_MinimumBoundingCircle(), ST_MinimumBoundingRadius(), ST_MinimumClearanceLine(), ST_OrientedEnvelope(), ST_ShapeGrid(), topologypreservesimplify(), transform(), and TWKBFromLWGEOM().

Here is the call graph for this function: