I'm going to try using tiffcp (libtiff-tools in ubuntu) to flatten the geotiff and then manually set the extents.
Hopefully someone can chime in and shed some light on the gdal/geotiff/rastersymbolizer stuff. -Matt On Mon, Jun 16, 2008 at 3:02 PM, Matt Hanson <[EMAIL PROTECTED]> wrote: > Hi Matt, great question! I say that because I've asked the same thing a > couple times in the last week on both the user and dev lists (see my > post from this morning). > > As near as I can tell mapnik gets the RGB bands when it reads in the > image from the file itself, it's not set with the style. I hope I'm > wrong though because it really should be adjustable. > > In your case I'm not sure why it's not setting them to the default RGB > bands that are in the file itself - I had thought that if there were > bands set in the file that's what it used but if it's not doing that > either...I'm not sure. > > I keep looking at the code trying to figure this out but nothing > yet....I'll post back here if I figure it out. Good luck! > > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matt > Bartolome > Sent: Monday, June 16, 2008 5:49 PM > To: [email protected] > Subject: [Mapnik-users] GDAL raster rendering > > Hi, > I'm successfully rendering GeoTiffs using the GDAL datasource in gray > scale but would like to render them in color. gdalinfo outputs: > > Band 1 Block=12001x1 Type=Byte, ColorInterp=Gray > Overviews: 3001x2001, 1501x1001, 751x501, 376x251, 188x126, 94x63 > Metadata: > LAYER_TYPE=athematic > Band 2 Block=12001x1 Type=Byte, ColorInterp=Undefined > Overviews: 3001x2001, 1501x1001, 751x501, 376x251, 188x126, 94x63 > Metadata: > LAYER_TYPE=athematic > Band 3 Block=12001x1 Type=Byte, ColorInterp=Undefined > Overviews: 3001x2001, 1501x1001, 751x501, 376x251, 188x126, 94x63 > Metadata: > LAYER_TYPE=athematic > > All I've got in my style thus far is: > > <Style name="raster"> > <Rule> > <RasterSymbolizer> > </RasterSymbolizer> > </Rule> > </Style> > > When viewing the geotiff in arcmap it sets Red, Green, Blue as > 120,123,100 automatically. Is that something read off the file that > gdal isn't seeing or is that something I set myself? > > Thanks, > Matt > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

