PostGIS  2.1.10dev-r@@SVN_REVISION@@
const char SHPAPI_CALL1* SHPTypeName ( int  nSHPType)

Definition at line 2093 of file shpopen.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_import().

2095 {
2096  switch( nSHPType )
2097  {
2098  case SHPT_NULL:
2099  return "NullShape";
2100 
2101  case SHPT_POINT:
2102  return "Point";
2103 
2104  case SHPT_ARC:
2105  return "Arc";
2106 
2107  case SHPT_POLYGON:
2108  return "Polygon";
2109 
2110  case SHPT_MULTIPOINT:
2111  return "MultiPoint";
2112 
2113  case SHPT_POINTZ:
2114  return "PointZ";
2115 
2116  case SHPT_ARCZ:
2117  return "ArcZ";
2118 
2119  case SHPT_POLYGONZ:
2120  return "PolygonZ";
2121 
2122  case SHPT_MULTIPOINTZ:
2123  return "MultiPointZ";
2124 
2125  case SHPT_POINTM:
2126  return "PointM";
2127 
2128  case SHPT_ARCM:
2129  return "ArcM";
2130 
2131  case SHPT_POLYGONM:
2132  return "PolygonM";
2133 
2134  case SHPT_MULTIPOINTM:
2135  return "MultiPointM";
2136 
2137  case SHPT_MULTIPATCH:
2138  return "MultiPatch";
2139 
2140  default:
2141  return "UnknownShapeType";
2142  }
#define SHPT_MULTIPATCH
Definition: shapefil.h:320
#define SHPT_ARCM
Definition: shapefil.h:317
#define SHPT_POLYGONM
Definition: shapefil.h:318
#define SHPT_MULTIPOINT
Definition: shapefil.h:311
#define SHPT_POLYGON
Definition: shapefil.h:310
#define SHPT_MULTIPOINTZ
Definition: shapefil.h:315
#define SHPT_ARCZ
Definition: shapefil.h:313
psObject nSHPType
Definition: shpopen.c:1048
#define SHPT_MULTIPOINTM
Definition: shapefil.h:319
#define SHPT_POINTZ
Definition: shapefil.h:312
#define SHPT_POINTM
Definition: shapefil.h:316
#define SHPT_POLYGONZ
Definition: shapefil.h:314
#define SHPT_POINT
Definition: shapefil.h:308
#define SHPT_NULL
Definition: shapefil.h:307
#define SHPT_ARC
Definition: shapefil.h:309

Here is the caller graph for this function: