From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Shapefile" |
|---|
| claim | "Shapefile shape type codes: 0 Null, 1 Point, 3 PolyLine (arc), 5 Polygon, 8 MultiPoint, 11 PointZ, 13 PolyLineZ, 15 PolygonZ, 18 MultiPointZ, 21 PointM, 23 PolyLineM, 25 PolygonM, 28 MultiPointM, 31 MultiPatch. Codes 2, 4, 6, 7, 9, 10 are unused. shapelib's .shx restore routine (rebuilding a missing index by walking the .shp) rejects a record whose type is not one of these." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Shapefile" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SHPT" |
|---|
| underlying_type | "int32_t" |
|---|
| values | | 0 | "SHPT_NULL" |
|---|
| 1 | "SHPT_POINT" |
|---|
| 3 | "SHPT_ARC" |
|---|
| 5 | "SHPT_POLYGON" |
|---|
| 8 | "SHPT_MULTIPOINT" |
|---|
| 11 | "SHPT_POINTZ" |
|---|
| 13 | "SHPT_ARCZ" |
|---|
| 15 | "SHPT_POLYGONZ" |
|---|
| 18 | "SHPT_MULTIPOINTZ" |
|---|
| 21 | "SHPT_POINTM" |
|---|
| 23 | "SHPT_ARCM" |
|---|
| 25 | "SHPT_POLYGONM" |
|---|
| 28 | "SHPT_MULTIPOINTM" |
|---|
| 31 | "SHPT_MULTIPATCH" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read the SHPT_* defines; the allowed list is checked in shpopen.c lines 820-828, inside the routine that restores the .shx from the .shp (nRecordLength is the record content length, sanity-checked just before)." |
|---|
| repo | "https://github.com/OSGeo/shapelib" |
|---|
| commit | "6e3ac42088274d3a68c0c35aa42e0ddf7f80104e" |
|---|
| path | "shapefil.h" |
|---|
| lines | "206-219" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Shape types" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T04:55:06.132Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:04:23.427Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read shapelib shapefil.h at 6e3ac4208827 lines 206-219: the 14 SHPT_* codes equal the fact. The shpopen.c restore-routine remark was not read." |
|---|
|
|
|---|