USGS Science⌕ Search

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↗

Processing techniques for the production of an experimental computer-generated shaded-relief map

An experimental computer-generated shaded-relief map of a topographic quadrangle of Nome, Alaska, at 1:1,000,000 scale was created to demonstrate current capabilities of map production. This paper describes the techniques used to produce the map product. The data consisted of forty-eight 1° by 1° blocks of resampled digital elevation model (DEM) data. These data were digitally mosaicked and assigned colors based on intervals of elevation values. The color-coded data set was then used to create a shaded-relief image that was photographically composited with cartographic line information to produce a shaded-relief map. The majority of the processing was completed at the National Mapping Division EROS Data Center in Sioux Falls, South Dakota.

Alaska↗

“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↗