One of the desirable features for COD-AB datasets is a line shapefile with codes designating the administrative level of each line segment i.e., '0' representing international borders (but '99' representing coastlines), '1' representing lines between distinct administrative level 1 units, etc. These files are necessary for the best cartographic symbology so that, for instance, they avoid an administrative level 2 boundary symbol appearing along an international border. ITOS makes these line shapefiles when they process your countries but if you are not yet ITOS processed you can also make them yourself with these instructions
The process may be unnecessary for island, landlocked, or enclave countries containing only administrative level 0 polygons because all boundary lines will have the same status but it may still be useful for consistency and differentiating international borders from coastlines. The process is advised for all other countries for proper cartography.
Add the steps involved:
Run the ArcGIS ‘Polygon to Polyline’ tool (Toolbox > Data Management Tools > Features > Polygon To Line) with: "Input Features" = (input polygon shapefile); "Output Feature Class" = (as desired); "Identify and store polygon neighboring information (optional)" selected; and all environment settings set as default.
Example Polygon To Line output
This will create lines that close all polygons - one line per polygon.
Step 2: Run the ‘Clean PolyLine Layer’ tool
The remaining processes are completed in ArcGIS, regardless of whether ArcGIS or ET GeoWizards was used for the creation of the line shapefile.
Administrative levels in boundary polygon shapefile | Required new fields in boundary polyline shapefile |
---|---|
Administrative level 0 | AdmLevel (integer) |
Administrative levels 0 and 1 | LEFT_A0, RIGHT_A0 (text) AdmLevel (integer) |
Administrative levels 0, 1, and 2 | LEFT_A1, LEFT_A0, RIGHT_A0, RIGHT_A1 (text) AdmLevel (integer) |
Administrative levels 0, 1, 2, and 3 | LEFT_A2, LEFT_A1, LEFT_A0, RIGHT_A0, RIGHT_A1, RIGHT_A2 (text) AdmLevel (integer) |
Administrative levels in boundary polygon shapefile | Required calculations |
---|---|
Administrative level 0 | |
Administrative levels 0 and 1 | polyline shapefile LEFT_A0 = polygon shapefile Adm0code polyline shapefile LEFT_A1 = polygon shapefile Adm1code |
Administrative levels 0, 1, and 2 | polyline shapefile LEFT_A0 = polygon shapefile Adm0code polyline shapefile LEFT_A1 = polygon shapefile Adm1code polyline shapefile LEFT_A2 = polygon shapefile Adm2code |
Administrative levels 0, 1, 2, and 3 | polyline shapefile LEFT_A0 = polygon shapefile Adm0code polyline shapefile LEFT_A1 = polygon shapefile Adm1code polyline shapefile LEFT_A2 = polygon shapefile Adm2code polyline shapefile LEFT_A3 = polygon shapefile Adm3code |
Administrative levels in boundary polygon shapefile | Required calculations |
---|---|
Administrative level 0 | |
Administrative levels 0 and 1 | polyline shapefile RIGHT_A0 = polygon shapefile Adm0code polyline shapefile RIGHT_A1 = polygon shapefile Adm1code |
Administrative levels 0, 1, and 2 | polyline shapefile RIGHT_A0 = polygon shapefile Adm0code polyline shapefile RIGHT_A1 = polygon shapefile Adm1code polyline shapefile RIGHT_A2 = polygon shapefile Adm2code |
Administrative levels 0, 1, 2, and 3 | polyline shapefile RIGHT_A0 = polygon shapefile Adm0code polyline shapefile RIGHT_A1 = polygon shapefile Adm1code polyline shapefile RIGHT_A2 = polygon shapefile Adm2code polyline shapefile RIGHT_A3 = polygon shapefile Adm3code |
[IF THIS DOES NOT WORK, ENTER ' "LEFT_A0" IS NULL']
TIP: Displaying the input polygon shapefile can suggest the location of individual line shapefile segments, which makes them easier to select. |
---|
TIP: For complex cases, select and calculate the line segments in sections. Establish line symbology that clearly distinguishes the calculated segments. |
---|
Check carefully for discontinuities
Explanation: LEFT_A0 = RIGHT_A0 and LEFT_A1 <> RIGHT_A1 will find the lines that not administrative level 0 borders (either shorelines or international borders) but are separating administrative level 1 units |
---|
In this map the administrative level 1 polygons are shaded to show that the lines separate administrative level 1 units. |
Set a definition query for LEFT_A1 = RIGHT_A1 and LEFT_A2 <> RIGHT_A2; calculate AdminLevel = 2.
In this map the administrative level 1 polygons are coloured to show that the lines are only inside the polygons |
---|
Set a definition query for LEFT_A2 = RIGHT_A2; calculate AdminLevel = 3.
Explanation |
---|
International borders and shorelines Administrative level 1 lines: Administrative level 2 lines Administrative level 3 lines |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|
PREREQUISITE:
|