Writting a BIL in ASCII format

Frank Warmerdam warmerdam at POBOX.COM
Thu Oct 12 16:58:10 EDT 2006


Trimble, Beheen wrote:
> Hi Frank,
> 
> Nice to hear from you. Thanks a lot. School is hard!
> 
> To answer the color question, say cell one has value 7, I want to say
> all the cells with value 7 to be colored red. If I have one to one
> mapping between the grid values and the color file, then I want to draw
> them using arcmap or any other software that can do the job.

Beheen,

I'm just realizing this question was asked on mapserver-users, so the
application is apparently MapServer.  Generally the thing is to do the
coloring using classes in mapserver.  The Raster Access HOWTO should
talk a bit about how to do this.

Keep in mind that ascii grid format really sucks as a web mapping source
format since it is slow to read and process.  The original BIL would be
much better.  If you just want BAND 3, you can pick that in MapServer
using something like:

   PROCESSING "BANDS=3"

in your raster layer definition.

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    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list