本文整理匯總了Python中region.Region.contour方法的典型用法代碼示例。如果您正苦於以下問題:Python Region.contour方法的具體用法?Python Region.contour怎麽用?Python Region.contour使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類region.Region
的用法示例。
在下文中一共展示了Region.contour方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: float
# 需要導入模塊: from region import Region [as 別名]
# 或者: from region.Region import contour [as 別名]
north_lat = float(north_lat)
west_lng = float(west_lng)
east_lng = float(east_lng)
region = Region(north_lat, east_lng, south_lat, west_lng,
resolution=int(args.resolution), no_cache=args.no_cache,
padding_pct=float(args.padding_pct),
srtm_format=int(args.srtm_format),
patch_mode=args.patch_mode, auto_parse=False)
if not args.only_gps:
region.overlay_map()
contour_filename_suffix = ""
if int(args.contour) > 0:
region.contour(int(args.contour))
contour_filename_suffix = "-contour-%s" % args.contour
if args.overlay_gps:
region.overlay_gps(gpx_manager.gpx, thickness=int(args.thickness),
elevation_delta=args.overlay_delta)
if region.aspect_ratio < 0:
height = width / region.aspect_ratio
else:
height = width * region.aspect_ratio
height = height / region.distance_ratio # correct for lng distance diff
medfilt_filename_suffix = ""
if args.median_filter != '-1':