PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ SHPTypeName()

const char SHPAPI_CALL1* SHPTypeName ( int  nSHPType)

Definition at line 2091 of file shpopen.c.

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

References nSHPType, 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 pgui_action_import().

Here is the caller graph for this function: