×

Polygon labeling by dominant shapes

  • US 10,204,431 B1
  • Filed: 07/15/2014
  • Issued: 02/12/2019
  • Est. Priority Date: 07/15/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for generating label positions for labeling polygons, the method comprising:

  • receiving, by one or more processors, a description of a polygon;

    generating, by the one or more processors, a Voronoi diagram based on vertices of the polygon,determining, by the one or more processors, a substantially largest inscribed circle that fits within the polygon based on the Voronoi diagram, including;

    calculating a respective radius of each of a plurality of segments of the Voronoi diagram that is enclosed within a boundary of the polygon, andselecting a largest radius from among the calculated radii, wherein the largest radius is a radius of the substantially largest inscribed circle;

    determining, by the one or more processors based on the Voronoi diagram, a single-branch shape that fits completely within the polygon, wherein a centerline of the single-branch shape is a polyline that has;

    (i) only one branch, and (ii) a largest coverage of the polygon;

    generating, by the one or more processors, an indication of a first candidate label position, based on the inscribed circle;

    generating, by the one or more processors, an indication of a second candidate label position, based on the centerline; and

    providing, by the one or more processors, the indication of the first candidate label position and the indication of the second candidate label position to a rendering component for positioning a label for the polygon in accordance with at least one of the first candidate label position and the second candidate label position.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×