Bug report #522
Major shapefile display error
|Affected QGIS version:||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||Copied to github as #:||10581|
I have two shapefiles for the entire State of Maine that display either badly or completely wrong in QGIS. Both were made by dissolving (Using ArcCatalog/ArcToolbox) all of the townships in the State so that only the shape of the State is present. Due to many islands, there are over 1,000 polygon features.
In QGIS, the 1:100k shapefile displays as half fill, half black (see attached screenshot qgis_error1.png). The 1:24k scale, higher detail shapefile is really bad, missing the vast majority of the state (see qgis_error2.png showing the same extent).
This is a major problem. I remember 0.7.4 on OS X (but not Windows) having similar difficulty where it simply ran into a maximum number of vertices limit. Does this limit still exist, now in Windows too?
I have tried using multipart polygon features with the exact same results.
#1 Updated by kwilliams-penbaymedia-com - about 14 years ago
I tried simplifying the shapefile using ArcToolbox and it appears that there is a limit to the number of allowable vertices per feature. The simplified shapefile (simplified from the dissolved shapefile) displays just fine. Unfortunately, the reduced detail severely hampers the shapefile's usefulness and appearance when zoomed in.
#2 Updated by Gavin Macaulay - about 14 years ago
This is most likely a problem with the filling of complex polygons in Qt's drawing algorithms. We have no complete solution to this, and are awaiting a fix for Qt. Further details are in ticket #83.
There are two controls in the Settings:Options:Rendering dialog box that may help. Try 'Make lines appear less jagged...', and 'Fix problems with incorrectly filled polygons'. In many cases one of these two options will fix problems with incorrectly filled polygons.
#3 Updated by anonymous - about 14 years ago
I have also observed this behaviour.
Are you trying to draw a polygon with holes by inserting extra segments from the outer boundary to the holes?
This works, provided the extra edges don't cut through
any other edge. If they do, the result usually looks like the attached examples.
See attached file wrong_rendering.png
#4 Updated by guy-duplaa-onf-fr - almost 14 years ago
I also have a wrong display with one huge object with islands which is always black like in one of the attached files.
It is like if the outside black border was coming inside, so the object looks like filled black. You can verify by changing the default black colour to another one.
For this object, i change in the layer properties the line value which is by default continue by another one and it looks fine.
Hope it helps