Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
RoelvandenBerg committed May 27, 2024
1 parent 85ab78d commit de315c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geopackage_validator/validations/geometry_dimension_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def query_dimensions(dataset) -> Iterable[Tuple[str, str]]:
validations = dataset.ExecuteSQL(
DIMENSION_QUERY.format(table_name=table_name, geom_column_name=column_name)
)

validation_list = [(z, m, ndims) for z, m, ndims in validations]
validation_list = [] if validations is None else [(z, m, ndims) for z, m, ndims in validations]

if validation_list:
four_dimensions = all(ndims == 4 for z, m, ndims in validation_list)
Expand Down

0 comments on commit de315c6

Please sign in to comment.