PostGIS  2.2.7dev-r@@SVN_REVISION@@
static LWGEOM * lwgeom_locate_between_m ( LWGEOM lwin,
double  m0,
double  m1 
)
static

Definition at line 649 of file lwgeom_functions_lrs.c.

References COLLECTIONTYPE, LINETYPE, lwcollection_locate_between_m(), lwline_locate_between_m(), lwpoint_locate_between_m(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, POINTTYPE, POLYGONTYPE, and LWGEOM::type.

Referenced by lwcollection_locate_between_m(), and LWGEOM_locate_between_m().

650 {
651  POSTGIS_DEBUGF(2, "lwgeom_locate_between called for lwgeom %p", lwin);
652 
653  switch (lwin->type)
654  {
655  case POINTTYPE:
657  (LWPOINT *)lwin, m0, m1);
658  case LINETYPE:
660  (LWLINE *)lwin, m0, m1);
661 
662  case MULTIPOINTTYPE:
663  case MULTILINETYPE:
664  case COLLECTIONTYPE:
666  (LWCOLLECTION *)lwin, m0, m1);
667 
668  /* Polygon types are not supported */
669  case POLYGONTYPE:
670  case MULTIPOLYGONTYPE:
671  lwpgerror("Areal geometries are not supported by locate_between_measures");
672  return NULL;
673  }
674 
675  lwpgerror("Unkonwn geometry type (%s:%d)", __FILE__, __LINE__);
676  return NULL;
677 }
#define LINETYPE
Definition: liblwgeom.h:71
static LWGEOM * lwcollection_locate_between_m(LWCOLLECTION *lwcoll, double m0, double m1)
#define POLYGONTYPE
Definition: liblwgeom.h:72
#define MULTIPOINTTYPE
Definition: liblwgeom.h:73
static LWGEOM * lwline_locate_between_m(LWLINE *lwline_in, double m0, double m1)
static LWGEOM * lwpoint_locate_between_m(LWPOINT *lwpoint, double m0, double m1)
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:75
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:70
uint8_t type
Definition: liblwgeom.h:380
#define MULTILINETYPE
Definition: liblwgeom.h:74
#define COLLECTIONTYPE
Definition: liblwgeom.h:76

Here is the call graph for this function:

Here is the caller graph for this function: