PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ shapetypename()

char* shapetypename ( int  num)

Definition at line 596 of file pgsql2shp-core.c.

References SHPT_ARC, SHPT_ARCM, SHPT_ARCZ, SHPT_MULTIPATCH, SHPT_MULTIPOINT, SHPT_MULTIPOINTM, SHPT_MULTIPOINTZ, SHPT_NULL, SHPT_POINT, SHPT_POINTM, SHPT_POINTZ, SHPT_POLYGON, SHPT_POLYGONM, and SHPT_POLYGONZ.

Referenced by main(), and pgui_action_export().

597 {
598  switch (num)
599  {
600  case SHPT_NULL:
601  return "Null Shape";
602  case SHPT_POINT:
603  return "Point";
604  case SHPT_ARC:
605  return "PolyLine";
606  case SHPT_POLYGON:
607  return "Polygon";
608  case SHPT_MULTIPOINT:
609  return "MultiPoint";
610  case SHPT_POINTZ:
611  return "PointZ";
612  case SHPT_ARCZ:
613  return "PolyLineZ";
614  case SHPT_POLYGONZ:
615  return "PolygonZ";
616  case SHPT_MULTIPOINTZ:
617  return "MultiPointZ";
618  case SHPT_POINTM:
619  return "PointM";
620  case SHPT_ARCM:
621  return "PolyLineM";
622  case SHPT_POLYGONM:
623  return "PolygonM";
624  case SHPT_MULTIPOINTM:
625  return "MultiPointM";
626  case SHPT_MULTIPATCH:
627  return "MultiPatch";
628  default:
629  return "Unknown";
630  }
631 }
#define SHPT_MULTIPATCH
Definition: shapefil.h:319
#define SHPT_ARCM
Definition: shapefil.h:316
#define SHPT_POLYGONM
Definition: shapefil.h:317
#define SHPT_MULTIPOINT
Definition: shapefil.h:310
#define SHPT_POLYGON
Definition: shapefil.h:309
#define SHPT_MULTIPOINTZ
Definition: shapefil.h:314
#define SHPT_ARCZ
Definition: shapefil.h:312
#define SHPT_MULTIPOINTM
Definition: shapefil.h:318
#define SHPT_POINTZ
Definition: shapefil.h:311
#define SHPT_POINTM
Definition: shapefil.h:315
#define SHPT_POLYGONZ
Definition: shapefil.h:313
#define SHPT_POINT
Definition: shapefil.h:307
#define SHPT_NULL
Definition: shapefil.h:306
#define SHPT_ARC
Definition: shapefil.h:308
Here is the caller graph for this function: