<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:03, Markus Metz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG+h=FFs=Zp3p3_W5xgboFvJo88ejLHzWyYLNeeJ63Gjv00jhA@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 4:58 PM Micha Silver <<a
href="mailto:tsvibar@gmail.com" moz-do-not-send="true">tsvibar@gmail.com</a>>
wrote:<br>
><br>
> I am trying to import some geopackage files. Some are
polygons, and one is a points vector. The polygons import fine,
but the point vector fails with:<br>
><br>
> ERROR: Detected different projections of input layers.
Input layers must be<br>
> imported separately.<br>
><br>
><br>
> Then if I convert the gpkg to a shapefile, it works fine.<br>
><br>
><br>
> Any ideas what could be wrong? Here's the procedure,
showing the problem.<br>
><br>
<div>[...]<br>
</div>
<div>></div>
> # Now The point gpkg vector:<br>
><br>
> ######################<br>
><br>
> micha@TP480:Ashalim$ ogrinfo ashalim_train_pts.gpkg
ashalim_train_pts<br>
<div><br>
</div>
<div>are there any other layers in ashalim_train_pts.gpkg?</div>
<div>You can check with <br>
</div>
<div>ogrinfo -so ashalim_train_pts.gpkg</div>
</div>
</blockquote>
<p><br>
</p>
<p>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)</p>
<p><br>
</p>
<p>The style ??!!</p>
<p><br>
</p>
<p>I removed that "layer_styles" table from the gpkg db, and deleted
the entry from gpkg_contents, and now the import works.</p>
<p>Who would have guessed ?</p>
<p>I suppose that I should have specified the layer in v.import to
avoid this problem.</p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAG+h=FFs=Zp3p3_W5xgboFvJo88ejLHzWyYLNeeJ63Gjv00jhA@mail.gmail.com">
<div dir="ltr"><br>
<div><br>
</div>
<div>Markus M<br>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>