PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ SHPTypeName()

const char SHPAPI_CALL1* SHPTypeName ( int  nSHPType) const

Definition at line 2561 of file shpopen.c.

2564 {
2565  switch( nSHPType )
2566  {
2567  case SHPT_NULL:
2568  return "NullShape";
2569 
2570  case SHPT_POINT:
2571  return "Point";
2572 
2573  case SHPT_ARC:
2574  return "Arc";
2575 
2576  case SHPT_POLYGON:
2577  return "Polygon";
2578 
2579  case SHPT_MULTIPOINT:
2580  return "MultiPoint";
2581 
2582  case SHPT_POINTZ:
2583  return "PointZ";
2584 
2585  case SHPT_ARCZ:
2586  return "ArcZ";
2587 
2588  case SHPT_POLYGONZ:
2589  return "PolygonZ";
2590 
2591  case SHPT_MULTIPOINTZ:
2592  return "MultiPointZ";
2593 
2594  case SHPT_POINTM:
2595  return "PointM";
2596 
2597  case SHPT_ARCM:
2598  return "ArcM";
2599 
2600  case SHPT_POLYGONM:
2601  return "PolygonM";
2602 
2603  case SHPT_MULTIPOINTM:
2604  return "MultiPointM";
2605 
2606  case SHPT_MULTIPATCH:
2607  return "MultiPatch";
2608 
2609  default:
2610  return "UnknownShapeType";
2611  }
#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:1220

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: