...
INSERT EXAMPLE
Table of Contents
STEP 1: Create the polyline shapefile.
The goal is to create a shapefile with individual line features between nodes and left and right polygon identifiers. (Polygon shapefile exterior features have their left polygon identified as '-1'.) This process is discussed below for four software environments.
...
The remaining processes are completed in ArcGIS, regardless of the software environment used above.
STEP 2: PREPARE THE P-CODE FIELDS IN THE POLYLINE SHAPEFILE
- Add fields to the output boundary polyline shapefile as follows:
...
- Verify that the AdmLevel values have all been set to zero. Calculate them to zero if they are not.
STEP 3: POPULATE THE POLYLINE P-CODE FIELDS
- Right-click the polyline shapefile > "Joins & Relates" > "Join..." (or properties > Joins & Relates) and provide the Join Data as follows:
- "What do you want to join to this layer?" = Join attributes from a table
- "Choose the field in this layer that the join will be based on:" = LEFT_FID
- "Choose the table to join to this layer, or load the table from disk:" = (the input polygon shapefile)
- "Choose the field in the table to base the join on:" = OBJECTID (or FID)
- Select "Keep only matching records". These will be the line features that are not boarding the sea or a neighboring country.
...
Administrative levels in boundary polygon shapefile | Required calculations |
---|---|
Administrative levels 0 and 1 | polyline shapefile RIGHT_A0 = polygon shapefile ADM0_PCODE |
Administrative levels 0, 1, and 2 | polyline shapefile RIGHT_A0 = polygon shapefile ADM0_PCODE polyline shapefile RIGHT_A1 = polygon shapefile ADM1_PCODE |
Administrative levels 0, 1, 2, and 3 | polyline shapefile RIGHT_A0 = polygon shapefile ADM0_PCODE polyline shapefile RIGHT_A1 = polygon shapefile ADM1_PCODE polyline shapefile RIGHT_A2 = polygon shapefile ADM2_PCODE |
- Remove all joins
STEP 4: CALCULATE THE ADMINISTRATION LEVELS
ADMINISTRATIVE LEVEL 0
- Open attribute table and calculate AdminLevel = 0 for all features. (Higher administrative level features will be adjusted later.)
Recall that shoreline features need to be coded specially as '99'. If the country has a shoreline follow the SHORELINE TREATMENT steps.
SHORELINE TREATMENT
- Open an editing session for the line shapefile.
- Manually select line segments that represent shorelines (splitting line segments where an international border meets the water). It may be useful to add a world country layer or neighboring country layers.
...
Check carefully for discontinuities
HIGHER ADMINISTRATIVE LEVELS
Administrative level 1
Set a definition query for LEFT_A0 = RIGHT_A0 and LEFT_A1 <> RIGHT_A1.
...
Explanation |
---|
International borders and shorelines Administrative level 1 lines: Administrative level 2 lines Administrative level 3 lines |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...