<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:x="urn:schemas-microsoft-com:office:excel" 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=utf-8">
<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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {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-CA" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Hi Andrea,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">I asked permission to share these coverage files with you and the company cannot do this because the data belongs to ESRI and we are only the users of the data.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">But I removed these files .idm and and .ind and everything is fine.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">I have one more observation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">When I converted the data from coverage to shapefile using QGIS2.18 the geometries were simple parts. For example to extract the points from an arc layer I had to use arc.geometry().asPolyline()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">The shapefiles were under a QGIS project (.qgs).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">When I open the QGIS project created with QGIS2.18 I got a message which notify me the project is an old version of QGIS and some conversion was done.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">When I ran some algorithm which tried to arc.geometry().asPolyline() I got this error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">  File "/usr/lib64/python3.9/code.py", line 90, in runcode<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">    exec(code, self.locals)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">  File "<input>", line 1, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">TypeError: MultiLineString geometry cannot be converted to a polyline. Only single line or curve types are permitted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">So when I open QGIS 2.18 project something happened with the data and was transformed from LineString to MultiLineString.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Is this normal behaviour for QGIS 3 to convert the geometry type from single part to multiple parts?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Is any method to supress this transformation?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Marian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> Qgis-user <qgis-user-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Andrea Giudiceandrea via Qgis-user<br>
<b>Sent:</b> July 25, 2022 5:12 AM<br>
<b>To:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> [EXT] Re: [Qgis-user] Filtering layer or selected features by attributes does not work for new added features in QGIS 3.22.8<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><span style="font-size:1.0pt;color:white">Tudorache, Marian Sun Jul 24 11:</span><span style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:white">⁠</span><span style="font-size:1.0pt;color:white">​14:</span><span style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:white">⁠</span><span style="font-size:1.0pt;color:white">​30
 PDT 2022 How these .</span><span style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:white">⁠</span><span style="font-size:1.0pt;color:white">​idm and and .</span><span style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:white">⁠</span><span style="font-size:1.0pt;color:white">​ind
 files were created? These files are created by reading ESRI coverage data used in an application under ArcInfo:</span><span style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:white">⁠</span><span style="font-size:1.0pt;color:white">​ ‍ ‍ ‍ ‍ ‍ ‍
 ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><span style="font-size:1.0pt;color:white"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Times New Roman",serif;color:black">Tudorache, Marian</span></b><span style="font-size:13.5pt;font-family:"Times New Roman",serif;color:black"><br>
</span><i><span style="font-size:11.0pt;color:black">Sun Jul 24 11:14:30 PDT 2022</span></i><span style="font-size:11.0pt">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">
<hr size="2" width="100%" noshade="" style="color:black" align="center">
</span></div>
<pre style="white-space:pre-wrap;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="color:black">How these .idm and and .ind files were created?<o:p></o:p></span></pre>
<pre><span style="color:black">These files are created by reading ESRI coverage data used in an application under ArcInfo:<o:p></o:p></span></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
Hi Marian,<br>
could you share a link to a sample of such ESRI coverage data file for which the conversion to a Shapefile layer creates the .idm and and .ind attributes indexes sidecar files?<br>
<br>
<br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre style="white-space:pre-wrap;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="color:black">Cab these file be recreated without knowing?<o:p></o:p></span></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
Looking at the QGIS code, it seems such attributes indexes sidecar files could be unknowingly created if the user uses the Shapefile layer in a join (via layer Property->Joins) enabling the "Create attribute index on join field" option.<br>
An user can also directly create attributes indexes using the "Create attribute index" processing algorithm, or e.g. using the GDAL/OGR "ogrinfo" command [1] [2], or using a Python script, or ... .<br>
<br>
Best regards.<br>
<br>
Andrea<br>
<br>
<br>
[1] <a href="https://urldefense.com/v3/__https:/gdal.org/drivers/vector/shapefile.html*spatial-and-attribute-indexing__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bmwrYD-E$">
https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing</a><br>
[2] <a href="https://urldefense.com/v3/__https:/gdal.org/user/ogr_sql_dialect.html*create-index__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bgfrbURg$">
https://gdal.org/user/ogr_sql_dialect.html#create-index</a><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received
 this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused
 by any virus and/or other malicious code transmitted by this electronic communication.<br>
<br>
Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l’usage exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez reçu ce message électronique
 par erreur, veuillez en informer l’expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n’assume aucune responsabilité en cas de dommage causé par tout
 virus ou autre programme malveillant transmis par ce message électronique.<br>
</font>
</body>
</html>