本文整理匯總了Python中region.Region.overlay_gps方法的典型用法代碼示例。如果您正苦於以下問題:Python Region.overlay_gps方法的具體用法?Python Region.overlay_gps怎麽用?Python Region.overlay_gps使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類region.Region
的用法示例。
在下文中一共展示了Region.overlay_gps方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Region
# 需要導入模塊: from region import Region [as 別名]
# 或者: from region.Region import overlay_gps [as 別名]
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':
print "median filtering"
region.median_filter(kernel_size=int(args.median_filter))
medfilt_filename_suffix = "-medfilt_%s" % args.median_filter
fig = plt.figure(frameon=False)