DMA32
  _   ˆl–Ým_J*_)%ÕÆÞ¸”Å£“þY«6Y^+òFëÒ<¦öjÿŸÅÍÌË356_‹I|¥Žƒî4ÃVŸa–Ü4ý( ©¤ýÔâ€rã-Üiµ1hßÊ d    ‹      �’MnÂ0…÷>…wq8ûJtÓu¥^Áu0õO:¶[RÊÝk'Ä¨ªn¢Ì›—ço&®¢ê**B¤³>Ð#ECOtMÞ£B`ÕÆ7:£<øª>»¶Ú½Î=¼‰Aé&Ë|±)ÛÂáÚ6`¿ÅfÀ¸kWVÔ—ÊÙâêDØÍ]¹.M4OÎ†~�#G±A“œÄ¸6jàpèŸœÌ�Ì±4É&Z™9Æš2)ä–ôú%u]ð5=:ŒÀ¥�Ï:´¬N2BˆhÇ=ð4¸ §[4.Ë0ç·ÇÔ›‚T*·¨Bÿ’²§û¯ÁZ'„ô$DøÞJZ rgŒøóÔËŸËëŸB�w‡e‰ï�²Gµ`çÁV‹ïa_«E]ÕËt!½ÒI~ c2ZçÛXÑÓl´—ñ’fè!Þs#:Æºš®ÓÜ¬ËY2¢W0ÅmJ(iuÞÂäzfö    C   ˆl–Ðz¾”d
eJeAà�q�)‹Fÿ�þ[dY¹Yx‰¢3+ÀþÈ„D'ÿÎ_ŠI|¥�+Wé3ž¯ÀÌ ?÷     #!/usr/bin/env python3
# *****************************************************************************
# $Id$
#
# Project:  OpenGIS Simple Features Reference Implementation
# Purpose:  Python port of a simple client for viewing OGR driver data.
# Author:   Even Rouault, <even dot rouault at spatialys.com>
#
# Port from ogrinfo.cpp whose author is Frank Warmerdam
#
# *****************************************************************************
# Copyright (c) 2010-2013, Even Rouault <even dot rouault at spatialys.com>
# Copyright (c) 1999, Frank Warmerdam
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# ***************************************************************************/

# Note : this is the most direct port of ogrinfo.cpp possible
# It could be made much more Python'ish !

import sys

from osgeo import gdal, ogr

bReadOnly = False
bVerbose = True
bSummaryOnly = False
nFetchFID = ogr.NullFID
papszOptions = None


def EQUAL(a, b):
    return a.lower() == b.lower()


# **********************************************************************
#                                main()
# **********************************************************************


def main(argv=None):
    global bReadOnly
    global bVerbose
    global bSummaryOnly
    global nFetchFID
    global papszOptions

    version_num = int(gdal.VersionInfo("VERSION_NUM"))
    if version_num < 1800:  # because of ogr.GetFieldTypeName
        print("ERROR: Python bindings of GDAL 1.8.0 or later required")
        return 1

    pszWHERE = None
    pszDataSource = None
    papszLayers = None
    poSpatialFilter = None
    nRepeatCount = 1
    bAllLayers = False
    pszSQLStatement = None
    pszDialect = None
    options = {}
    pszGeomField = None

    if argv is None:
        argv = sys.argv

    argv = ogr.GeneralCmdLineProcessor(argv)

    # --------------------------------------------------------------------
    #      Processing command line arguments.
    # --------------------------------------------------------------------
    if argv is None:
        return 2

    nArgc = len(argv)

    iArg = 1
    while iArg < nArgc:

        if EQUAL(argv[iArg], "--utility_version"):
            print(
                "%s is running against GDAL %s"
                % (argv[0], gdal.VersionInfo("RELEASE_NAME"))
            )
            return 0

        elif EQUAL(argv[iArg], "-ro"):
            bReadOnly = True
        elif EQUAL(argv[iArg], "-q") or EQUAL(argv[iArg], "-quiet"):
            bVerbose = False
        eli