<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Palatino Linotype";
panose-1:2 4 5 2 5 5 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Nur Text Zchn";
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:"Calibri",sans-serif;
mso-fareast-language:DE;}
span.E-MailFormatvorlage20
{mso-style-type:personal-compose;
font-family:"Palatino Linotype",serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif'>Hello list,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>I have a point feature layer with attributes for a text string (call it 'label') and the fontsize in map units (which are meters in my case).<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>Is there a way in Grass to derive polygons (like boundig boxes) from this input information which enclose the label string letter when those are used to label the points?<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>For those who know ArcMap: what I mean is exactly what happens when you export Annotation features as Shapes in ArcCatalog: you get a polygon layer in which each text string has a polygon hull which fits the height and width, respectively.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>From a developer, I heard that this can be done <b><u>d_get_text_bo</u></b>x from display library, which is not exposed to the end user.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>Since I am not a programmer, I am looking for help how to use d_get_text_box. My goal ist o integrate it in a simple Python script which I already have. This script can import Shapefiles, do simple GIS processing using GRASS modules and write the shapes back.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-US'>Of course, if coding is necessary to accomplish this, I will pay for it.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Palatino Linotype",serif'>thank you and best regards, Uwe<o:p></o:p></span></p></div></body></html>