[Mapserver-dev] Problems with EPPL7 files...
Frank Warmerdam
warmerdam at pobox.com
Thu Jul 29 12:21:23 EDT 2004
Steve Lime wrote:
> I know nobody know anything about that format, but there's a very
> curious issue with them. Anyway, check out:
>
> http://maps.dnr.state.mn.us/cgi-bin/mapserv43?map=/usr/local/www/docs/testing/multiple/test.map&layer1=landsat&layer2=shr30im3
>
> Notice anything wierd with the bottom image? ;-)
>
> Used to work fine in 3.6. Any ideas?
Steve,
At one point GD had the brain wave to reverse the orientation of the
pixels array.
Try changing this:
img->pixels[j][i] = cmap[vv];
To this:
#ifndef USE_GD_1_2
img->pixels[i][j] = result;
#else
img->pixels[j][i] = result;
#endif
Oddly, the other driver code in mapraster.c does not seem to handle both
versions but if the i/j name are to be trusted have just been updated to
work with the new GD.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the mapserver-dev
mailing list