<div dir="ltr">Thanks for the tip! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den ons. 23. jun. 2021 kl. 23.44 skrev Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</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>
<p>Jens,</p>
<p>You could use the GDALVectorTranslate() API (the library version
of ogr2ogr) with the -nln option.<br>
</p>
<p>See
<a href="https://gdal.org/api/gdal_utils.html#gdal__utils_8h_1aa176ae667bc857ab9c6016dbe62166eb" target="_blank">https://gdal.org/api/gdal_utils.html#gdal__utils_8h_1aa176ae667bc857ab9c6016dbe62166eb</a></p>
<p>Even<br>
</p>
<div>Le 23/06/2021 à 23:37, Jens Søe
Christiansen a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi
<div>Yet another challenge regarding the awesome CopyDataSource
:-)</div>
<div><br>
</div>
<div>I'm trying to read a WFS service and write it to
Elasticsearch. This is almost working but my problem is the
name of the layers in the source. They come with a prefix
(gdk60:) and : are not valid in an index name in
Elasticsearch!</div>
<div>If I set the index name nothing is working since the source
contains multiple layers so is there any way to add a mapping
of layer names to index names like the field mapper?</div>
<div><br>
</div>
<div>Best regards</div>
<div>Jens Christiansen</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>