如何编辑 mif/mid gis 数据格式?

发布于 2024-07-25 15:14:23 字数 1194 浏览 2 评论 0原文

我正在开发一个使用 mif/mid 数据格式来显示 GIS 数据的应用程序 (.net 2.0)。 我需要找到一种方法来使用某种编辑器(在应用程序之外)编辑这些文件。 我用谷歌搜索了很多,但找不到任何合适的东西(地图制作器可以工作,但没有显示中间文件中的标签)。 我看到以下解决方案(按优先顺序排列):

  1. 找到一些可以正确编辑 mif/mid 格式的编辑器。 哪一个?
  2. 找到一些允许编辑其他格式的编辑器,并具有转换实用程序来转换为该格式并返回到 mif/mid。 哪一个?
  3. 找到一些允许编辑其他格式并具有转换实用程序转换为该格式一次的编辑器。 在这种情况下,我必须编写自己的解析器。 我不喜欢这个主意:)。

免费编辑者优先。

谢谢你!

UPD 1 我忘了提及我需要加载 Unicode mid 文件或至少指定代码页。 这就是为什么,例如,OpenJump 的插件不起作用(我猜)

UPD 2 这似乎是一个真正的麻烦。 大多数工具要么根本不执行 mif,要么以只读模式执行。 有人对 MIF 读写有真实经验吗?

UPD 3 在此更新中,我将跟踪解决此问题的所有尝试:

  1. OpenJump - 插件无法加载非 ascii 代码。 Unicode 加载失败

  2. QGIS - 成功加载MIF 文件,但无法保存它 - 无法保存特征。 我不确定,但看起来它不支持 MIF 的写入模式。 我尝试将选择保存为形状文件。 后来我无法使用 OGR 图层转换器对其进行转换 - 因访问冲突而失败。

  3. MapInfo Professional 10 无法加载我的 MIF 文件,因为存在访问冲突。
  4. GV sig不支持MIF格式。
  5. UDIG不支持MIF格式。
  6. WinGrass 未在我的电脑上启动。

待定...

I am working on an application (.net 2.0) that uses mif/mid data format to display GIS data. I need to find a way to edit these files with some sort of editor (outside of application). I googled a lot but was unable to find anything suitable (Map Maker worked but did not display labels from mid file). I see following solutions (in order of preference):

  1. Find some editor that will allow to edit mif/mid format correctly. Which one?
  2. Find some editor that will allow to edit some other format and have conversion utilities to convert to this format and back to mif/mid. Which one?
  3. Find some editor that will allow to edit some other format and have conversion utilities to convert once to this format. In this case I'll have to write my own parser. I do not like this idea :).

Free editors are preferred.

Thank you!

UPD 1 I forgot to mention that I need to load Unicode mid files or at least specify the codepage. That's why, for example, OpenJump's plugin does not work (I guess)

UPD 2 This seems to be a real trouble. Most tools either do not do mif at all or do it in read-only mode. Anyone with real experience with MIF read-write?

UPD 3 In this update I'll keep track of all my attempts to solve this issue:

  1. OpenJump - plugin failed to load non-ascii code. Unicode load failed

  2. QGIS - succedeed loading MIF file, but failed to save it - unable to save feature. I'm not sure, but it looks like it does not support write mode for MIF's. I've tried to save selection as shape file. Later I was unable to convert it with OGR layer converter - failed with access violation.

  3. MapInfo Professional 10 failed to load my MIF file with access violation.
  4. GV sig does not support MIF format.
  5. UDIG does not support MIF format.
  6. WinGrass did not start on my PC.

tbc...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清引 2024-08-01 15:14:23

免费转换工具:OGR(另请参阅Mitab)

免费 GIS 编辑器(可以读取 MID/MIF):量子GISOpenJump,其他*

商业 GIS 编辑:Lots*。 (注意:MID/MIF 是 Mapinfo 格式)。

* 有关详细列表,请参阅 GIS 软件

如果这没有为您指明正确的方向,可以提供更多详细信息。

Free conversion tool: OGR (also see Mitab)

Free GIS Editors (that can read MID/MIF): Quantum GIS, OpenJump, others*

Commercial GIS Editors: Lots*. (Note: MID/MIF is a Mapinfo format).

* See GIS software for a good list.

Can provide more detail if this does not point you in the right direction.

獨角戲 2024-08-01 15:14:23

Quantum GIS、OpenJump、uDig 或 GRASS 应该可以满足您的需求。 但是,您应该意识到所有这些编辑器很可能会使用 OGR 作为该文件格式的数据抽象库。 因此,它们受到 OGR 驱动程序 的限制。

来自驱动程序文档:

支持读取和写入本机 (TAB) 格式和交换 (MIF/MID) 格式的 MapInfo 数据集。 目前不支持更新现有文件。

这可能就是您遇到的情况。 再次尝试 QGIS 并注意这一点。

Quantum GIS, OpenJump, uDig or GRASS should do what you want. However, you should be aware that all these editors will most likely use OGR as the data abstraction library for that file format. Therefore, they have the limitations of that OGR driver.

From the driver documentation:

MapInfo datasets in native (TAB) format and in interchange (MIF/MID) format are supported for reading and writing. Update of existing files is not currently supported.

That is probably what you are running into. Try QGIS again and be mindful of this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文