PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_error_if_srid_mismatch()

void gserialized_error_if_srid_mismatch ( const GSERIALIZED g1,
const GSERIALIZED g2,
const char *  funcname 
)

Definition at line 404 of file gserialized.c.

405 {
406  int32_t srid1 = gserialized_get_srid(g1);
407  int32_t srid2 = gserialized_get_srid(g2);
408  if (srid1 != srid2)
409  lwerror("%s: Operation on mixed SRID geometries (%s, %d) != (%s, %d)",
410  funcname,
412  srid1,
414  srid2);
415 }
uint32_t gserialized1_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition: gserialized1.c:131
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: gserialized.c:126
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition: gserialized.c:89
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:216
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190

References gserialized1_get_type(), gserialized_get_srid(), gserialized_get_type(), lwerror(), and lwtype_name().

Referenced by BOX2D_construct(), BOX3D_construct(), contains(), containsproperly(), coveredby(), covers(), crosses(), disjoint(), geography_coveredby(), geography_covers(), geography_distance(), geography_distance_knn(), geography_distance_tree(), geography_distance_uncached(), geography_dwithin(), geography_dwithin_uncached(), geometry_distance_spheroid(), LWGEOM_closestpoint(), LWGEOM_closestpoint3d(), LWGEOM_collect(), LWGEOM_dfullywithin(), LWGEOM_dfullywithin3d(), LWGEOM_dwithin(), LWGEOM_dwithin3d(), LWGEOM_line_locate_point(), LWGEOM_longestline2d(), LWGEOM_longestline3d(), LWGEOM_makeline(), LWGEOM_maxdistance2d_linestring(), LWGEOM_maxdistance3d(), LWGEOM_shortestline2d(), LWGEOM_shortestline3d(), optimistic_overlap(), overlaps(), relate_full(), relate_pattern(), ST_3DDistance(), ST_3DIntersects(), ST_Distance(), ST_Equals(), ST_InterpolatePoint(), ST_Intersects(), ST_LineCrossingDirection(), ST_Split(), and touches().

Here is the call graph for this function:
Here is the caller graph for this function: