此SVG文件的PNG预览的大小:512 × 512像素。
原始文件 (SVG文件,尺寸为512 × 512像素,文件大小:163 KB)
摘要
描述 |
English: Azimuthal equidistant projection of estimated maximum range of some North Korean missiles based on data from http://ichef.bbci.co.uk/news/624/cpsprodpb/26F5/production/_88837990_north_korea_missile_ranges2_map624new.png . Deutsch: Geschätzte Reichweite nordkoreanischer Raketen auf Basis der folgenden Daten http://ichef.bbci.co.uk/news/624/cpsprodpb/26F5/production/_88837990_north_korea_missile_ranges2_map624new.png . |
日期 | 2013-04-04 |
来源 | 作者自己的作品;衍生自North-korean-missile-ranges.svg(作者:TUBS)。 |
作者 | Cmglee |
convert_absolute_to_relative_svg_path.py
Python2 source |
---|
#!/usr/bin/env python
PATH_OUT = 'out.txt'
PATHD = "..."
import re
pathds = re.findall(r'[A-Z][^A-Za-z]+', '%s ' % (PATHD))
outs = []
x_previous = None
y_previous = None
for (i_pathd, pathd) in enumerate(pathds):
fields = (re.sub(r'([A-Z]+)', r'\1\t', re.sub(r'[\s,]+', '\t', pathd)).
split('\t'))
# print(fields)
command = fields[0]
if (fields[1] == '' or fields[2] == ''): ## "Z"
outs.append(command)
else:
x = round(float(fields[1]))
y = round(float(fields[2]))
if (i_pathd == 0): ## first point
outs.append('%s%d,%d' % (command, x, y))
else:
x_out = x - x_previous
y_out = y - y_previous
command = command.lower()
if (command != 'l' or (x_out != 0 and y_out != 0)):
outs.append('%s%d,%d' % (command, x_out, y_out))
else:
if (x_out != 0): outs.append('h%d' % (x_out))
elif (y_out != 0): outs.append('v%d' % (y_out))
else: pass ## same point after rounding
x_previous = x
y_previous = y
print(len(outs))
f_out = open(PATH_OUT, 'wt')
f_out.write(''.join(outs))
f_out.close()
|
许可协议
本作品著作权人,特采用下列许可条款发表本作品:
本文件采用知识共享署名-相同方式共享 3.0 未本地化版本(CC BY-SA 3.0)许可协议授权。
- 您可以自由地:
- 共享 – 在任何介质以任何形式复制、发行本作品
- 演绎 – 演绎、转换或以本作品为基础进行创作
- 惟须遵守下列条件:
- 署名 – 您必须给出适当的署名,提供指向本许可协议的链接,同时标明是否(对原始作品)作了演绎。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
- 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须基于与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
- 特此授权您根据自由软件基金会发布的《GNU自由文档许可证》(GNU Free Documentation License, GFDL)第1.3版或后续任意版本条款下再分发和(或)修改本文档;无固定段落(Invariant Sections)、封面文字(Front-Cover Texts)及封底文字(Back-Cover Texts)要求。
- 该协议的副本应已包含于“GNU Free Documentation License”一章中。
您可按需选择其中一个许可协议执行。
原始上传日志
This image is a derivative work of the following images:
- File:North_Korea_on_the_globe_(Japan_centered).svg licensed with Cc-by-sa-3.0, GFDL
- 2011-04-27T07:27:57Z TUBS 1246x1246 (1188392 Bytes)
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2023年10月8日 (日) 19:47 | 512 × 512(163 KB) | BXHS-bot(留言 | 贡献) | 自其他网站迁移文件 |
您不可以覆盖此文件。
文件用途
以下3个页面使用本文件: