PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_to_encoded_polyline()

char* lwgeom_to_encoded_polyline ( const LWGEOM geom,
int  precision 
)

Definition at line 35 of file lwout_encoded_polyline.c.

References LINETYPE, lwerror(), lwline_to_encoded_polyline(), lwmmpoint_to_encoded_polyline(), lwtype_name(), MULTIPOINTTYPE, ovdump::type, and LWGEOM::type.

Referenced by do_encoded_polyline_test(), and LWGEOM_asEncodedPolyline().

36 {
37  int type = geom->type;
38  switch (type)
39  {
40  case LINETYPE:
42  case MULTIPOINTTYPE:
44  default:
45  lwerror("lwgeom_to_encoded_polyline: '%s' geometry type not supported",
46  lwtype_name(type));
47  return NULL;
48  }
49 }
#define LINETYPE
Definition: liblwgeom.h:86
#define MULTIPOINTTYPE
Definition: liblwgeom.h:88
static char * lwline_to_encoded_polyline(const LWLINE *, int precision)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:218
static char * lwmmpoint_to_encoded_polyline(const LWMPOINT *, int precision)
uint8_t precision
Definition: cu_in_twkb.c:25
uint8_t type
Definition: liblwgeom.h:396
type
Definition: ovdump.py:41
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
Here is the call graph for this function:
Here is the caller graph for this function: