Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#1759 closed bug (fixed)

Grids seems to miss lines

Reported by: lutra Owned by:
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: MapCanvas Version: Trunk
Keywords: Cc: pcav
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

When I create grids with ftools, and then are added to the canvas, they seems to miss lines, but only at small scales. Zoom in and the problem goes away.

See attached image.

Attachments (2)

Screenshot-2.png (50.4 KB ) - added by lutra 15 years ago.
Screenshot-grid.png (130.0 KB ) - added by lutra 14 years ago.

Download all attachments as: .zip

Change History (15)

by lutra, 15 years ago

Attachment: Screenshot-2.png added

comment:1 by lutra, 15 years ago

Maybe is not a ftools problem, maybe is a MapCanvas one. Reassign at wish to the proper component.

comment:2 by lutra, 15 years ago

Component: PluginsMapCanvas
Owner: changed from cfarmer to lutra
Summary: Tools (Ftools): grids seems to miss linesGrids seems to miss lines

I finally tested a grid that wasn't made with ftools and as the behaviour confirms it isn't definitely a ftools problem.

Changing the title and the component.

comment:3 by lutra, 15 years ago

Owner: lutra removed

comment:4 by lutra, 14 years ago

Platform: DebianAll

still true on the lastest trunk code, but it seems to happens only on polygon vector grids, now on line grids I cannot reproduce the problem.

in reply to:  4 ; comment:5 by jef, 14 years ago

Replying to lutra:

still true on the lastest trunk code, but it seems to happens only on polygon vector grids, now on line grids I cannot reproduce the problem.

using the symbology-ng? In my current example I can make a line disappear by switching from symbology-ng to the old implementation.

comment:6 by rburhum, 14 years ago

Just in case, reproducible dataset can be found at http://www.burhum.com/files/render_bug.zip

in reply to:  5 comment:7 by lutra, 14 years ago

using the symbology-ng? In my current example I can make a line disappear by switching from symbology-ng to the old implementation.

No, I'm pretty sure that the tests I made were done not using the new symbology.

in reply to:  6 comment:8 by lutra, 14 years ago

Replying to rburhum:

Just in case, reproducible dataset can be found at http://www.burhum.com/files/render_bug.zip

It confirms my first observations. If you transform this polygon grid into lines it all shows fine.

comment:9 by lutra, 14 years ago

with the new symbology things get better, nevertheless at low scales the grid appears not regular (see attached image). Zooming in it turns quickly into a correct spacing.

by lutra, 14 years ago

Attachment: Screenshot-grid.png added

comment:10 by rburhum, 14 years ago

You are correct lutra in the fact that the error only occurs in polygons and not lines.

This error also occurs in version 1.0.2-Kore (what I am using on Windows).

The problem for me here is that I am using the polygons for analysis and the color is based on attribution. Sometimes, the grids will be merged by the user, so I cannot tell whether the grid was merged or if Quantum is drawing it correctly at this scale. I have to zoom or identify the feature to see if that is true. Honestly, more than a "minor: annoyance" and more of "major: does not work as expected"

comment:11 by lutra, 14 years ago

Priority: minor: annoyancemajor: does not work as expected

Try qgis 1.4 and use the new symbology and see if things works better for you.

comment:12 by jef, 14 years ago

Resolution: fixed
Status: newclosed

This might be the Qt issue http://bugreports.qt.nokia.com/browse/QTBUG-5213 #5213.

r12833 uses QPainter::drawPath() that is having the issue only for polygons with holes and QPainter::drawPolygon() for polygons without holes.

comment:13 by rburhum, 14 years ago

Gotta love how fast it was fixed. Thanks!!!

Note: See TracTickets for help on using tickets.