.. _vector.sosi:

================================================================================
Norwegian SOSI Standard
================================================================================

.. shortname:: SOSI

.. build_dependencies:: FYBA library

This driver requires the FYBA library.

Open options
------------

|about-open-options|
Starting with GDAL 3.1, the following open options can be specified:

-  .. oo:: appendFieldsMap
      :default: <empty>
      :since: 3.1

      Default is that all rows for equal field names will be appended in a
      feature, but with this parameter you select what field this should be
      valid for.


Examples
~~~~~~~~

-  This example will convert a sosi file to a shape a file where all duplicate fields in a feature will be appended with a comma between.

   ::

      ogr2ogr -t_srs EPSG:4258 test_poly.shp test_duplicate_fields.sos polygons

-  This example will convert a sosi file to a shape a file where only duplicates for BEITEBRUKERID and OPPHAV will appended with a comma between.

   ::

      ogr2ogr -t_srs EPSG:4258  test_poly.shp test_duplicate_fields.sos polygons -oo appendFieldsMap="BEITEBRUKERID&OPPHAV"

-  This example will convert a sosi file to a shape a file where for BEITEBRUKERID and OPPHAV will be appended with a semicolon and comma between

   ::

      ogr2ogr -t_srs EPSG:4258  test_poly.shp test_duplicate_fields.sos polygons -oo appendFieldsMap="BEITEBRUKERID:;&OPPHAV:,"


