I was wondering if anyone knew the math involved, or resources for learning the math involved, in finding the ideal position, scale, and rotation of a label for a line or polygon on a map?
The most I've got so far is finding the centroid for a polygon (though it's not ideal for concave polygons).