<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=iso-8859-1"><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:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Verdana",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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"><div class=WordSection1><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>Hello list,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>I would like to write centroid coordinates to a GRASS map table and export them along with one item (attribute) to CSV for further use outside GRASS.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>But v.to.db option=coor will no write all my coordinates. That is obviously because the map was created using dissolve, and the dissolve item (let’s call it >owner<) is sometimes duplicate in spatially distinct areas. One owner – many distinct areas. The dissolve process wrote duplicate CAT values in these cases, and v.to.db does not like those duplicates, so it will not write coordinates. Maybe all the areas of one owner are linked to one database record to represent them als multiparts. If this is the case, it would be very smart if GRASS would ask (while dissolving) if the user wants multiparts or not.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>Now I wonder how to overcome this. I tried to write new centroids to a second layer with new unique CATs (v.category option=add layer=2 and so on), but this layer has lost the owner item. I have no idea how to link back to the item because the link number CAT is new. <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>v.reclass also did not help me, because there is no item to base a reclassification on. Owner is duplicate as well as CAT is duplicate.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'>What is the best way to do this? Thanks for help.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;mso-fareast-language:DE'>Mit freundlichen Grüßen,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;font-variant:small-caps;mso-fareast-language:DE'>Uwe Fischer<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;mso-fareast-language:DE'><o:p> </o:p></span></p></div></body></html>