<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 26/06/2019 23:44, Markus Metz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG+h=FFuxTuM+rbf+L712sMMHW=4LxYRi05SEnz3Bquh1+q-hw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><br>
<br>
On Wed, Jun 26, 2019 at 10:16 PM Micha Silver <<a
href="mailto:tsvibar@gmail.com" moz-do-not-send="true">tsvibar@gmail.com</a>>
wrote:<br>
><br>
><br>
><br>
><br>
><br>
> micha@TP480:code$ ogrinfo -so
../GIS/Ashalim/ashalim_train_pts.gpkg<br>
> INFO: Open of `../GIS/Ashalim/ashalim_train_pts.gpkg'<br>
> using driver `GPKG' successful.<br>
> 1: ashalim_train_pts (Point)<br>
> 2: layer_styles (None)<br>
><br>
><br>
> The style ??!!<br>
><br>
><br>
> I removed that "layer_styles" table from the gpkg db, and
deleted the entry from gpkg_contents, and now the import works.<br>
><br>
> Who would have guessed ?<br>
><br>
> I suppose that I should have specified the layer in
v.import to avoid this problem.<br>
<div><br>
</div>
<div>Yes, specifying the layer should work.</div>
<div><br>
</div>
<div>I have seen this layer_styles layer before in other GPKG
files but don't know what this is good for. GDAL documentation
at</div>
<div><a href="https://gdal.org/drivers/vector/gpkg.html"
moz-do-not-send="true">https://gdal.org/drivers/vector/gpkg.html</a></div>
<div>does not mention any style information.</div>
</div>
</blockquote>
<p><br>
</p>
<p>It comes from QGIS, where you can save a default layer styling
directly into the gpkg. Very convenient, but I never thought it
would appear to GRASS as a second layer without geometry or CRS.</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAG+h=FFuxTuM+rbf+L712sMMHW=4LxYRi05SEnz3Bquh1+q-hw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>AFAICT, layers in a GPKG should contain vector geometries.</div>
<div><br>
</div>
<div>Markus M</div>
<div><br>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
+972-523-665918</pre>
</body>
</html>