Skip to content

A qgis plugin to convert font coords to gis-vector .

License

Notifications You must be signed in to change notification settings

ruierzhao/font_outline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

54c0194 · Sep 10, 2024

History

19 Commits
Sep 8, 2024
Sep 7, 2024
Sep 2, 2024
Sep 2, 2024
Sep 2, 2024
Sep 2, 2024
Sep 5, 2024
Sep 3, 2024
Sep 10, 2024
Sep 10, 2024
Sep 2, 2024
Sep 10, 2024
Sep 5, 2024
Sep 7, 2024
Sep 6, 2024
Sep 5, 2024
Sep 5, 2024
Sep 2, 2024
Sep 2, 2024
Sep 2, 2024
Sep 7, 2024
Sep 2, 2024

Repository files navigation

QGIS Plugin FontOutline

将任意文本字符串转为geojson矢量数据的 qgis 插件。

preview

preview preview

usage

安装

  1. 克隆本仓库到qgis插件目录(windows 下是~/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins)
    • 重启qgis会自动加载插件
    • 运行插件会自动安装依赖库fonttoolsqgispython 默认依赖位置,如果报错可以自行下载或者使用方法 2
  2. 下载release 版本使用 qgis 从 zip 安装插件
    • 使用qgis插件安装工具
    • qgis安装zip插件

使用

gui

  1. 目前只支持微软雅黑字体(中英文都支持)。
  2. input_str随便填。
  3. location直接从qgis地图界面右键复制,目前经纬度坐标。
  4. 保存位置可以自定义,默认保存位置为~/Documents,,默认文件名为input_str+随机字符串。
  5. 字体实际宽度为5000米,高度使用字体原始宽高比确定,暂不支持自定义。

dev

编译 ui 文件

# 设置 qgis 套件环境
o4w_env
# 编译 qrc 文件
pyrcc5 resources.qrc -o resources.py
# 编译 ui 文件
pyuic5 ui/main_ui.ui -o ui/main_ui.py

todo

  1. 中英文字体宽高调整适配,窄字符宽度调整
  2. 字体实际宽度自定义
  3. 目前只适配微软雅黑字体,添加其他字体适配
  4. 国际化(i18n)完善
  5. help 文档完善
  6. 使用 docker 部署(使用 QgisApplication 初始化,脱离插件系统)

attention

  • 卸载插件之前先备份,尤其是在开发过程(卸载插件会删代码目录)🎃