<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.Shkpostityyli17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was doing some tests with GeoPackage rasters and found that if I define –a_srs then also –co RASTER_TABLE is required which feels unnecessary.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Steps to reproduce:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Create initial gpkg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">gdal_translate -of GPKG global_mosaic_0.png raster.gpkg -a_srs epsg:4326<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Try to add a subdataset and assign srs for that too<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">gdal_translate -of GPKG global_mosaic_1.png raster.gpkg -a_srs epsg:4326 -co APPEND_SUBDATASET=YES<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0ERROR 1: RASTER_TABLE must be set to a non empty value<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Append subdataset without –a_srs succeeds even if I do not give the name for the raster table.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I know that the corner coordinates which are reported from the whole GeoPackage which contains several subdatasets are meaningless, but I still wonder why it reports just range 0-512 which does not fit with any of my
raster tables nor with the pixel space used by the tiles. Is it a hardcoded value?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">gdalinfo raster.gpkg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Size is 512, 512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Coordinate System is `'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Subdatasets:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_1_NAME=GPKG:raster.gpkg:raster<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_1_DESC=raster - raster<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_2_NAME=GPKG:raster.gpkg:global_mosaic_1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_2_DESC=global_mosaic_1 - global_mosaic_1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Corner Coordinates:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Upper Left ( 0.0, 0.0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Lower Left ( 0.0, 512.0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Upper Right ( 512.0, 0.0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Lower Right ( 512.0, 512.0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Center ( 256.0, 256.0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
</div>
</body>
</html>