Generate Lattice — Create a lattice of line segments in ESRI generate format



ca.spatial.gis.vector.GenerateLattice {west} {south} {height} {width} {rows} {cols} {outputFile}


If no arguments are provided, the program will display a prompt for input. Otherwise, the following table describes the required parameters.

westthe lowest x-value coordinate of the latticeNone
souththe lowest y-value coordinate of the latticeNone
columnWidththe width of segments in the latticeNone
rowHeightthe height of segments in the latticeNone
columnsthe number of lattice columns to be createdNone
rowsthe number of lattice rows to be createdNone


The GenerateLattice command will create a uniform set of rectangular and diagonal line segments. The set of segments will be written to an output file in ESRI generate format, suitable to be converted into a line coverage using the Arc/Info 'UNGENERATE' command.

The extent of the lattice starts at the south west corner as specified. The north east corner is determined by the column width, row height, number of columns and number of rows.

The Arc/Info tool box also has commands that can be used to generated a regular lattice of line segments. This command is useful because it will simultaneously generate horizontal, vertical and diagonal line segments in a pattern that provides good diagonal connectivity between intersections.

The lattice generated by this command is useful for filling in candidate tertiary road segments in a road segment datasets. The steps to follow would be:

  1. Generate a lattice covering the area of interest.

  2. Convert to a coverage and overlay with the existing road network

  3. Eliminate infeasible and redundant line segments (segments through lakes, or colinear with existing features).

Processing Notes

See Also

Build Road Segments


      java -jar patchworks.jar ca.spatial.gis.vector.GenerateLattice \
           100000 200000 600 600 100 100 roads.gen

In this example the GenerateLattice command will construct a lattice of line segments starting a lower left hand corner of 100000, 200000. The length of the segments will be 600m in both the horizontal and vertical directions. The command will generate 100 rows and columns, for a total coverage of 60000m by 60000m. The resulting data will be written to a file name 'roads.gen'.