HATCH outside of polygon with 8 bit #4512

rgreenwood opened this Issue Oct 25, 2012 · 2 comments


None yet

2 participants


The HATCH fill pattern extends beyond polygon boundaries in seemingly random directions. Depending on zoom and window size the "extra" hatching will appear in different areas. The problem occurs with 8 bit PC256 output but not RGB output formats, e.g. GIF but not PNG using default 6.03 outputformat options. The issue does not occur in MapServer 5.6. An example map file and shapefile are here:
Using the above files the following URL will illustrate the issue:

And switching map_imagetype above to png will eliminate the problem.



Was able to reproduce, this is probably due to the GD coordinate transformer that is allowed to create degenerate polygons (i.e. a polygon with a single vertice is considered to be a single pixel) which don't play nicely with the clipper used to clip hatch lines.

@tbonfort tbonfort added a commit to tbonfort/mapserver that referenced this issue Aug 6, 2013
@tbonfort tbonfort refactor SDE detection in cmake files (#4512,#4700)
- add a specific plugin configuration
- checks for sde,sg and pe libs, adds pthread,socketi and dl if found
- adds #define SDE64 on 64 bit platforms

WONTFIXing this one as we're dropping support for GD entirely.

@tbonfort tbonfort closed this Aug 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment