P-codes
Overview
P-codes (Place codes) are unique geographic identification codes, usually represented by combinations of letters and numbers to identify a specific place, point, positional location or feature on a map or within a database. There is only be only one P-code per administrative unit.
P-codes are used consistently within COD-AB, COD-EM, COD-PS, and some COD-CS datasets. Gazetteers, or tables of P-codes and associated feature names are therefore provided as spreadsheet resources in these COD datasets. (The spreadsheet file name may be similar to “ken_adminboundaries_tabulardata.xlsx” or “ken_admgz.xlsx”.)
Typical applications of P-codes:
Linkages between a COD-AB (or COD-EM) and its associated COD-PS
Linkages between a COD-AB (or COD-EM), or COD-PS and another, non-COD dataset
Linkages between two or more non-COD datasets
As a taxonomic framework for a new non-COD dataset - for example, a new assessment.
P-codeP-codes are required and used at the very start of an emergency and throughout the response. P-codes help with data coordination and provide the framework for most data collection, processing, analysis, and visualization. For instance, P-codes/names are used to create the 3W and monitoring data collection frameworks. They are used to help process data such as when processing country-specific CODs (COD-CS) datasets (e.g., assigning P-codes to school locations). P-codes are used for analysis such as a prioritization matrix or a vulnerability matrix. P-codes are also used to visualize humanitarian data in maps and charts as seen in HDX, Snapshots, Bulletins, HNOs, etc.).
How P-codes are used in humanitarian preparedness and response
The unique ID can be used to different places with the same name
P-code and names are used in data collection tools (e.g., 3W, RPM)
Used to amalgamate data from different sources
Used as a dimension for analysis (e.g., geographic severity, priority etc.)
Can be applied to other datasets so that their geographic location is known if it is a spatial file
P-coding principles and standards
P-codes are established by Country or Regional Offices, with the support of FIS, in consultation with the relevant Information Management Working Group.
Any existing P-coding system is used or incorporated. (If there is an existing numeric system, for instance, it contribute to the numeric component of a new alphanumeric P-coding system.)
P-codes begin with an alphabetic country code, generally derived from the ISO 3166 country codes - usually the two-character code but occasionally the three-character code. Thus the administrative level 0 (country or territory) code is the alphabetical country code alone. This forces any P-code to be recognized as text rather than a number, which has the advantage of being sure that leading zeroes are not dropped and reduces the risk of database key incompatibility, and prevents mathematical modification. The country code is also useful if CODs are ever merged into one database as it will ensure P-code uniqueness.
P-codes are unique within their country and world-wide.
Additional administrative levels usually add numerical components. The number of digits assigned to each administrative level may vary by country but is consistent within each country. Examples of real administrative level 0 to 2 P-codes from different countries:
Country or territory | Administrative level 0 (ADM0) P-code example |
---|