Search USGSSearch

USGS · 70140586

An algorithm for locating candidate labeling boxes within a polygon

Abstract

Vector-based geographic information systems usually require annotation, such as a polygon number or attribute data, in a suitable location within a polygon. Traditional methods usually compute the polygon centroid, test the centroid for inclusion or exclusion, and select some alternative point when the centroid falls outside the polygon. Two problems are associated with this approach: (1) the text can be centered on the point, but may be placed in a visually awkward place, and (2) part of the text may fall outside the polygon and may overlap other polygon boundaries or other text labels. An algorithm is presented that circumvents both of these problems, by computing a number of horizontal candidate labeling rectangles (boxes) within a polygon from which a suitable selection can be made or from which one may conclude that the text label does not fit the polygon.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jan W. van Roessel. 2013-03-14. An algorithm for locating candidate labeling boxes within a polygon. https://doi.org/10.1559/152304089783814034

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related USGS reports

Preparation and Presentation of Digital Maps in Raster Format

A set of algorithms has been developed at USGS Flagstaff for displaying digital map data in raster format. The set includes: FILLIN, which assigns a specified attribute code to units of a map which have been outlined on a digitizer and converted to raster format; FILBND, which removes the outlines; ZIP, which adds patterns to the map units; and COLOR, which provides a simplified process for creating color separation plates for either photographic or lithographic reproduction. - Authors

American Cartographer

“Magnifying-Glass” Azimuthal Map Projections

For maps focusing on a region of interest, but including surrounding areas to provide a setting, new azimuthal projections have been developed with a 'magnifying-glass' effect. On two such projections, inside a circle bounding the region of interest is a standard Azimuthal Equidistant or Lambert Azimuthal Equal-Area projection. Between this circle and an outer bounding circle azimuths remain true and the radial or area scale, respectively, remains constant, but at a reduced value. On four other projections, the inner portion is a standard azimuthal projection, which may be Stereographic, Gnomonic, or the above, but beyond this portion, the radial scale is gradually reduced to zero. Equivalents with rectangular boundaries are also available.

American Cartographer

New equal-area map projections for noncircular regions

A series of new equal-area map projections has been devised. Called Oblated Equal-Area, its lines of constant distortion follow approximately oval or rectangular paths instead of the circles of the Lambert Azimuthal Equal-Area projection or the straight lines of the Cylindrical Equal-Area projection. The projection series permits design of equal-area maps of oblong regions with less overall distortion of shape and scale than equal-area maps on other projections.

American Cartographer