Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • This should reveal the internal boundary lines.  (External boundary lines are deselected because they border the outside of the country and received a 'NULL' left polygon identifyier.  THIS WORDING CAN BE IMPROVED.)
  • Open the output polyline shapefile attribute table
  • Use the Field Calculator to calculate all the LEFT_Ax values (for the LEFT_Ax fileds recently added to the polyline shapefile ) equal to the coresponding administrative levels of the polygon shapefile.
Administrative levels in boundary polygon shapefileRequired
new fields in boundary polyline shapefile
calculations
Administrative level 0
AdmLevel (integer)

Administrative levels 0 and 1

polyline shapefile LEFT_A0

, RIGHT_A0 (text)

AdmLevel (integer)

= polygon shapefile Adm0code

polyline shapefile LEFT_A1 = polygon shapefile Adm1code

Administrative levels 0, 1, and 2

polyline shapefile LEFT_

A1, LEFT_A0, RIGHT_A0, RIGHT_A1 (text)AdmLevel (integer)

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_

A2,

A0 = polygon shapefile Adm0code

polyline shapefile LEFT_A1

, LEFT_A0, RIGHT_A0, RIGHT_A1, RIGHT_A2 (text)

AdmLevel (integer)

  • the LEFT_A2 = adm2code, that is, each LEFT_A2 value will be made equal to the adm2code of the joined input polygon shapefile feature.

Image Removed

...

= polygon shapefile Adm1code

polyline shapefile LEFT_A2 = polygon shapefile Adm2code

polyline shapefile LEFT_A3 = polygon shapefile Adm3code


Image Added

  • Close the attribute table, remove the join, and establish a new join basing on RIGHT_FID.  Anticipate all records matching.
  • This time there should be no need to make a definition query, as there should be no null values.
  • Open the output polyline shapefile attribute table.
  • Use the Field Calculator to calculate all the RIGHT_A2 = adm2code, RIGHT_A1 = adm1code, and RIGHT_A0 = adm0codeAx values (for the RIGHT_Ax fileds recently added to the polyline shapefile ) equal to the coresponding administrative levels of the polygon shapefile.
  • Create a definition query to select the line segments with different LEFT_A0 and RIGHT_A0 attributes.

  • 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']

...