<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div> I use AutoCreateWarpedVRT API to open datasource programmatically (Java) in another projection, to use dynamic reprojection. The data (NOAA KAP) is indexed color and has colortable. As you can see in <a href="http://d.pr/i/GQKc">http://d.pr/i/GQKc</a> No-data (if this is the right term) is colored as black, but I would need it to be with my own defined color (fully transparent). It seems it uses just the first color (index:0) from the colortable, so even if I modify color table before warping, the filled area will be same color as 0 (<a href="http://d.pr/i/o6Oo">http://d.pr/i/o6Oo</a>).</div><div><br></div><div>With following I get desired result:</div><div>gdalwarp -t_srs "EPSG:900913" -of VRT -dstnodata 0 BSB_ROOT/11315/11315_1.KAP 11315b.vrt </div><div><br></div><div>So my question in short: how to add "-dstnodata 0" to AutoCreateWarpedVRT()?</div><div><br></div><div><br></div><div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Jaak</div></div></span></div></div></div></div></body></html>