Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HATCH outside of polygon with 8 bit #4512

Closed
rgreenwood opened this issue Oct 25, 2012 · 2 comments
Closed

HATCH outside of polygon with 8 bit #4512

rgreenwood opened this issue Oct 25, 2012 · 2 comments

Comments

@rgreenwood
Copy link
Contributor

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:
http://www.greenwoodmap.com/hatch_bug.zip
Using the above files the following URL will illustrate the issue:
http://localhost/cgi-bin/mapserv?map=/temp/hatch_bug/hatch_bug.map&map_imagetype=gif&mode=map&mapext=1435458+1718624+1511913+1757913&map_size=792+407

And switching map_imagetype above to png will eliminate the problem.

Thanks,
Rich

@tbonfort
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants