Hi Andrea,

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.
But I removed these files .idm and and .ind and everything is fine.
Thank you.

I have one more observation.
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()
The shapefiles were under a QGIS project (.qgs).
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.

When I ran some algorithm which tried to arc.geometry().asPolyline() I got this 
error.
Traceback (most recent call last):
  File "/usr/lib64/python3.9/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
TypeError: MultiLineString geometry cannot be converted to a polyline. Only 
single line or curve types are permitted.

So when I open QGIS 2.18 project something happened with the data and was 
transformed from LineString to MultiLineString.
Is this normal behaviour for QGIS 3 to convert the geometry type from single 
part to multiple parts?
Is any method to supress this transformation?

Thank you,
Marian


From: Qgis-user <qgis-user-boun...@lists.osgeo.org> On Behalf Of Andrea 
Giudiceandrea via Qgis-user
Sent: July 25, 2022 5:12 AM
To: qgis-user@lists.osgeo.org
Subject: [EXT] Re: [Qgis-user] Filtering layer or selected features by 
attributes does not work for new added features in QGIS 3.22.8

Tudorache, Marian Sun Jul 24 11:⁠​14:⁠​30 PDT 2022 How these .⁠​idm and and 
.⁠​ind files were created? These files are created by reading ESRI coverage 
data used in an application under ArcInfo:⁠​ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ 
‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍

Tudorache, Marian
Sun Jul 24 11:14:30 PDT 2022
________________________________

How these .idm and and .ind files were created?

These files are created by reading ESRI coverage data used in an application 
under ArcInfo:

Hi Marian,
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?




Cab these file be recreated without knowing?

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.
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 ... .

Best regards.

Andrea


[1] 
https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing<https://urldefense.com/v3/__https:/gdal.org/drivers/vector/shapefile.html*spatial-and-attribute-indexing__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bmwrYD-E$>
[2] 
https://gdal.org/user/ogr_sql_dialect.html#create-index<https://urldefense.com/v3/__https:/gdal.org/user/ogr_sql_dialect.html*create-index__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bgfrbURg$>

________________________________

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.

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.
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to