PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ shapetypename()

char* shapetypename ( int  num)

Definition at line 584 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().

585 {
586  switch (num)
587  {
588  case SHPT_NULL:
589  return "Null Shape";
590  case SHPT_POINT:
591  return "Point";
592  case SHPT_ARC:
593  return "PolyLine";
594  case SHPT_POLYGON:
595  return "Polygon";
596  case SHPT_MULTIPOINT:
597  return "MultiPoint";
598  case SHPT_POINTZ:
599  return "PointZ";
600  case SHPT_ARCZ:
601  return "PolyLineZ";
602  case SHPT_POLYGONZ:
603  return "PolygonZ";
604  case SHPT_MULTIPOINTZ:
605  return "MultiPointZ";
606  case SHPT_POINTM:
607  return "PointM";
608  case SHPT_ARCM:
609  return "PolyLineM";
610  case SHPT_POLYGONM:
611  return "PolygonM";
612  case SHPT_MULTIPOINTM:
613  return "MultiPointM";
614  case SHPT_MULTIPATCH:
615  return "MultiPatch";
616  default:
617  return "Unknown";
618  }
619 }
#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: