[gdal-dev] Elasticsearch, rename index names

Jens Søe Christiansen jenssc at pocalipse.dk
Wed Jun 23 14:48:50 PDT 2021


Thanks for the tip!

Den ons. 23. jun. 2021 kl. 23.44 skrev Even Rouault <
even.rouault at spatialys.com>:

> Jens,
>
> You could use the GDALVectorTranslate() API (the library version of
> ogr2ogr) with the -nln option.
>
> See
> https://gdal.org/api/gdal_utils.html#gdal__utils_8h_1aa176ae667bc857ab9c6016dbe62166eb
>
> Even
> Le 23/06/2021 à 23:37, Jens Søe Christiansen a écrit :
>
> Hi
> Yet another challenge regarding the awesome CopyDataSource :-)
>
> 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!
> 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?
>
> Best regards
> Jens Christiansen
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210623/b8e5ae22/attachment.html>


More information about the gdal-dev mailing list