Opened 16 years ago
Closed 16 years ago
#2813 closed defect (worksforme)
PHP/MapScript cannot produce AGG output
Reported by: | dougrenwick | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | normal | Milestone: | 5.2.1 release |
Component: | MapScript-PHP | Version: | 5.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
Apparently PHP/MapScript in MS5.2 cannot produce AGG output.
$map->outputformat->set('name','png24'); $map->outputformat->set('mimetype','image/png; mode=24bit'); $map->outputformat->set('driver','AGG/PNG'); $map->outputformat->set('extension','png'); $map->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); $map->outputformat->set('transparent',MS_ON); $map->selectOutputFormat('png24');
When I save it as a mapfile, I get a proper AGG specification, and using shp2img on this file works great:
OUTPUTFORMAT NAME "output" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE END
However, when I use $map->draw() the image handed back is definitely not rendered with AGG, but with GD's thin, jagged lines.
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing for now. Please reopen if the suggestion above doesn't work.
Note:
See TracTickets
for help on using tickets.
Yes it does, try this: $map->selectOutputFormat('AGGPNG24');