<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
<body>
<div>
<div>
<div dir="ltr">
<div dir="ltr">Scott,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
<ol>
<li><span>gdalbuildvrt doesnt work with raster georeferenced by ground control points. Thats why I am using gdal warp -> <a rel="noreferrer noopener" href="https://gis.stackexchange.com/questions/283595/transform-rectify-unprojected-raster-using-target-extent-co-ordinates">https://gis.stackexchange.com/questions/283595/transform-rectify-unprojected-raster-using-target-extent-co-ordinates</a></span></li><li><span>Source files are already in cloud optimized format</span></li></ol>
<div dir="ltr">Do you have any other ideas?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Best,</div>
<div dir="ltr">Marcin</div>
</div>
</div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Wysyłane z aplikacji <a href="https://aka.ms/o0ukef">Outlook dla systemu iOS</a></div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Od:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> w imieniu użytkownika Scott <public@postholer.com><br>
<b>Wysłane:</b> Tuesday, December 6, 2022 6:39:00 PM<br>
<b>Do:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Temat:</b> Re: [MapServer-users] Problems with vrt created from GCP raster</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">My "first is worst" suggestion would be to create a .vrt for each day:<br>
<br>
gdalbuildvrt Day1.vrt [date]*.tif<br>
gdalbuildvrt Day2.vrt [date]*.tif<br>
...<br>
<br>
Next, in your .map file use runtime substitution:<br>
<br>
DATA "/file/path/Day%day%.vrt"<br>
<br>
If you really want to make this fast, convert all your source .tif's to <br>
format COG. All you tif's will be tiled:<br>
<br>
gdalwarp -f COG -co COMPRESS=DEFLATE -co BIGTIFF=YES sent.tif sent_cog.tif<br>
<br>
<br>
<br>
On 12/6/22 09:18, Marcin Niemyjski via MapServer-users wrote:<br>
> Hello,<br>
> <br>
> up to now, I have been working with VRT as a carrier for the rasters I <br>
> wanted to use in the mapfile. Now in order to use the rasters that were <br>
> provided to me (they are GCP georeferenced rasters) I have to convert <br>
> them to VRT(via gdal warp), hence my question - how can I mosaic the <br>
> rasters within one layer in Mapserver (one layer = one day of photos <br>
> from Sentinel-2 for example). I can't create vrt to existing vrt, and <br>
> creating a tileindex for each layer generates too many files. I wanted <br>
> to create one vrt gathering together all of raster but gdal_warp uses <br>
> only the first one as data source.<br>
> <br>
> What can I do?<br>
> <br>
> Best regards,<br>
> Marcin<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> MapServer-users@lists.osgeo.org<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
_______________________________________________<br>
MapServer-users mailing list<br>
MapServer-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>
</span></font></div>
</body>
</html>