Next / Previous / Contents / TCC Help System / NM Tech homepage

52. anchorName(): Format a page anchor

The purpose of this static method is to build the name of the anchor (id value) for a primary index entry. The result is a string consisting of ANCHOR_PREFIX followed by the circle's lat-lon key as computed by Section 53, “latLonKey(): Generate the lat-lon key for a given circle”.

cbchistlib.py
# - - -   a n c h o r N a m e

def anchorName(circle):
    '''Generate the anchor (id) value for a given circle's center.
    '''
    return ANCHOR_PREFIX+latLonKey(circle)