[gdal-dev] gdal_warp

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri Jun 18 10:06:37 EDT 2010


Rob,

You can try the -dstalpha option in gdalwarp to create an alpha band. (
http://www.gdal.org/gdalwarp.html)

On Fri, Jun 18, 2010 at 7:22 PM, Rob <gis at vanbooth.com> wrote:

> Hi Guys
>
> I'm reprojecting some rasters from OSGB (EPSG:27700) to WGS84 (EPSG:4326)
> and am running into a problem.
>
> The rasters are reprojecting nicely, but I am left with black pixels around
> the image where the reprojected image doesnt fit squarely within the
> rectangular dimensions of the file.
>
> I posted about this issue a few weeks ago, and then realised that I should
> be marking that colour as transparent when rendering using GeoServer, and
> ho! everything was OK.
>
> However, I am now reprojecting some greyscale rasters, and by making the
> black pixels on the outside transparent, I am losing the black details of
> the raster image that I want to display!
>
> Is there a way of selecting the colour that gdal uses to populate these
> dead pixels around the side?
>
> MTIA
>
> Rob
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100618/5a0b35c3/attachment.html


More information about the gdal-dev mailing list