PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ SHPTypeName()

const char SHPAPI_CALL1* SHPTypeName ( int  nSHPType) const

Definition at line 2552 of file shpopen.c.

2555 {
2556  switch( nSHPType )
2557  {
2558  case SHPT_NULL:
2559  return "NullShape";
2560 
2561  case SHPT_POINT:
2562  return "Point";
2563 
2564  case SHPT_ARC:
2565  return "Arc";
2566 
2567  case SHPT_POLYGON:
2568  return "Polygon";
2569 
2570  case SHPT_MULTIPOINT:
2571  return "MultiPoint";
2572 
2573  case SHPT_POINTZ:
2574  return "PointZ";
2575 
2576  case SHPT_ARCZ:
2577  return "ArcZ";
2578 
2579  case SHPT_POLYGONZ:
2580  return "PolygonZ";
2581 
2582  case SHPT_MULTIPOINTZ:
2583  return "MultiPointZ";
2584 
2585  case SHPT_POINTM:
2586  return "PointM";
2587 
2588  case SHPT_ARCM:
2589  return "ArcM";
2590 
2591  case SHPT_POLYGONM:
2592  return "PolygonM";
2593 
2594  case SHPT_MULTIPOINTM:
2595  return "MultiPointM";
2596 
2597  case SHPT_MULTIPATCH:
2598  return "MultiPatch";
2599 
2600  default:
2601  return "UnknownShapeType";
2602  }
#define SHPT_ARCZ
Definition: shapefil.h:354
#define SHPT_MULTIPATCH
Definition: shapefil.h:361
#define SHPT_NULL
Definition: shapefil.h:348
#define SHPT_ARCM
Definition: shapefil.h:358
#define SHPT_POLYGONM
Definition: shapefil.h:359
#define SHPT_ARC
Definition: shapefil.h:350
#define SHPT_POLYGON
Definition: shapefil.h:351
#define SHPT_MULTIPOINT
Definition: shapefil.h:352
#define SHPT_POINTZ
Definition: shapefil.h:353
#define SHPT_MULTIPOINTZ
Definition: shapefil.h:356
#define SHPT_MULTIPOINTM
Definition: shapefil.h:360
#define SHPT_POINTM
Definition: shapefil.h:357
#define SHPT_POINT
Definition: shapefil.h:349
#define SHPT_POLYGONZ
Definition: shapefil.h:355
psObject nSHPType
Definition: shpopen.c:1211

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: