<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <DEFANGED_meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hiello everybody,<br>
<br>
I'm trying to&nbsp; write a code to create a point map (in 5.7 version) with
6 field but I have some great doubt.....<br>
I guess I have to create 1 coor file with 6 fields (columns) like this:<br>
<br>
<small><font face="Helvetica, Arial, sans-serif">point_id | x | y | z |
field_1 | field_2 | ....... | field_6<br>
</font></small><br>
and 6 tables with attributes: one for every field.......<br>
<br>
<small><font face="Helvetica, Arial, sans-serif">table for field_1:<br>
cat | attribute_1 | attribute_2 | ........ | attribute_n<br>
<br>
table for field_2:<br>
cat | attribute_1 | attribute_2 | ........ | attribute_n<br>
<br>
etc.....</font></small><br>
<br>
my question are:<br>
<br>
with the following code do I create a <font face="Georgia"><font
 face="Helvetica, Arial, sans-serif"><small>field_info struct for the
field_1 or with 1 field?<br>
</small><small>Fi = Vect_default_field_info ( &amp;Map, 1, NULL,
GV_1TABLE );<br>
<br>
and with the foolowing code do I create the table for field_1 (</small></font></font><small><font
 face="Helvetica, Arial, sans-serif">
cat | attribute_1 </font></small><small><font
 face="Helvetica, Arial, sans-serif"> | attribute_2 </font></small><small><font
 face="Helvetica, Arial, sans-serif">) </font></small><font
 face="Georgia"><font face="Helvetica, Arial, sans-serif"><small>?</small></font><font
 face="Helvetica, Arial, sans-serif"><br>
<br>
<big><big><small><small><small>db_zero_string (&amp;sql);<br>
sprintf ( buf, "create table %s ( cat integer", Fi-&gt;table );<br>
db_append_string ( &amp;sql, buf );<br>
db_append_string ( &amp;sql, ", attribute_1integer" );<br>
sprintf ( buf, ", attribute_2 varchar(%d)", clen );<br>
db_append_string ( &amp;sql, buf );<br>
db_append_string ( &amp;sql, ")" );<br>
</small></small></small></big></big></font></font><br>
Thanks you for the future response and for any suggestion/help.......<br>
Maxi<br>
<br>
<div class="moz-signature">-- <br>
<DEFANGED_meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Signature</title>
<span DEFANGED_STYLE="color: rgb(102, 102, 102);">_____________________________________________________
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<span DEFANGED_STYLE="color: rgb(102, 102, 102);">Ing. Massimiliano Cannata
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<span DEFANGED_STYLE="color: rgb(102, 102, 102);">SUPSI - Istituto Scienze della
Terra
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<span DEFANGED_STYLE="color: rgb(102, 102, 102);">C.P. 72 - CH-6952 Canobbio
(Ticino, Switzerland)
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<span DEFANGED_STYLE="color: rgb(102, 102, 102);">Tel +41 (0)91 935 12 25 - Fax
+41 (0)91 935 12 09
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<a class="moz-txt-link-freetext"
 href="mailto:massimiliano.cannata@supsi.ch"
 DEFANGED_STYLE="color: rgb(102, 102, 102);">mailto:massimiliano.cannata@supsi.ch</a><span
 style="color: rgb(102, 102, 102);">
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<a class="moz-txt-link-freetext" href="http://www.ist.supsi.ch"
 DEFANGED_STYLE="color: rgb(102, 102, 102);">http://www.ist.supsi.ch</a><span
 style="color: rgb(102, 102, 102);">
</span><br DEFANGED_STYLE="color: rgb(102, 102, 102);">
<br>
</div>
</body>
</html>