• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python test_cli_utilities.get_gdal_translate_path函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中test_cli_utilities.get_gdal_translate_path函数的典型用法代码示例。如果您正苦于以下问题:Python get_gdal_translate_path函数的具体用法?Python get_gdal_translate_path怎么用?Python get_gdal_translate_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_gdal_translate_path函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_gdalwarp_34

def test_gdalwarp_34():
    if test_cli_utilities.get_gdalwarp_path() is None:
        pytest.skip()
    if test_cli_utilities.get_gdal_translate_path() is None:
        pytest.skip()

    try:
        os.remove('tmp/testgdalwarp34.tif')
    except OSError:
        pass

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' ../gcore/data/byte.tif tmp/testgdalwarp34src_1.tif -srcwin 0 0 10 20')
    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' ../gcore/data/byte.tif tmp/testgdalwarp34src_2.tif -srcwin 10 0 10 20')
    gdaltest.runexternal(test_cli_utilities.get_gdalwarp_path() + ' tmp/testgdalwarp34src_1.tif tmp/testgdalwarp34src_2.tif tmp/testgdalwarp34.tif')
    os.remove('tmp/testgdalwarp34src_1.tif')
    os.remove('tmp/testgdalwarp34src_2.tif')

    ds = gdal.Open('tmp/testgdalwarp34.tif')
    cs = ds.GetRasterBand(1).Checksum()
    gt = ds.GetGeoTransform()
    xsize = ds.RasterXSize
    ysize = ds.RasterYSize
    ds = None

    os.remove('tmp/testgdalwarp34.tif')

    assert xsize == 20 and ysize == 20, 'bad dimensions'

    assert cs == 4672, 'bad checksum'

    expected_gt = (440720.0, 60.0, 0.0, 3751320.0, 0.0, -60.0)
    for i in range(6):
        assert abs(gt[i] - expected_gt[i]) <= 1e-5, 'bad gt'
开发者ID:AsgerPetersen,项目名称:gdal,代码行数:33,代码来源:test_gdalwarp.py


示例2: test_gdal_translate_23

def test_gdal_translate_23():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -stats ../gcore/data/byte.tif tmp/test_gdal_translate_23.tif')

    ds = gdal.Open('tmp/test_gdal_translate_23.tif')
    md = ds.GetRasterBand(1).GetMetadata()
    ds = None

    if md['STATISTICS_MINIMUM'] != '74':
        gdaltest.post_reason('STATISTICS_MINIMUM is wrong.')
        print(md['STATISTICS_MINIMUM'])
        return 'fail'

    try:
        os.stat('tmp/test_gdal_translate_23.tif.aux.xml')
        gdaltest.post_reason('did not expect .aux.xml file presence')
        return 'fail'
    except OSError:
        pass

    gdal.Unlink('../gcore/data/byte.tif.aux.xml')

    return 'success'
开发者ID:hdfeos,项目名称:gdal,代码行数:25,代码来源:test_gdal_translate.py


示例3: test_gdal_translate_32

def test_gdal_translate_32():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' ../gcore/data/byte_rpc.tif tmp/test_gdal_translate_32.tif -srcwin 1 2 13 14 -outsize 150% 300%')
    ds = gdal.Open('tmp/test_gdal_translate_32.tif')
    md = ds.GetMetadata('RPC')
    if abs(float(md['LINE_OFF']) - 47496) > 1e-5 or \
       abs(float(md['LINE_SCALE']) - 47502) > 1e-5 or \
       abs(float(md['SAMP_OFF']) - 19676.6923076923) > 1e-5 or \
       abs(float(md['SAMP_SCALE']) - 19678.1538461538) > 1e-5:
        gdaltest.post_reason('fail')
        print(md)
        return 'fail'

    gdaltest.runexternal_out_and_err(test_cli_utilities.get_gdal_translate_path() + ' ../gcore/data/byte_rpc.tif tmp/test_gdal_translate_32.tif -srcwin -10 -5 20 20')
    ds = gdal.Open('tmp/test_gdal_translate_32.tif')
    md = ds.GetMetadata('RPC')
    if abs(float(md['LINE_OFF']) - (15834 - -5)) > 1e-5 or \
       abs(float(md['LINE_SCALE']) - 15834) > 1e-5 or \
       abs(float(md['SAMP_OFF']) - (13464 - -10)) > 1e-5 or \
       abs(float(md['SAMP_SCALE']) - 13464) > 1e-5:
        gdaltest.post_reason('fail')
        print(md)
        return 'fail'

    return 'success'
开发者ID:hdfeos,项目名称:gdal,代码行数:27,代码来源:test_gdal_translate.py


示例4: test_gdal_translate_38

def test_gdal_translate_38():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -q -of hfa tmp/test_gdal_translate_37.tif tmp/test_gdal_translate_38.img')

    ds = gdal.Open('tmp/test_gdal_translate_38.img')
    if ds is None:
        return 'fail'

    rat = ds.GetRasterBand(1).GetDefaultRAT()
    if not rat:
        gdaltest.post_reason('Did not get RAT')
        return 'fail'

    if not rat.GetRowCount() == 256:
        gdaltest.post_reason('RAT has incorrect row count')
        return 'fail'

    if rat.GetTableType() != 0:
        gdaltest.post_reason('RAT not thematic')
        return 'fail'
    rat = None
    ds = None

    return 'success'
开发者ID:hdfeos,项目名称:gdal,代码行数:26,代码来源:test_gdal_translate.py


示例5: test_gdal_translate_8

def test_gdal_translate_8():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -a_srs EPSG:26711 -gcp 0 0  440720.000 3751320.000 -gcp 20 0 441920.000 3751320.000 -gcp 20 20 441920.000 3750120.000 0 -gcp 0 20 440720.000 3750120.000 ../gcore/data/byte.tif tmp/test8.tif')

    ds = gdal.Open('tmp/test8.tif')
    if ds is None:
        return 'fail'

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason('Bad checksum')
        return 'fail'

    gcps = ds.GetGCPs()
    if len(gcps) != 4:
        gdaltest.post_reason('GCP count wrong.')
        return 'fail'

    if ds.GetGCPProjection().find('26711') == -1:
        gdaltest.post_reason('Bad GCP projection.')
        return 'fail'

    ds = None

    return 'success'
开发者ID:hdfeos,项目名称:gdal,代码行数:26,代码来源:test_gdal_translate.py


示例6: vrtmisc_9

def vrtmisc_9():
    import test_cli_utilities
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'
   
    # -scale and -exponent repeated as many times as output band number
    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -of VRT data/byte.tif tmp/vrtmisc_9.vrt -scale 0 255 0 255 -scale 74 255 0 255 -exponent 1 -exponent 2.2 -b 1 -b 1')

    ds = gdal.Open('tmp/vrtmisc_9.vrt')
    cs1 = ds.GetRasterBand(1).Checksum()
    cs2 = ds.GetRasterBand(2).Checksum()
    ds = None

    os.remove('tmp/vrtmisc_9.vrt')

    if cs1 != 4672:
        gdaltest.post_reason('did not get expected checksum')
        print(cs1)
        return 'fail'
    if cs2 != 4159:
        gdaltest.post_reason('did not get expected checksum')
        print(cs2)
        return 'fail'

    return 'success'
开发者ID:samalone,项目名称:gdal-ios,代码行数:25,代码来源:vrtmisc.py


示例7: test_gdalbuildvrt_14

def test_gdalbuildvrt_14():
    if test_cli_utilities.get_gdalbuildvrt_path() is None:
        return "skip"
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdalbuildvrt_path()
        + " tmp/test_gdalbuildvrt_14.vrt ../gcore/data/byte.tif -r cubic -tr 30 30"
    )

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -of VRT ../gcore/data/byte.tif tmp/test_gdalbuildvrt_14_ref.vrt -r cubic -outsize 40 40"
    )

    ds = gdal.Open("tmp/test_gdalbuildvrt_14.vrt")
    ds_ref = gdal.Open("tmp/test_gdalbuildvrt_14_ref.vrt")
    cs = ds.GetRasterBand(1).Checksum()
    cs_ref = ds_ref.GetRasterBand(1).Checksum()
    ds = None
    ds_ref = None

    if cs != cs_ref:
        gdaltest.post_reason("fail")
        print(cs)
        print(cs_ref)
        return "fail"

    return "success"
开发者ID:rashadkm,项目名称:lib_gdal,代码行数:30,代码来源:test_gdalbuildvrt.py


示例8: test_gdal_translate_8

