Esempio n. 1
0
def test_bgt():
    """
    test bgt
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['bgt'][0]['target_dir']
    shutil.rmtree(temp_directory, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/bgt',
        temp_directory)
    fill_basiskaart(temp_directory, 'bgt')
    checkcolumns = ('ogc_fid', 'geometrie', 'identificatie_namespace',
                    'identificatie_lokaalid', 'objectbegintijd',
                    'objecteindtijd', 'tijdstipregistratie', 'eindregistratie',
                    'lv_publicatiedatum', 'bronhouder', 'inonderzoek',
                    'relatievehoogteligging', 'bgt_status', 'plus_status',
                    'bgt_fysiekvoorkomen', 'optalud', 'plus_fysiekvoorkomen')
    checktable('bgt."BGT_BTRN_grasland_agrarisch"', checkcolumns)

    checkcolumns = ('ogc_fid', 'geometrie', 'identificatie_namespace',
                    'identificatie_lokaalid', 'objectbegintijd',
                    'objecteindtijd', 'tijdstipregistratie', 'eindregistratie',
                    'lv_publicatiedatum', 'bronhouder', 'inonderzoek',
                    'relatievehoogteligging', 'bgt_status', 'plus_status',
                    'bgt_type', 'plus_type')
    checktable('bgt."BGT_OWDL_transitie"', checkcolumns)

    checkcolumns = ('ogc_fid', 'geometrie', 'identificatie_namespace',
                    'identificatie_lokaalid', 'objectbegintijd',
                    'objecteindtijd', 'tijdstipregistratie', 'eindregistratie',
                    'lv_publicatiedatum', 'bronhouder', 'inonderzoek',
                    'relatievehoogteligging', 'bgt_status', 'plus_status',
                    'bgt_type', 'plus_type')
    checktable('bgt."BGT_WDL_transitie"', checkcolumns)
def test_bgt():
    """
    test bgt
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['bgt'][0][1]
    shutil.rmtree(temp_directory, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/bgt',
        temp_directory + '/1')
    fill_basiskaart(temp_directory, 'bgt')
    checkcolumns = (
        'ogc_fid', 'geometrie', 'identificatie_namespace',
        'identificatie_lokaalid', 'objectbegintijd', 'objecteindtijd',
        'tijdstipregistratie', 'eindregistratie', 'lv_publicatiedatum',
        'bronhouder', 'inonderzoek', 'relatievehoogteligging',
        'bgt_status', 'plus_status', 'bgt_fysiekvoorkomen', 'optalud',
        'plus_fysiekvoorkomen')
    checktable('bgt."BGT_BTRN_grasland_agrarisch"', checkcolumns)

    checkcolumns = (
        'ogc_fid', 'geometrie', 'identificatie_namespace',
        'identificatie_lokaalid', 'objectbegintijd', 'objecteindtijd',
        'tijdstipregistratie', 'eindregistratie', 'lv_publicatiedatum',
        'bronhouder', 'inonderzoek', 'relatievehoogteligging',
        'bgt_status', 'plus_status', 'bgt_type', 'plus_type')
    checktable('bgt."BGT_OWDL_transitie"', checkcolumns)

    checkcolumns = (
        'ogc_fid', 'geometrie', 'identificatie_namespace',
        'identificatie_lokaalid', 'objectbegintijd', 'objecteindtijd',
        'tijdstipregistratie', 'eindregistratie', 'lv_publicatiedatum',
        'bronhouder', 'inonderzoek', 'relatievehoogteligging',
        'bgt_status', 'plus_status', 'bgt_type', 'plus_type')
    checktable('bgt."BGT_WDL_transitie"', checkcolumns)
Esempio n. 3
0
def test_kbk50():
    """
    Test kbk50
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['kbk50'][0]['target_dir']
    shutil.rmtree(temp_directory, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/kbka50',
        temp_directory)
    fill_basiskaart(temp_directory, 'kbk50')

    checkcolumns = ('ogc_fid', 'geom', 'KRT_A_w_ID', 'AREA')
    checktable('kbk50."KRT_A_wegnummer_bord"', checkcolumns)
def test_kbk50():
    """
    Test kbk50
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['kbk50'][0][1]
    shutil.rmtree(temp_directory, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/kbka50',
        temp_directory + '/1')
    fill_basiskaart(temp_directory, 'kbk50')

    checkcolumns = ('ogc_fid', 'geom', 'KRT_A_w_ID', 'AREA')
    checktable('kbk50."KRT_A_wegnummer_bord"', checkcolumns)
def setup_module():
    """
    Load the data
    """
    tmpdir = SOURCE_DATA_MAP['bgt'][0][1]
    shutil.rmtree(tmpdir, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/views',
        tmpdir + '/1')

    fill_basiskaart(tmpdir, 'bgt')

    create_views_based_on_workbook()

    create_indexes()
Esempio n. 6
0
def setup_module():
    """
    Load the data
    """
    tmpdir = SOURCE_DATA_MAP['bgt'][0]['target_dir']
    shutil.rmtree(tmpdir, ignore_errors=True)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/views',
        tmpdir)

    fill_basiskaart(tmpdir, 'bgt')

    create_views_based_on_workbook()

    create_indexes()
Esempio n. 7
0
def test_kbk10():
    """
    Test kbk10
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['kbk10'][0]['target_dir']
    shutil.rmtree(temp_directory, ignore_errors=True)
    os.path.realpath(__file__)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/kbk10',
        temp_directory)
    fill_basiskaart(temp_directory, 'kbk10')

    checkcolumns = ('ogc_fid', 'geom', 'WDL_bre_ID', 'AREA')
    checktable('kbk10."WDL_breed_water"', checkcolumns)
def test_kbk10():
    """
    Test kbk10
    :return:
    """
    temp_directory = SOURCE_DATA_MAP['kbk10'][0][1]
    shutil.rmtree(temp_directory, ignore_errors=True)
    os.path.realpath(__file__)
    shutil.copytree(
        os.path.dirname(os.path.realpath(__file__)) + '/fixtures/kbk10',
        temp_directory + '/1')
    fill_basiskaart(temp_directory, 'kbk10')

    checkcolumns = ('ogc_fid', 'geom', 'WDL_bre_ID', 'AREA')
    checktable('kbk10."WDL_breed_water"', checkcolumns)