[gdal-dev] Unwanted partial transparency when clipping

Chaitanya kumar CH chaitanya.ch at gmail.com
Wed Jul 6 20:01:18 EDT 2011


Michael,

Can you provide screenshots of diablo-combined-center-utm10-70pct-box.tif
and diablo-combined-center-utm10-70pct-cutout.tif for comparison?

By the way, you can perform the actions of the two gdal_translate commands
in the first step with the gdal_merge.py script itself unless you want to
use a specific resampling algorithm.

On Thu, Jul 7, 2011 at 4:28 AM, Michael Corey <mcorey at cironline.org> wrote:

> Hi all:
>
> I'm using a shapefile as a clipping mask to cut out the shoreline from some
> DOQ files that I have merged together. But when I do the clipping step, I
> end up with unwanted semitransparency in the non-clipped areas.
>
> I'm pretty sure the problem is only with my gdalwarp step at the end.
>
> Here's my process:
>
> gdal_merge.py -init "255" -o diablo-combined-center-utm10.**tif file file
> file file
>
> gdal_translate -outsize 70% 70% diablo-combined-center-utm10.**tif
> diablo-combined-center-utm10-**70pct.tif
>
> ogrinfo -al ./diablo_canyon_detail_**clipper.shp
> //Extent: (XXXX, YYYY) - (XXXX, YYYY)
>
> gdal_translate -projwin XXXX YYYY XXXX YYYY diablo-combined-center-utm10-*
> *70pct.tif diablo-combined-center-utm10-**70pct-box.tif
>
> gdalwarp -co COMPRESS=DEFLATE -cutline ./diablo_canyon_detail_**clipper.shp
> diablo-combined-center-utm10-**70pct-box.tif diablo-combined-center-utm10-
> **70pct-cutout.tif
>
> Can anyone help?
>
> Thanks!
>
> --
> Michael Corey
>
> ______________________________**_________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<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/20110707/f9adb85a/attachment.html


More information about the gdal-dev mailing list