def test_gdal_translate_8():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -a_srs EPSG:26711 -gcp 0 0  440720.000 3751320.000 -gcp 20 0 441920.000 3751320.000 -gcp 20 20 441920.000 3750120.000 0 -gcp 0 20 440720.000 3750120.000 ../gcore/data/byte.tif tmp/test8.tif"
    )

    ds = gdal.Open("tmp/test8.tif")
    if ds is None:
        return "fail"

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    gcps = ds.GetGCPs()
    if len(gcps) != 4:
        gdaltest.post_reason("GCP count wrong.")
        return "fail"

    if ds.GetGCPProjection().find("26711") == -1:
        gdaltest.post_reason("Bad GCP projection.")
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:29,代码来源:test_gdal_translate.py


示例9: test_gdal_translate_12

def test_gdal_translate_12():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -a_ullr 440720.000 3751320.000 441920.000 3750120.000 ../gcore/data/byte.tif tmp/test12.tif"
    )

    ds = gdal.Open("tmp/test12.tif")
    if ds is None:
        return "fail"

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    if not gdaltest.geotransform_equals(
        gdal.Open("../gcore/data/byte.tif").GetGeoTransform(), ds.GetGeoTransform(), 1e-9
    ):
        gdaltest.post_reason("Bad geotransform")
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:26,代码来源:test_gdal_translate.py


示例10: test_gdal_translate_35

def test_gdal_translate_35():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    (out, err) = gdaltest.runexternal_out_and_err(test_cli_utilities.get_gdal_translate_path())
    if err.find("No source dataset specified") < 0:
        gdaltest.post_reason("fail")
        print(err)
        return "fail"

    (out, err) = gdaltest.runexternal_out_and_err(
        test_cli_utilities.get_gdal_translate_path() + " ../gcore/data/byte.tif"
    )
    if err.find("No target dataset specified") < 0:
        gdaltest.post_reason("fail")
        print(err)
        return "fail"

    (out, err) = gdaltest.runexternal_out_and_err(
        test_cli_utilities.get_gdal_translate_path() + " /non_existing_path/non_existing.tif /vsimem/out.tif"
    )
    if err.find("does not exist in the file system") < 0:
        gdaltest.post_reason("fail")
        print(err)
        return "fail"

    (out, err) = gdaltest.runexternal_out_and_err(
        test_cli_utilities.get_gdal_translate_path() + " ../gcore/data/byte.tif /non_existing_path/non_existing.tif"
    )
    if err.find("Attempt to create new tiff file") < 0:
        gdaltest.post_reason("fail")
        print(err)
        return "fail"

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:35,代码来源:test_gdal_translate.py


示例11: test_gdal_translate_4

def test_gdal_translate_4():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path() + " -b 3 -b 2 -b 1 ../gcore/data/rgbsmall.tif tmp/test4.tif"
    )

    ds = gdal.Open("tmp/test4.tif")
    if ds is None:
        return "fail"

    if ds.GetRasterBand(1).Checksum() != 21349:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    if ds.GetRasterBand(2).Checksum() != 21053:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    if ds.GetRasterBand(3).Checksum() != 21212:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:27,代码来源:test_gdal_translate.py


示例12: test_gdal_translate_31

def test_gdal_translate_31():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -projwin_srs EPSG:4267 -projwin -117.641168620797 33.9023526904262 -117.628110837847 33.8915970129613 ../gcore/data/byte.tif tmp/test_gdal_translate_31.tif"
    )

    ds = gdal.Open("tmp/test_gdal_translate_31.tif")
    if ds is None:
        return "fail"

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    if not gdaltest.geotransform_equals(
        gdal.Open("../gcore/data/byte.tif").GetGeoTransform(), ds.GetGeoTransform(), 1e-7
    ):
        gdaltest.post_reason("Bad geotransform")
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:26,代码来源:test_gdal_translate.py


示例13: test_gdalwarp_5

def test_gdalwarp_5():
    if test_cli_utilities.get_gdalwarp_path() is None:
        return 'skip'

    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -a_srs EPSG:26711 -gcp 0 0  440720.000 3751320.000 -gcp 20 0 441920.000 3751320.000 -gcp 20 20 441920.000 3750120.000 0 -gcp 0 20 440720.000 3750120.000 ../gcore/data/byte.tif tmp/testgdalwarp_gcp.tif')
    
    gdaltest.runexternal(test_cli_utilities.get_gdalwarp_path() + ' tmp/testgdalwarp_gcp.tif tmp/testgdalwarp5.tif')

    ds = gdal.Open('tmp/testgdalwarp5.tif')
    if ds is None:
        return 'fail'

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason('Bad checksum')
        return 'fail'

    if not gdaltest.geotransform_equals(gdal.Open('../gcore/data/byte.tif').GetGeoTransform(), ds.GetGeoTransform(), 1e-9) :
        gdaltest.post_reason('Bad geotransform')
        return 'fail'

    ds = None

    return 'success'
开发者ID:samalone,项目名称:gdal-ios,代码行数:26,代码来源:test_gdalwarp.py


示例14: test_gdaldem_color_relief_from_float32

def test_gdaldem_color_relief_from_float32():
    if test_cli_utilities.get_gdaldem_path() is None:
        return 'skip'
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -ot Float32 ../gdrivers/data/n43.dt0 tmp/n43_float32.tif')
    gdaltest.runexternal(test_cli_utilities.get_gdaldem_path() + ' color-relief tmp/n43_float32.tif data/color_file.txt tmp/n43_colorrelief_from_float32.tif')
    ds = gdal.Open('tmp/n43_colorrelief_from_float32.tif')
    if ds is None:
        return 'fail'

    if ds.GetRasterBand(1).Checksum() != 55009:
        print(ds.GetRasterBand(1).Checksum())
        gdaltest.post_reason('Bad checksum')
        return 'fail'

    if ds.GetRasterBand(2).Checksum() != 37543:
        print(ds.GetRasterBand(2).Checksum())
        gdaltest.post_reason('Bad checksum')
        return 'fail'

    if ds.GetRasterBand(3).Checksum() != 47711:
        print(ds.GetRasterBand(3).Checksum())
        gdaltest.post_reason('Bad checksum')
        return 'fail'

    ds = None

    return 'success'
开发者ID:geo-data,项目名称:go-gdal,代码行数:30,代码来源:test_gdaldem.py


示例15: vrtmisc_4

def vrtmisc_4():
    import test_cli_utilities
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    # -scale specified once applies to all bands
    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -of VRT data/byte.tif tmp/vrtmisc_4.vrt -scale 74 255 0 255 -b 1 -b 1')

    ds = gdal.Open('tmp/vrtmisc_4.vrt')
    cs1 = ds.GetRasterBand(1).Checksum()
    cs2 = ds.GetRasterBand(2).Checksum()
    ds = None

    os.remove('tmp/vrtmisc_4.vrt')

    if cs1 != 4323:
        gdaltest.post_reason('did not get expected checksum')
        print(cs1)
        return 'fail'
    if cs2 != 4323:
        gdaltest.post_reason('did not get expected checksum')
        print(cs2)
        return 'fail'

    return 'success'
开发者ID:samalone,项目名称:gdal-ios,代码行数:25,代码来源:vrtmisc.py


示例16: test_gdal_translate_18

def test_gdal_translate_18():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path() + " ../gcore/data/8bit_pal.bmp -of VRT tmp/test18_1.vrt"
    )
    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path() + " tmp/test18_1.vrt -expand rgb -of VRT tmp/test18_2.vrt"
    )
    (ret_stdout, ret_stderr) = gdaltest.runexternal_out_and_err(
        test_cli_utilities.get_gdal_translate_path() + " tmp/test18_2.vrt tmp/test18_2.tif"
    )

    # Check that all datasets are closed
    if ret_stderr.find("Open GDAL Datasets") != -1:
        return "fail"

    ds = gdal.Open("tmp/test18_2.tif")
    if ds is None:
        return "fail"

    if ds.GetRasterBand(1).Checksum() != 4672:
        gdaltest.post_reason("Bad checksum")
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:29,代码来源:test_gdal_translate.py


示例17: vrtmisc_8

def vrtmisc_8():
    import test_cli_utilities
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    # -scale_2 and -exponent_2 apply to band 2 only
    gdaltest.runexternal(test_cli_utilities.get_gdal_translate_path() + ' -of VRT data/byte.tif tmp/vrtmisc_8.vrt -scale_2 74 255 0 255 -exponent_2 2.2 -b 1 -b 1')

    ds = gdal.Open('tmp/vrtmisc_8.vrt')
    cs1 = ds.GetRasterBand(1).Checksum()
    cs2 = ds.GetRasterBand(2).Checksum()
    ds = None

    os.remove('tmp/vrtmisc_8.vrt')

    if cs1 != 4672:
        gdaltest.post_reason('did not get expected checksum')
        print(cs1)
        return 'fail'
    if cs2 != 4159:
        gdaltest.post_reason('did not get expected checksum')
        print(cs2)
        return 'fail'

    return 'success'
开发者ID:samalone,项目名称:gdal-ios,代码行数:25,代码来源:vrtmisc.py


示例18: test_gdal_translate_20

def test_gdal_translate_20():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -a_nodata 255 ../gcore/data/byte.tif tmp/test_gdal_translate_20_src.tif"
    )
    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -a_nodata None tmp/test_gdal_translate_20_src.tif tmp/test_gdal_translate_20_dst.tif"
    )

    ds = gdal.Open("tmp/test_gdal_translate_20_dst.tif")
    if ds is None:
        return "fail"

    nodata = ds.GetRasterBand(1).GetNoDataValue()
    if nodata != None:
        print(nodata)
        return "fail"

    ds = None

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:25,代码来源:test_gdal_translate.py


示例19: vrtmask_9

def vrtmask_9():
    import test_cli_utilities
    if test_cli_utilities.get_gdal_translate_path() is None:
        return 'skip'

    src_ds = gdal.GetDriverByName('GTiff').Create('tmp/vrtmask_9_src.tif', 10, 10, 4)
    del src_ds

    (_, err) = gdaltest.runexternal_out_and_err(test_cli_utilities.get_gdal_translate_path() + ' tmp/vrtmask_9_src.tif tmp/vrtmask_9_dst.tif -b 1 -b 2 -b 3')

    ds = gdal.Open('tmp/vrtmask_9_dst.tif')
    flags = ds.GetRasterBand(1).GetMaskFlags()
    ds = None

    os.remove('tmp/vrtmask_9_src.tif')
    os.remove('tmp/vrtmask_9_dst.tif')
    if err != '':
        gdaltest.post_reason('unexpected output on standard err')
        print(err)
        return 'fail'

    if flags != gdal.GMF_ALL_VALID:
        print(flags)
        return 'fail'

    return 'success'
开发者ID:ksshannon,项目名称:gdal,代码行数:26,代码来源:vrtmask.py


示例20: test_gdal_translate_21

def test_gdal_translate_21():
    if test_cli_utilities.get_gdal_translate_path() is None:
        return "skip"

    gdaltest.runexternal(
        test_cli_utilities.get_gdal_translate_path()
        + " -of HFA ../gcore/data/utmsmall.img tmp/test_gdal_translate_21.img"
    )

    ds = gdal.Open("tmp/test_gdal_translate_21.img")
    md = ds.GetRasterBand(1).GetMetadata()
    ds = None

    if md["STATISTICS_MINIMUM"] != "8":
        gdaltest.post_reason("STATISTICS_MINIMUM is wrong.")
        print(md["STATISTICS_MINIMUM"])
        return "fail"

    if (
        md["STATISTICS_HISTOBINVALUES"]
        != "0|0|0|0|0|0|0|0|8|0|0|0|0|0|0|0|23|0|0|0|0|0|0|0|0|29|0|0|0|0|0|0|0|46|0|0|0|0|0|0|0|69|0|0|0|0|0|0|0|99|0|0|0|0|0|0|0|0|120|0|0|0|0|0|0|0|178|0|0|0|0|0|0|0|193|0|0|0|0|0|0|0|212|0|0|0|0|0|0|0|281|0|0|0|0|0|0|0|0|365|0|0|0|0|0|0|0|460|0|0|0|0|0|0|0|533|0|0|0|0|0|0|0|544|0|0|0|0|0|0|0|0|626|0|0|0|0|0|0|0|653|0|0|0|0|0|0|0|673|0|0|0|0|0|0|0|629|0|0|0|0|0|0|0|0|586|0|0|0|0|0|0|0|541|0|0|0|0|0|0|0|435|0|0|0|0|0|0|0|348|0|0|0|0|0|0|0|341|0|0|0|0|0|0|0|0|284|0|0|0|0|0|0|0|225|0|0|0|0|0|0|0|237|0|0|0|0|0|0|0|172|0|0|0|0|0|0|0|0|159|0|0|0|0|0|0|0|105|0|0|0|0|0|0|0|824|"
    ):
        gdaltest.post_reason("STATISTICS_HISTOBINVALUES is wrong.")
        return "fail"

    return "success"
开发者ID:geo-data,项目名称:go-gdal,代码行数:26,代码来源:test_gdal_translate.py



注:本文中的test_cli_utilities.get_gdal_translate_path函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap