[gdal-dev] Issue with validate_gpkg.py

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Nov 29 01:48:41 PST 2018


Thanks Brad, works after those edits and gives me an occasion to have a try with a pull request!

-Jukka-

Lähettäjä: bradh at frogmouth.net [mailto:bradh at frogmouth.net]
Lähetetty: 29. marraskuuta 2018 11:43
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>; gdal-dev at lists.osgeo.org
Aihe: RE: [gdal-dev] Issue with validate_gpkg.py

Looks like (line 59)
type.startswith('TEXT(') or type.startswith('BLOB(')
Should be
typ.startswith('TEXT(') or typ.startswith('BLOB(')

(i.e. remove the two "e" characters)

Brad

From: gdal-dev <gdal-dev-bounces at lists.osgeo.org<mailto:gdal-dev-bounces at lists.osgeo.org>> On Behalf Of Rahkonen Jukka (MML)
Sent: Thursday, 29 November 2018 8:36 PM
To: 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>) <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>>
Subject: [gdal-dev] Issue with validate_gpkg.py

Hi,

I try to run validate_gpkg.py that I downloaded today from GitHub. I run it under OSGeo4W installation on Windows, GDAL version GDAL 2.3.2, released 2018/09/21, and Python version Python 2.7.14.

Validation stops at this error message:

Traceback (most recent call last):
  File "validate_gpkg.py", line 1611, in <module>
    verbose=verbose)
  File "validate_gpkg.py", line 1578, in check
    checker.check()
  File "validate_gpkg.py", line 1555, in check
    self._check_features(c)
  File "validate_gpkg.py", line 596, in _check_features
    self._check_vector_user_table(c, table_name)
  File "validate_gpkg.py", line 367, in _check_vector_user_table
    self._assert(_is_valid_data_type(typ), 5,
  File "validate_gpkg.py", line 59, in _is_valid_data_type
    type.startswith('TEXT(') or type.startswith('BLOB(')
AttributeError: type object 'type' has no attribute 'startswith'

Is there something that a user can do for making the script to run?

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181129/1eb6863c/attachment.html>


More information about the gdal-dev mailing list