<p dir="ltr">Hi. If there is any qml file next to the shapefile, can you remove it and then load the shapefile again and see if it works?</p>
<p dir="ltr">Alex</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A quarta, 4/12/2024, 16:44, Andrew Chapman via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrea<br>
<br>
Sorry for the lack of feedback but I've had to put things on hold for a while - we've just had a Ukrainian family move in with us and are focused on getting them settled in. Bureaucracy is much more difficult to sort out than software!<br>
<br>
I got as far as trying 3.34.13 with no improvement. I've give an update when I get time to look back it it.<br>
<br>
Kind regards<br>
<br>
Andrew<br>
<br>
-----Original Message-----<br>
From: Andrea Giudiceandrea [mailto:<a href="mailto:andreaerdna@libero.it" target="_blank" rel="noreferrer">andreaerdna@libero.it</a>] <br>
Sent: 04 December 2024 15:00<br>
To: <a href="mailto:qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user@lists.osgeo.org</a><br>
Cc: <a href="mailto:andrew.chapman@donkagen.co.uk" target="_blank" rel="noreferrer">andrew.chapman@donkagen.co.uk</a><br>
Subject: Re: [Qgis-user] Shapefile symbology no longer working when zoom in<br>
<br>
Hi Andrew,<br>
since I don't see any followups in the thread, I guess you have managed <br>
to find the root cause of the issue and to fix it.<br>
<br>
If so, may you please let me know what was the root cause of the issue <br>
and how did you manage to fix it?<br>
<br>
Best regards.<br>
<br>
Andrea<br>
<br>
Il 28/11/2024 20:39, Andrea Giudiceandrea ha scritto:<br>
> Hi Andrew,<br>
> are you actually using QGIS 3.34.0 or QGIS 3.40.0? If the former, <br>
> firstly I suggest you to use QGIS 3.34.12, instead. What is the GDAL/OGR <br>
> library version used by QGIS on your system?<br>
> <br>
>> Andrew Chapman andrew.chapman at <a href="http://donkagen.co.uk" rel="noreferrer noreferrer" target="_blank">donkagen.co.uk</a><br>
>> Thu Nov 28 05:38:02 PST 2024<br>
>> I've tried Vector->Geometry Tools->Check Validity but the problem still<br>
>> exists<br>
> The "Check Validity" processing algorithm [1] doesn't fix any issue. You <br>
> can use it e.g. to export only valid geometries from the affected layer. <br>
> Does the issue occur also with the "Valid output" layer? Does the issue <br>
> occur also if you just export the ESRI Shapefile layer to a new ESRI <br>
> Shapefile layer or to a new GeoPackage layer and use the new layer?<br>
> <br>
> In order to try to actually fix invalid geometries, you can use the "Fix <br>
> geometries" processing algorithm [2].<br>
> <br>
> <br>
>> Andrew Chapman andrew.chapman at <a href="http://donkagen.co.uk" rel="noreferrer noreferrer" target="_blank">donkagen.co.uk</a><br>
>> Thu Nov 28 10:21:40 PST 2024<br>
>> In the layer properties->source tab if I delete the .shx file the <br>
>> option Create Spatial Index is grey’d out. If the .shx file exists <br>
>> the same button is marked Spatial Index Exists and is again grey’d out.<br>
> <br>
> AFAIK the correct way to create or recreate / fix the .shx file is to <br>
> use the "Repair Shapefile" processing algorithm [3].<br>
> <br>
> Anyway an .shx file doesn't actually contain a spatial index. According <br>
> to "ESRI Shapefile / DBF" page [4], the ESRI Shapefile OGR driver can <br>
> read and write the non-ESRI quadtree spatial index file (.qix ) and can <br>
> read the ESRI spatial index file (.sbn / .sbx).<br>
> <br>
> What are the extensions of all the affected ESRI Shapefile layer's files?<br>
> <br>
> May you please provide the affected ESRI Shapefile layer's files or <br>
> create an issue report on the QGIS GitHub repository [5] providing the <br>
> affected layer?<br>
> <br>
> Best reagards.<br>
> <br>
> Andrea<br>
> <br>
> [1] <br>
> <a href="https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#check-validity" rel="noreferrer noreferrer" target="_blank">https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#check-validity</a><br>
> [2] <br>
> <a href="https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#fix-geometries" rel="noreferrer noreferrer" target="_blank">https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#fix-geometries</a><br>
> [3] <br>
> <a href="https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeneral.html#repair-shapefile" rel="noreferrer noreferrer" target="_blank">https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeneral.html#repair-shapefile</a><br>
> [4] <br>
> <a href="https://gdal.org/en/latest/drivers/vector/shapefile.html#spatial-and-attribute-indexing" rel="noreferrer noreferrer" target="_blank">https://gdal.org/en/latest/drivers/vector/shapefile.html#spatial-and-attribute-indexing</a><br>
> [5] <a href="https://github.com/qgis/QGIS/issues" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS/issues</a><br>
<br>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>