<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="EN-AU" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Brent,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I think that is the way that I have to go. I was hoping that it would be a good use of the Modeller</span><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt">Johanna Botman<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Assets / GIS Officer – Melton City Council<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Brent Wood <Brent.Wood@niwa.co.nz>
<br>
<b>Sent:</b> Wednesday, 9 March 2022 10:50 AM<br>
<b>To:</b> qgis-user@lists.osgeo.org; Johanna Botman <johannab@melton.vic.gov.au><br>
<b>Subject:</b> Re: Model Designer - GDAL - Vector Conversion<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:#212121">You don't often get email from brent.wood@niwa.co.nz.
<a href="http://aka.ms/LearnAboutSenderIdentification">Learn why this is important</a><o:p></o:p></span></p>
</div>
</td>
<td width="75" style="width:56.25pt;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 3.75pt;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Have you considered a script or batch file using ogr2ogr to do this for you?<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper">
<div>
<div>
<p class="MsoNormal">Brent Wood<br>
<br>
Principal Technician, Fisheries<br>
NIWA<br>
DDI: +64 (4) 3860529<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Qgis-user <qgis-user-bounces@lists.osgeo.org> on behalf of Johanna Botman via Qgis-user <qgis-user@lists.osgeo.org><br>
<b>Sent:</b> Wednesday, March 9, 2022 12:41<br>
<b>To:</b> qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br>
<b>Subject:</b> [Qgis-user] Model Designer - GDAL - Vector Conversion</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal">I am trying to use the Model Designer to automate the creation of Tab files from SQL Database Tables.<o:p></o:p></p>
<p class="xmsonormal">I am using GDAL – Vector Conversion – Convert format<o:p></o:p></p>
<p class="xmsonormal">The resulting Tab file is missing the Primary Key field.<o:p></o:p></p>
<p class="xmsonormal">If use that same algorithm to export to a Geopackage, the PK is there.<o:p></o:p></p>
<p class="xmsonormal">I know that I can right click the SQL Table and select Export. That Tab file contains the PK. I need to export 30 tables so am looking for some automation.<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Why does the algorithm produce a table without the key field?<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"><b><span style="font-size:12.0pt"> </span></b><o:p></o:p></p>
<p class="xmsonormal"><b><span style="font-size:12.0pt"> </span></b><o:p></o:p></p>
<p class="xmsonormal"><b><span style="font-size:12.0pt">Johanna Botman</span></b><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Assets / GIS Officer – Melton City Council<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Arial",sans-serif;color:#1F497D">
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Arial",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
</div>
<p><br>
***********************************************************************************<br>
The information in this message is privileged and confidential, intended only for the use of the individual or entity named above. If you are not the intended recipient you are hereby notified to delete the message and that any dissemination, copying or use
of its content is strictly prohibited. If you have received this message in error please notify the Melton City Council.<br>
***********************************************************************************<o:p></o:p></p>
</div>
<table class="MsoNormalTable" border="0" cellspacing="20" cellpadding="0" width="600" style="width:450.0pt">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.niwa.co.nz%2F&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=VSV7IfG5u91AGnLYvr8ylQmjLpgHhJ%2BW3NibjZKF37k%3D&reserved=0"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" style="width:1.0416in;height:1.0416in" id="Picture_x0020_2" src="cid:~WRD0001.jpg" alt="Image removed by sender."></span></a><span style="font-size:8.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellpadding="0" width="500" style="width:375.0pt">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">Brent Wood <br>
<span style="color:#1793D2">Principal Technician - GIS and Spatial Data Management</span><br>
<span style="color:#1793D2">Programme Leader - Environmental Information Delivery</span><br>
+64-4-386-0529<br>
<br>
National Institute of Water & Atmospheric Research Ltd (NIWA)<br>
301 Evans Bay Parade Hataitai Wellington New Zealand<br>
<b>Connect with NIWA:</b> <a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.niwa.co.nz%2F&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=VSV7IfG5u91AGnLYvr8ylQmjLpgHhJ%2BW3NibjZKF37k%3D&reserved=0">
niwa.co.nz</a> <a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnzniwa&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=DLCcu%2FD09Mf2yorZo7IUo3TJ2BtuAZrVsCPiTUL%2BeMc%3D&reserved=0">
Facebook</a> <a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fniwa&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=51IDCM2rd5aubYCqFtEd0oScjzUTOARrfFrctXT%2BakU%3D&reserved=0">
LinkedIn</a> <a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fniwa_nz&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=qJOa9nDthJ6VOixtl%2B47cXTAjQVvm2O9EMB84OpzmFg%3D&reserved=0">
Twitter</a> <a href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fniwa_science&data=04%7C01%7Cjohannab%40melton.vic.gov.au%7C35497b52fc6249b468a008da015e7723%7C3c254d694e4641f79684759dce781c6a%7C0%7C0%7C637823803053600261%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=SUHp123tXGidXH0IUfVcE9dxChMBbWIsJv52pQiKGIU%3D&reserved=0">
Instagram</a> <o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This
monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems</span>
<o:p></o:p></p>
</div>
</div>
<p><br>
***********************************************************************************<br>
The information in this message is privileged and confidential, intended only for the use of the individual or entity named above. If you are not the intended recipient you are hereby notified to delete the message and that any dissemination, copying or use
of its content is strictly prohibited. If you have received this message in error please notify the Melton City Council.<br>
***********************************************************************************</p>
</body>
</html>