Sweet, thanks.&nbsp; Guess I&#39;m going to have to start lurking.<br>--<br><br><div class="gmail_quote">On Tue, Nov 18, 2008 at 4:32 PM, Dane Springmeyer <span dir="ltr">&lt;<a href="mailto:blake@hailmail.net">blake@hailmail.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><br><div><div class="Ih2E3d"><div>On Nov 18, 2008, at 4:21 PM, Roger André wrote:</div>
<br><blockquote type="cite">Hi Christopher,<br><br>Thanks for the advice, I&#39;ll give that (0,10) a shot.<br><br>Any chance you can send me the link to, or the full-text of the conversation between Frank and Klokan?<br>
<br></blockquote><div><br></div><div>&nbsp;</div></div><div>klokan joined the chat room.</div><div>[08:02am] gdaltrac: Ticket #2683 (enhancement updated): MrSID as an external plugin, <a href="http://trac.osgeo.org/gdal/ticket/2683#comment" target="_blank">http://trac.osgeo.org/gdal/ticket/2683#comment</a>:2</div>
<div>[08:08am] crschmidt: FrankW: I&#39;ll toss in my two cents that I would be very interested in having the ability to use the Debian-provided GDAL with a minimal set of steps to compile to support MrSID imagery</div><div>
[08:12am] wohnout joined the chat room.</div><div>[08:12am] FrankW: But where does this end?</div><div>[08:13am] CIA-52: klokan * r15747 /trunk/gdal/swig/python/scripts/gdal2tiles.py: Bugs in new gdal2tiles repaired: tilemapresource.xml is not correct, mercator and geodetic profiles generates minus tiles, PIL &#39;antialias&#39; is not running, yahoomapid not filled in OpenLayers template.</div>
<div>[08:13am] FrankW: Do we produce source packages for every format in case people want it as a plugin?</div><div>[08:15am] crschmidt: FrankW: well, my personal feeling is that it would probably be most helpful for plugins which require the support of external, non-free libraries.</div>
<div>[08:15am] crschmidt: Where &quot;Free&quot; is &quot;meets the OSD&quot;</div><div>[08:16am] crschmidt: But maybe even that is too much. I don&#39;t know enough about the code to say -- I just thought I&#39;d offer an opinion.</div>
<div>[08:16am] FrankW: So part of what makes it special is that it is a format that could never be included by default in any of the linux distributions - is that right?</div><div>[08:17am] FrankW: So by that logic, only a few plugins would need this special treatment.</div>
<div>[08:17am] crschmidt: Right.</div><div>[08:17am] gdaltrac: Ticket #2683 (enhancement updated): MrSID as an external plugin, <a href="http://trac.osgeo.org/gdal/ticket/2683#comment" target="_blank">http://trac.osgeo.org/gdal/ticket/2683#comment</a>:3</div>
<div>[08:17am] FrankW: We have a source release for the GRASS plugin and I&#39;ve noticed it is not released with each version of GDAL and this causes much confusion amoung users.</div><div>[08:18am] FrankW: But at least if it were only a few (I get the impression the same work has been done for ecw by someone</div>
<div>[08:18am] FrankW: ) then it isn&#39;t so bad.</div><div>[08:20am] crschmidt: #2385 is the ECW work, I believe</div><div>[08:20am] gdaltrac: Ticket #2385: ECW as an external plugin, <a href="http://trac.osgeo.org/gdal/ticket/2385" target="_blank">http://trac.osgeo.org/gdal/ticket/2385</a></div>
<div>[08:22am] markusN joined the chat room.</div><div>[08:30am] CIA-52: klokan * r15748 /trunk/gdal/swig/python/scripts/gdal2tiles.py: GDAL2Tiles: &quot;--resume&quot; functionality: allows to continue in interupted tile generation, regenerates files which do not exist (usefull for metadata or overview only generation).</div>
<div>[08:36am] klokan: How can I generate whole world in one Google tile from EPSG:4326 dataset... I was trying to do that for small_world.tif (from gdal samples)...</div><div>[08:37am] klokan: Command like: dalwarp -t_srs epsg:900913 -te -20037508.34 -20037508.34 20037508.34 20037508.34 small_world.tif small_world.google.tif</div>
<div>[08:37am] chippy left the chat room. (Remote closed the connection)</div><div>[08:38am] klokan: But it cut away New Zealand.. why? The input is -180,-90,180,90 in EPSG:4326.</div><div>[08:38am] FrankW: Can you show me what you mean by cut-away new zealand?</div>
<div>[08:39am] markusN: hi FrankW - thanks for the netCDF hack</div><div>[08:39am] markusN: I have invested some time to get the Geotransform nicer, looks good now!</div><div>[08:39am] FrankW: good, I presume there were some precision issues?</div>
<div>[08:40am] chippy joined the chat room.</div><div>[08:40am] klokan: FrankW: <a href="http://klokan.mzk.cz/%7Eklokan/small_world.google.tif" target="_blank">http://klokan.mzk.cz/~klokan/small_world.google.tif</a></div>
<div>[08:41am] klokan: It is this file: <a href="http://download.osgeo.org/gdal/data/gtiff/small_world.tif" target="_blank">http://download.osgeo.org/gdal/data/gtiff/small_world.tif</a> projected to EPSG:900913.</div><div>
[08:42am] FrankW: klokan: &nbsp;Try adding &quot;-wo SOURCE_EXTRA=120&quot; to your gdalwarp commandline without the quotes</div><div>[08:44am] markusN: FrankW: it looked like shifted for 1/2 pixel</div><div>[08:45am] klokan: FrankW: Then the result is correct...</div>
<div>[08:45am] klokan: but I can&#39;t pass such parameter to python.AutoCreateWarpedVRT, can I?</div><div>[08:49am] klokan: So in case somebody will report that as a bug I will tell them that they have to run gdalwarp -of vrt with -wo SOURCE_EXTRA=120 in advance, before passing dataset to gdal2tiles for tile generation...</div>
<div>[08:52am] FrankW: I see there is no way to pass this through the swig bindings for autocreatewarpedvrt.</div><div>[08:52am] FrankW: This boils down to the warp api being awfully complex to properly wrap for swig and our various compromises resulting in incomplete access.</div>
<div>[08:53am] FrankW: You could, at least in theory, manipulate the VRT produced by AutoCreateWarpedVRT() to introduce the parameter.</div><div>[08:53am] klokan: I need also -dstalpha equivalent in VRT...</div><div>[08:53am] klokan: You mean save the file to disk and read it again and change the XML?</div>
<div>[08:53am] FrankW: yes, exactly.</div><div>[08:54am] klokan: What is the rule for adding SOURCE_EXTRA=120? When is it necessary to use it?</div><div>[08:55am] FrankW: The problem is that GDAL transforms the destination area back to the source coordinate system by sampling a grid of points over the region.</div>
<div>[08:55am] FrankW: But points right on the international date line might transform two different ways.</div><div>[08:55am] FrankW: so the region selector is missing the last swath of data.</div><div>[08:55am] FrankW: The SOURCE_EXTRA is just forcing it to pull more data from the source image for it&#39;s working buffer than it thinks it needs.</div>
<div>[08:56am] FrankW: There is some discussion of it here: <a href="http://www.gdal.org/structGDALWarpOptions.html#0ed77f9917bb96c7a9aabd73d4d06e08" target="_blank">http://www.gdal.org/structGDALWarpOptions.html#0ed77f9917bb96c7a9aabd73d4d06e08</a></div>
<div>[08:57am] klokan: OK. Thanks</div><div><div></div><div class="Wj3C7c"><div><br></div><div><br></div><div><br></div><div><br></div><blockquote type="cite">Roger<br>--<br><br><div class="gmail_quote"> On Tue, Nov 18, 2008 at 4:17 PM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com" target="_blank">crschmidt@metacarta.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>On Tue, Nov 18, 2008 at 04:07:19PM -0800, Roger André wrote:<br> &gt; It&#39;s been pointed out that I didn&#39;t include a great deal of information<br>
 &gt; about my setup. &nbsp;I doubt it will matter much, but here goes:<br> &gt;<br> &gt; I am using TileCache to read a large (14400x7200) raster with global<br> &gt; extents. &nbsp;The raster projection is in lat/lon WGS84. &nbsp;TileCache is set to<br>
 &gt; read this data via a MapServerLayer layer type, with settings that match the<br> &gt; example in the out-of-the-box tilecache.cfg (metaTile=true, metaSize=5,5,<br> &gt; metaBuffer=10).<br> <br> </div>set metaBuffer:0,10 and you may see your edge defects disappear to some<br>
 extent.<br> <br> Probably something like this is the problem:<br> <br> 11:55 &lt; FrankW&gt; The problem is that GDAL transforms the destination area<br> back to the source coordinate system by sampling a grid of points over<br>
 the region.<br> 11:55 &lt; FrankW&gt; But points right on the international date line might<br> transform two different ways.<br> 11:55 &lt; FrankW&gt; so the region selector is missing the last swath of<br> data.<br> <br>
 <br> In GDAL-land, you can use:<br> <br> 11:42 &lt; FrankW&gt; klokan: &nbsp;Try adding &quot;-wo SOURCE_EXTRA=120&quot; to your<br> gdalwarp commandline without the quotes<br> <br> <br> But I don&#39;t know how to use that through MapServer.<br>
 <div><br> &gt; I am using the following package versions in my stack, and they have all<br> &gt; been built from source:<br> &gt;<br> &gt; gdal-1.5.2<br> &gt; mapserver-5.2.0<br> &gt; proj-4.6.1<br> &gt; proj-datumgrid-1.4<br>
 &gt; tilecache-2.04<br> &gt; --<br> &gt;<br> &gt;<br> &gt;<br> &gt; On Tue, Nov 18, 2008 at 3:17 PM, Roger André &lt;<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>&gt; wrote:<br> &gt;<br> &gt; &gt; Ok, so now that I&#39;ve gotten meta-tiling with edge buffering to work, I seem<br>
 &gt; &gt; to be able to better control the missing pixel rows that were causing<br> &gt; &gt; horizontal stripes in my Google Map tiles. &nbsp;Only now I have a huge gap at<br> &gt; &gt; the international date line. &nbsp;I also have a band of missing data at the<br>
 &gt; &gt; extreme South edge of my tiles when I am past Zoom Level 5. &nbsp;I can probably<br> &gt; &gt; live with that, but since my data set is global, I find it interesting that<br> &gt; &gt; it&#39;s getting cut off, and only on the South side.<br>
 &gt; &gt;<br> &gt; &gt; Anyone seen this before?<br> &gt; &gt; --<br> &gt; &gt;<br> <br> </div>&gt; _______________________________________________<br> &gt; Tilecache mailing list<br> &gt; <a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br>
 &gt; <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br> <font color="#888888"><br> <br> --<br> Christopher Schmidt<br> MetaCarta<br> </font></blockquote>
</div><br> _______________________________________________<br>Tilecache mailing list<br><a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</blockquote></div></div></div><br></div></blockquote></div><br>