Ticket #2659 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

symbol with (x -99) offset causes wrong rendering

Reported by: diletant Owned by: tbonfort
Priority: normal Milestone: 6.0 release
Component: AGG Version:
Severity: normal Keywords: offset symbol agg render
Cc: cnieman

Description

inside a map file, if you assign an offset (type x -99) on several symbols from a same class, some non-existing pattern are graphically rendered. For instance, it seems that linear segments are prolonged further than their real end.

This issue doesn't appear if only one offset (x -99) symbol is drawn for a class item.

Attachments

snapshot_ms52.bmp Download (187.8 KB) - added by diletant 5 years ago.
snapshot_ms52_closeup.bmp Download (77.8 KB) - added by diletant 5 years ago.
snapshot_ms52_2.PNG Download (26.8 KB) - added by diletant 5 years ago.
original linear segments (green), with offset (red), one of them is drawn straightly towards heading north (upper right side of the picture)
bug.map Download (1.8 KB) - added by diletant 5 years ago.
data.rar Download (66.4 KB) - added by diletant 5 years ago.
snapshot_ms52_3.bmp Download (167.5 KB) - added by diletant 5 years ago.

Change History

Changed 5 years ago by diletant

  Changed 5 years ago by diletant

And the wrongly rendered's lines are changing with scale (bbox related)

Changed 5 years ago by diletant

in reply to: ↑ description ; follow-up: ↓ 3   Changed 5 years ago by diletant

  • keywords offset symbol agg render added
  • summary changed from multiple symbol with (x -99) offset cause wrong rendering to symbol with (x -99) offset causes wrong rendering

Replying to diletant:

inside a map file, if you assign an offset (type x -99) on a symbol, some non-existing patterns are graphically rendered. For instance, it seems that linear segments are prolonged further than their real end.

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 5 years ago by tbonfort

Replying to diletant:

Replying to diletant:

inside a map file, if you assign an offset (type x -99) on a symbol, some non-existing patterns are graphically rendered. For instance, it seems that linear segments are prolonged further than their real end.

hi, could you come up with a limited test case (data+mapfile) that exhibits this, as I can't reproduce this with what I have. Also, does this happen when using the GD renderer ?

in reply to: ↑ 3   Changed 5 years ago by diletant

Replying to tbonfort:

Replying to diletant:

Replying to diletant:

inside a map file, if you assign an offset (type x -99) on a symbol, some non-existing patterns are graphically rendered. For instance, it seems that linear segments are prolonged further than their real end.

hi, could you come up with a limited test case (data+mapfile) that exhibits this, as I can't reproduce this with what I have. Also, does this happen when using the GD renderer ?

Ok done (see attached files) It's specific to AGG + offset (no problem encountered with AGG/no_offset or GD/with_offset)

Changed 5 years ago by diletant

original linear segments (green), with offset (red), one of them is drawn straightly towards heading north (upper right side of the picture)

  Changed 5 years ago by diletant

request : MAP=/ms4w/apps/gmap/htdocs/bug.map&SERVICE=WMS&REQUEST=GetMap?&VERSION=1.3.0&LAYERS=layer_1&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SRS=EPSG:4326&BBOX=2.373046875,48.86471476180277,2.4169921875,48.893615361480194&WIDTH=256&HEIGHT=256

  Changed 5 years ago by tbonfort

  • status changed from new to closed
  • resolution set to fixed

fixed in r7758

the bug happened when the first segment of a polyline was horizontal

thanks for the bugreport and testcase

  Changed 5 years ago by diletant

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 5 years ago by diletant

Changed 5 years ago by diletant

Changed 5 years ago by diletant

  Changed 5 years ago by tbonfort

  • status changed from reopened to closed
  • resolution set to fixed

the bug was due to some leftover integer rounding from the original gd-only code.

  • fixed in trunk in r7958
  • fixed in 5.2 branch in r7959

diletant: I'm crossing my fingers this will be the final fix for your issues. Your shapefile is such a mess it's a perfect testcase for bringing up rounding issues :)

  Changed 5 years ago by tbonfort

  • status changed from closed to reopened
  • resolution fixed deleted

there are still some leftover cases where the rendering is incorrect, reopening

  Changed 4 years ago by diletant

may be a useful tip :

This issue is still active in 5.2.1 release. the wrong leftover cases might appear or disappear only by changing the size of the image or the bounding box.

Thanks & good luck !

  Changed 4 years ago by cnieman

  • cc cnieman added

  Changed 4 years ago by tbonfort

  • milestone changed from 5.6 release to 6.0 release

  Changed 2 years ago by tbonfort

  • status changed from reopened to closed
  • resolution set to fixed

I couldn't reproduce the defects in 5.4, 5.6 and 6.0, so I'm closing this.

reopen with an updated test-case if this is still ocurring.

thanks for the test-cases!

Note: See TracTickets for help on using tickets.