<div dir="ltr">Yes, a gdalwarp on the file works fine but I would really like to avoid that.<div>A "gdalwarp -t_srs "EPSG:3857" sat.tif sat_3857.tif" and use the file
sat_3857.tif works.</div><div><br></div><div>The file I want to show in Mapserver is available at <a href="https://drive.google.com/file/d/1t3fM0Ej1FGwrdqbvg5EhIFcpnNOfKdQS/view?usp=sharing">https://drive.google.com/file/d/1t3fM0Ej1FGwrdqbvg5EhIFcpnNOfKdQS/view?usp=sharing</a> if anyone wants to give it a try.</div><div><br></div><div>//Jesper</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den ons 2 sep. 2020 kl 10:26 skrev Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FI">
<div class="gmail-m_-1875401982447914124WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I am not suggesting this as a final solution yet, but gather some knowledge and try if image works when a) warped into GeoTIFF with gdalwarp b) warped into .vrt<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Lähettäjä:</b> mapserver-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Jesper Kempe<br>
<b>Lähetetty:</b> keskiviikko 2. syyskuuta 2020 10.52<br>
<b>Vastaanottaja:</b> Steve Lime <<a href="mailto:sdlime@gmail.com" target="_blank">sdlime@gmail.com</a>><br>
<b>Kopio:</b> Mapserver <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<b>Aihe:</b> Re: [mapserver-users] Use Ground Control Points from GeoTIFF<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This is the mapfile:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">MAP<br>
NAME "map"<br>
WEB<br>
METADATA<br>
"wms_title" "WMS mapserver"<br>
"wms_srs" "EPSG:4326 EPSG:3021 EPSG:9999 EPSG:3006 EPSG:900913"<br>
"wms_extent" "1225000 6130000 1910000 7675000"<br>
"wms_enable_request" "*"<br>
"wfs_enable_request" "*"<br>
END<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
<br>
EXTENT -180 -90 180 90<br>
<br>
LAYER<br>
NAME "sat"<br>
DATA "sat.tif"<br>
TYPE RASTER<br>
STATUS ON<br>
<br>
METADATA<br>
"wms_title" "sat"<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
EXTENT 17.0473154408269387 62.1606759790530177 27.5792082876237146 66.7744046276809797<br>
<br>
END<br>
<br>
END<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have also tried both without PROJECTION in LAYER and with <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">PROJECTION<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> AUTO<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">END<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">None of them works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">EXTENT in the mapfile is taken from Qgis metadata of the layer.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Jesper<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Den tis 1 sep. 2020 kl 23:41 skrev Steve Lime <<a href="mailto:sdlime@gmail.com" target="_blank">sdlime@gmail.com</a>>:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">What does the mapfile look like?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Sep 1, 2020 at 10:26 AM Jesper Kempe <<a href="mailto:jesper.kempe@gmail.com" target="_blank">jesper.kempe@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Hi<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have a GeoTiff file that gdalinfo presents like this:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">gdalinfo sat.tif<br>
Driver: GTiff/GeoTIFF<br>
Files: sat.tif<br>
Size is 10474, 10717<br>
Coordinate System is `'<br>
GCP Projection =<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]]<br>
GCP[ 0]: Id=1, Info=<br>
(0,0) -> (27.5783052509812,65.9184735836942,229.992792810313)<br>
GCP[ 1]: Id=2, Info=<br>
(524,0) -> (27.1416007200269,65.9731480840222,172.994255514815)<br>
GCP[ 2]: Id=3, Info=<br>
(1048,0) -> (26.7005564512604,66.0268770755367,152.994545626454)<br>
GCP[ 3]: Id=4, Info=<br>
(1572,0) -> (26.257537545879,66.0793551447287,131.994995356537)<br>
GCP[ 4]: Id=5, Info=<br>
(2096,0) -> (25.8102107755995,66.1308402121171,163.993212723173)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">....<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">with 482 GCPs.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The file opens ok in Qgis and is located in the right location. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">But I can´t in any way get it to show correctly in Mapserver.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Is this possible to do? Or do I have to gdalwarp the file to a known projection and set the PROJECTION of the layer?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Jesper<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>