<div dir="ltr"><div><span style="font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">Dear all,</span><br></div><div><span style="font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">I need some help to deal with a VPF data set.</span></div><div><span style="font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><p style="margin:0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><u>Environment :</u></p><ul style="margin:10px 0px 0px;padding-left:22px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><li style="margin-left:15px">Windows 10</li><li style="margin-left:15px">Gdal V3.5.0</li></ul><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><u>Context :</u></p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">I have a VPF vector set I try to convert to Geopackage. Some strings are  Latin-1 encoded (ISO-8859-1).</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">The OGR_OGDI plugin supports this specific encoding, but the GPKG format does not. Thus, Latin-1 encoded text strings are saved as "BLOB".</p><div style="margin:0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><p style="margin:10px 0px 0px;padding:0px">So far, I have tried 2 ways to convert my VPF data :</p><p style="margin:10px 0px 0px;padding:0px">1) Direct conversion to GPKG :<br>ogr2ogr -f GPKG mig040.gpkg  <a href="http://gltp/vrf/e:/KIT_GEOCAPI_v3.0/02_Donnees_Test-Mires/BAO_M011_Ed1/VPF/MIG040/EURNASIA/MIG_040" rel="nofollow" target="_blank" style="color:rgb(0,82,204)">gltp:/vrf/e:/KIT_GEOCAPI_v3.0/02_Donnees_Test-Mires/BAO_M011_Ed1/VPF/MIG040/EURNASIA/MIG_040</a>  "transtxt@trans(*)_text"</p><p style="margin:10px 0px 0px;padding:0px">Text is saved as "BLOB".</p><p style="margin:10px 0px 0px;padding:0px">I have tried several options (-lco, -oo, -doo, with SHAPE_ENCODING configuration variable, ...) with no success.</p><p style="margin:10px 0px 0px;padding:0px">2) Two-step conversion</p><p style="margin:10px 0px 0px;padding:0px">ogr2ogr mig040.shp  <a href="http://gltp/vrf/e:/KIT_GEOCAPI_v3.0/02_Donnees_Test-Mires/BAO_M011_Ed1/VPF/MIG040/EURNASIA/MIG_040" rel="nofollow" target="_blank" style="color:rgb(0,82,204)">gltp:/vrf/e:/KIT_GEOCAPI_v3.0/02_Donnees_Test-Mires/BAO_M011_Ed1/VPF/MIG040/EURNASIA/MIG_040</a>  "transtxt@trans(*)_text"</p><p style="margin:10px 0px 0px;padding:0px">ogr2ogr -f GPKG mig040.gpkg mig040.shp</p><p style="margin:10px 0px 0px;padding:0px">Text is saved as UTF-8</p></div><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><u>My question :</u></p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">Is there a way to convert directly to GPKG with UTF-8 text conversion ?</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">N.B. : I can share the data set. How can I do it ?</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><br></p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">Philippe</p></div></div>
<font style="font-size: 9px;">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font>