<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)">
<!--[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:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
.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 3.0cm 70.85pt 3.0cm;}
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="ES-CO" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi dev team!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am writing to inquire about conversion to geojson problem, I will show you in a little and simple example that shows my big problem:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">We are using the ogr2ogr executables commands like this :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><b><i><span lang="EN-US">ogr2ogr -f GeoJSON C:\tmp\nombres.json C:\tmp\TUNJA1R_ejemplo.xtf testModel.table<o:p></o:p></span></i></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">As you can see, The input file is “TUNJA1R_ejemplo.xtf” a simple array of names in xml example, but with the same name of key :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">“<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns=<a href="http://www.interlis.ch/INTERLIS2.3">http://www.interlis.ch/INTERLIS2.3</a>><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"><HEADERSECTION SENDER="ili2ora-4.4.3-658b7daf37ba45ed2330ca3e3a3c3d59c96e91fa" VERSION="2.3"><MODELS><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"><MODEL NAME="testModel" VERSION="2022-06-10" URI=<a href="mailto:PC4@localhost">mailto:PC4@localhost</a>></MODEL></MODELS></HEADERSECTION><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"><DATASECTION><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"><testModel BID="testModel"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">               
</span><testModel.table TID="234921"><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt">                                <span lang="EN-US">
<name>pepe</name><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                                < name >maria</ name ><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                                < name >juana</</span><span lang="EN-US">
</span>name <span lang="EN-US">><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                               
</span><nestedfield><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt">                                <span lang="EN-US">
< name >julia</ name > //also try a nested field, wioth results….<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                               
</span></nestedfield><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt">                                <span lang="EN-US">
< name >mario</ name ><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                                < name >luz</ name ><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">                               
</span>< name ><b>angela</b></ name ><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt">                </testModel.table><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"></Submodelo_Insumos_SNR_V1_0.Datos_SNR><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"></DATASECTION><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"></TRANSFER>”<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">After execution, the output file  “ nombres.json ”of conversion always leaves only the last key value :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">"type": "FeatureCollection",<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">"name": "testModel.table",<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">"features": [<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">{ "type": "Feature", "properties": { "TID": "234921", " name ": "<b>angela</b>" }, "geometry": null }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt">Is there any strategy to handle this problem like an extra command or option (-option) on the command line to get in the output file with all the names even the input file has the same key
 name ?</span></b><span lang="EN-US" style="font-size:12.0pt"> </span><span lang="EN-US">because, i saw that ogr2ogr always update the same key with the last value, and we need
<b><i>all the seven names</i></b> array in the output json file on the same registry.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Finally, I have come to think that I should modify the ogr2ogr code to better handle this and not always leave the last value in the conversion, but I hope it is the last option that I should take.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any advice would be really appreciated, thanks!!!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#004254;mso-fareast-language:ES-CO"><img border="0" width="72" height="43" style="width:.75in;height:.4479in" id="Imagen_x0020_10" src="cid:image001.png@01D87D0B.B68680D0" alt="minsait-indra"></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#004254;mso-fareast-language:ES-CO"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES-CO">FRANDO GONZÁLEZ<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-line-height-alt:8.25pt"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:ES-CO">Senior Systems Engineer<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-line-height-alt:8.25pt"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:ES-CO"><a href="mailto:fagonzalezv@indracompany.com"><span style="color:#0563C1">fagonzalezv@indracompany.com</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO">Calle 93 16 25<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span lang="ES" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES">Bogotá, Colombia<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span lang="ES" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES">T +57 1 646 36 00<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span lang="ES" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES">M +57 3006604908<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO"><a href="https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.minsait.com%2F&data=04%7C01%7Cfagonzalezv%40indracompany.com%7C6c419c97a7134841c0da08d9f7ce4282%7C7808e00514894374954bd3b08f193920%7C0%7C0%7C637813287514711623%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=0Jr%2BkI3f3Uh3g%2FG5C5yElQX9pHauhEi9ds6w%2FPOxLtM%3D&reserved=0" target="_blank"><span style="color:#999999">minsait.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO"><a href="https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.indracompany.com%2F&data=04%7C01%7Cfagonzalezv%40indracompany.com%7C6c419c97a7134841c0da08d9f7ce4282%7C7808e00514894374954bd3b08f193920%7C0%7C0%7C637813287514711623%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W2xsw4RMlZ8TUymKMTE5zqosvKN2LV5QhwvGmAxgZM0%3D&reserved=0" target="_blank"><span style="color:#999999">indracompany.com</span></a></span><span style="color:#1F497D;mso-fareast-language:ES-CO"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:8.25pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#004254;mso-fareast-language:ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización,
 divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del
 remitente.<br>
Evite imprimir este mensaje si no es estrictamente necesario.<br>
<br>
This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without
 authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.<br>
Avoid printing this message if it is not absolutely necessary.<br>
</font>
</body>
</html>