[gdal-dev] How to exclude a layer from a translation using ogr2ogr

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Wed May 15 23:54:52 PDT 2024


Hi,

See this recent thread https://lists.osgeo.org/pipermail/gdal-dev/2024-May/058993.html. I think that authoring a vector VRT file is also the answer to your question.

-Jukka Rahkonen-

Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Abel Pau via gdal-dev
Lähetetty: torstai 16. toukokuuta 2024 8.56
Vastaanottaja: gdal-dev at lists.osgeo.org
Aihe: [gdal-dev] How to exclude a layer from a translation using ogr2ogr

Hi,
I want to convert a Geopackage into MiraMonVector format.
I use this command line:
ogr2ogr "D:\mapes\2024\044 XP Topografia territorial\topografia-territorial-v1r0-3d-2022_menys_90_modelatge_terreny" "D:\mapes\2024\044 XP Topografia territorial\topografia-territorial-v1r0-3d-2022.gpkg" -f MiraMonVector

This gpkg has several layers and I'd like to exclude the one called _90_modelatge_terreny_l

I've tried several methods but they don't work.
Anyone know how to do that?
Thanks!

Abel Pau Garcia
GIS developer
[https://www.creaf.cat/sites/default/files/creaf-signature.png]
a.pau at creaf.uab.cat <mailto:a.pau at creaf.uab.cat>
Let's chat on Teams! <https://teams.microsoft.com/l/chat/0/0?users=a.pau@creaf.uab.cat>
Tel. +34 934814277
[https://www.creaf.cat/sites/default/files/so-cat-signature.png]
[https://www.creaf.cat/sites/default/files/primary_x.png]<https://twitter.com/CREAF_ecologia>[https://www.creaf.cat/sites/default/files/primary_linkedin.png]<https://www.linkedin.com/company/creaf/>[https://www.creaf.cat/sites/default/files/primary_youtube.png]<https://www.youtube.com/c/creafecologia>[https://www.creaf.cat/sites/default/files/primary_instagram.png]<https://www.instagram.com/CREAF_ecologia/>
www.creaf.cat <http://www.creaf.cat/> | http://blog.creaf.cat <http://blog.creaf.cat/>
[https://www.creaf.cat/sites/default/files/cap_0.png]
CREAF. Campus UAB. Edifici C. 08193 Bellaterra (Barcelona)
Abans d'imprimir aquest missatge electrònic penseu en el medi ambient.
[https://www.creaf.cat/sites/default/files/corner_right_0.png]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3657 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 2478 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1449 bytes
Desc: image003.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1274 bytes
Desc: image004.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1237 bytes
Desc: image005.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 1458 bytes
Desc: image006.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 154 bytes
Desc: image007.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 640 bytes
Desc: image008.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240516/2652c732/attachment-0015.png>


More information about the gdal-dev mailing list