GDAL-VECTOR-SET-GEOM-TYPE(1) GDAL GDAL-VECTOR-SET-GEOM-TYPE(1) (NAME) gdal-vector-set-geom-type - 3.12 . (SYNOPSIS) Usage: gdal vector set-geom-type [OPTIONS] . (Positional arguments): -i, --input [] [ ] -o, --output [] [ ] (Common Options): -h, --help --json-usage JSON --config = [] -q, --quiet ( ) [ ] (Options): -l, --layer, --input-layer () [] [ ] -f, --of, --format, --output-format ( "GDALG") [ ] --co, --creation-option = [] [ ] --lco, --layer-creation-option = [] [ ] --overwrite [ ] --update [ ] --overwrite-layer [ ] --append [ ] --upsert --output-layer [ ] --skip-errors [ ] --active-layer ( ) --active-geometry ( ) --layer-only --feature-only --feature-only --layer-only --geometry-type --multi MULTI --single --single MULTI --multi --linear --curve --curve --linear --dim . DIM=XY|XYZ|XYM|XYZM --skip (Advanced Options): --if, --input-format [] [ ] --oo, --open-option = [] [ ] --output-oo, --output-open-option = [] [ ] --upsert (Upsert) ( 'append') [ ] --append (DESCRIPTION) gdal vector set-geom-type / . gdal vector pipeline . : - --multi / --single - --linear / --curve - --dim GDALG ( / ) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) JSON GDALG . GDALG: GDAL Streamed Algorithm / . (PROGRAM-SPECIFIC OPTIONS) --curve . LINESTRING ==> COMPOUNDCURVE POLYGON ==> CURVEPOLYGON. . --linear . --dim (XY XYZ XYM XYZM). Z M 0 . --geometry-type . --feature-only . --geometry-type GEOMETRY POINT LINESTRING POLYGON MULTIPOINT MULTILINESTRING MULTIPOLYGON GEOMETRYCOLLECTION CURVE CIRCULARSTRING COMPOUNDCURVE SURFACE CURVEPOLYGON MULTICURVE MULTISURFACE POLYHEDRALSURFACE TIN. Z M ZM . --multi --single --linear --curve --dim . --layer-only . (unknown) . --linear / . OGR_ARC_STEPSIZE OGR_ARC_MAX_GAP ( vector_common_options --config ) . COMPOUNDCURVE ==> LINESTRING. --curve . --multi MULTI. POINT ==> MULTIPOINT. --single . --single MULTI. MULTIPOINT ==> POINT. --multi . MultiPoint MultiLinestring . MultiPolygon ( OGC Simple Features ) . --skip ( Point LineString). ( ). --geometry-type --multi --single --linear --curve . (STANDARD OPTIONS) --active-geometry . . . . --active-layer . --active-layer . . . . --append () . . --co, --creation-option = . GeoPackage . . . --formats . (Vector drivers) . . --if, --input-format / () . . . . . . --input-layer . . --active-layer . --lco, --layer-creation-option = . GeoPackage . . . --formats . (Vector drivers) . . --oo, --open-option = ( ). . -f, --of, --format, --output-format . : gdal --formats | grep vector | grep rw | sort --output-layer . . --output-open-option, --output-oo = 3.12 . ( ). . --overwrite . gdal . --overwrite-layer . --skip-errors 3.12 . () . . --update . --upsert 3.12 . --append OGRLayer::UpsertFeature() OGRLayer::CreateFeature() . : GPKG -- GeoPackage vector Elasticsearch: Geographically Encoded Objects for Elasticsearch MongoDBv3 ( upsert GDAL_DCAP_UPSERT ). / (upsert) FID ( FID ) . FID . GPKG / FID ( --unset-fid gdal vector edit FID ) (UNIQUE) . (RETURN STATUS CODE) 0 ( ). (EXAMPLES) : GeoPackage (Multipolygons). $ gdal vector set-geom-type --geometry-type=MULTIPOLYGON in.shp out.gpkg --overwrite : GeoPackage Shapefile ( ). $ gdal vector set-geom-type --linear in.gpkg out.shp --overwrite (AUTHOR) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-VECTOR-SET-GEOM-TYPE(1)