<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR>Frank,<BR>
<BR>
Thanks for the tips. Until I understand the warp operation better I'll stay away from the VRTWarped dataset, and instead create a "MEM" In Memory raster using the overview that is just larger than the required resolution. It sounds though like the MapServer "simple decimation" algorithm might be more appropriate for datasets without overviews, followed by the necessary reprojection operation. In my application responsiveness of the UI is currently more important than accuracy. <BR>
<BR>
By the way, get those <A href="http://www.rush.com/v4.html">2008 Rush Tour tickets </A>before they sell out!<BR>
<BR>
-- dan<BR><BR>
<HR id=stopSpelling>
<BR>
> Date: Mon, 21 Jan 2008 21:07:32 -0500<BR>> From: warmerdam@pobox.com<BR>> To: grevedan@hotmail.com<BR>> CC: gdal-dev@lists.osgeo.org<BR>> Subject: Re: [gdal-dev] Warping MrSid Images<BR>> <BR>> Dan Greve wrote:<BR>> > Greetings,<BR>> > <BR>> > I'm having an issue with a MrSid dataset. Performance seems to be <BR>> > dreadfully slow reprojecting data from this 14336 pix by 14336 pix 8bit, <BR>> > 3 band RGB, UTM rotated image with 8 overviews. Whether I warp the image <BR>> > into a 512 pix x 428 pix geotiff or a 15620 pix x 13102 pix geotiff, <BR>> > (EPSG:4326) both warp operations take over 5 minutes. (5:30 for the <BR>> > small image, 7:15 for the large which required 600 megabyte of disk <BR>> > output).<BR>> ><BR>> > Might there be a better way of creating a VRT, grabbing one of the <BR>> > overview bands, and using this virtual "overview" dataset in the warp <BR>> > operation. Strangely enough, if I translate the source into a GeoTiff, <BR>> > and create 8 explicit overviews, the 512 pix x 428 pix warp operation <BR>> > takes about 30 seconds.<BR>> <BR>> Dan,<BR>> <BR>> Whew, a bad mix. Warped VRT and MrSID.<BR>> <BR>> Generally speaking "random access" to MrSID tends to be slow. And the<BR>> Warped VRT mechanism tends to result in quite a bit of random access<BR>> though I haven't analysed it carefully.<BR>> <BR>> The other thing to keep in mind is that the Warp API always reads the<BR>> source data required for a particular output rectangle at full resolution.<BR>> This ensures that it can do the resampling kernels and such precisely.<BR>> But if you are downsampling greatly this is serious overkill. It would<BR>> in fact be nice, and even reasonable, for the warp api to take advantage<BR>> of overviews if they are at least of the required resolution. But it is<BR>> hard for the warp API to really know the resolution required in many cases<BR>> since it is at least potentially possible for a reprojection or other<BR>> warp to be highly irregular in resolution across an area and thus "highest<BR>> resolution" can't be determined without alot of internal scanning.<BR>> <BR>> If you want dramatically lower resolution warps from a source image, you are<BR>> actually best off building a separate overview file and warping from that.<BR>> <BR>> BTW, MapServer does not have this problem because it assumes that accuracy<BR>> of reprojection is not all that important. So the warper just reads the<BR>> source data at something like 2x the expected resolution of the output and<BR>> it doesn't really worry about bad edge cases. This makes MapServer fast,<BR>> but somewhat sloppy.<BR>> <BR>> Best regards,<BR>> -- <BR>> ---------------------------------------+--------------------------------------<BR>> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<BR>> light and sound - activate the windows | http://pobox.com/~warmerdam<BR>> and watch the world go round - Rush | President OSGeo, http://osgeo.org<BR>> <BR><BR><br /><hr />Helping your favorite cause is as easy as instant messaging. You IM, we give. <a href='http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join' target='_new'>Learn more.</a></body>
</html>