SYSTEM AND METHOD FOR LABELING MAPS
First Claim
1. A method utilizing a computer system for generating a solution for determining a fraction of a label area, of a label, that is within a boundary of a map, if the label is not wholly within the boundary of the map, comprising the computer implemented steps of:
- circumscribing a rectangle around a boundary of the label;
dividing the rectangle into a n by m grid of sub-rectangles;
testing a centroid of each sub-rectangle to determine if the sub-rectangle centroid is inside the label;
testing, if the centroid is inside the label, if the centroid is inside the boundary of the map;
dividing the number of centroids both inside the label and inside the boundary of the map by the number inside the label;
and thenoutputting the solution to a caller.
0 Assignments
0 Petitions
Accused Products
Abstract
A system and method for label placement is disclosed that achieves the twin goals of practical efficiency and high labeling quality by employing cartographic heuristics. A caller defines map and label properties. Then labels are pulled within a map boundary. Labels are next ordered by priority in descending importance. The order of testing labels is determined. Attempts are made to move overlapping labels. This is an iterative process; therefore there must be criteria that halt the procedure. Upon reaching an acceptable solution, the label properties are adjusted to reflect the new label placements.
-
Citations
9 Claims
-
1. A method utilizing a computer system for generating a solution for determining a fraction of a label area, of a label, that is within a boundary of a map, if the label is not wholly within the boundary of the map, comprising the computer implemented steps of:
-
circumscribing a rectangle around a boundary of the label; dividing the rectangle into a n by m grid of sub-rectangles; testing a centroid of each sub-rectangle to determine if the sub-rectangle centroid is inside the label; testing, if the centroid is inside the label, if the centroid is inside the boundary of the map; dividing the number of centroids both inside the label and inside the boundary of the map by the number inside the label; and then outputting the solution to a caller. - View Dependent Claims (2, 3, 7, 8, 9)
-
-
4. A computer system for generating a solution for determining a fraction of a label area that is within a boundary of a map, if a label is not wholly within the boundary, said computer system comprising:
-
input means for inputting map data and label data; memory means for storing the solution; processor means responsive to a control program for generating digital signals corresponding to the solution, the processor means being adapted to; circumscribing a rectangle around a boundary of the label; dividing the rectangle into a n by m grid of sub-rectangles; testing a centroid of each sub-rectangle to determine if the sub-rectangle centroid is inside the label; testing, if the centroid is inside the label, if the centroid is inside the boundary of the map; dividing the number of centroids both inside the label and inside the boundary of the map by the number inside the label; and then outputting the solution to the memory means. - View Dependent Claims (5, 6)
-
Specification