Lowercase for geometry types

Cog test failed in CI, but these are case insensitive anyway.
This commit is contained in:
Simon Willison 2025-10-01 13:32:09 -07:00
commit 370318c695
2 changed files with 9 additions and 9 deletions

View file

@ -1479,7 +1479,7 @@ See :ref:`cli_spatialite`.
paths. To load it from a specific path, use --load-extension. paths. To load it from a specific path, use --load-extension.
Options: Options:
-t, --type [POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION|GEOMETRY] -t, --type [point|linestring|polygon|multipoint|multilinestring|multipolygon|geometrycollection|geometry]
Specify a geometry type for this column. Specify a geometry type for this column.
[default: GEOMETRY] [default: GEOMETRY]
--srid INTEGER Spatial Reference ID. See --srid INTEGER Spatial Reference ID. See

View file

@ -3071,14 +3071,14 @@ def convert(
"geometry_type", "geometry_type",
type=click.Choice( type=click.Choice(
[ [
"POINT", "point",
"LINESTRING", "linestring",
"POLYGON", "polygon",
"MULTIPOINT", "multipoint",
"MULTILINESTRING", "multilinestring",
"MULTIPOLYGON", "multipolygon",
"GEOMETRYCOLLECTION", "geometrycollection",
"GEOMETRY", "geometry",
], ],
case_sensitive=False, case_sensitive=False,
), ),