10

这些矢量或光栅文件是没有地理坐标的经典文件。它们是纬度/经度投影,我想将它们导入 QGIS,放大/缩小它们,将它们放置到正确的位置,它们成为可重复使用的 shp 或栅格地理坐标图层。

编辑:我来自维基百科图形实验室>地图研讨会,我们希望更多地使用 GIS。我们几乎有数百张地图可以迁移到 GIS 技术......

在此处输入图像描述 在此处输入图像描述

4

2 回答 2

9

Partial Solution: load SVG into Inkscape, Save as DXF file, then you can load this into QGIS. This should at least get you most of the linework into QGIS.

However, it won't yet be properly georeferenced or styled, and different layers may be in different places because the SVG has some scaling and translating operators on parts of the map data that QGIS or Inkscape is ignoring. You'll probably need to work with a layer at a time. This probably isn't a problem since maybe you are only interested in the added data on the map, and not the base map (country outlines etc) since you will probably want to overlay your data onto standard map base layer (natural earth, OpenStreetMap tiles).

The only way I see to do the transformation at present is to work out the affine transformation parameters and use the QgsAffine plugin, but that does require you to work out the parameters beforehand by fitting known source coordinates to known target coordinates.

But to do hundreds? You might be better off writing some custom SVG parsing code for each one...

于 2013-04-01T15:15:09.487 回答
4

如果您只想在正确的位置显示它,缩放和旋转将其视为 SVG 图标。
1. 创建一个点图层并将一个点放在您将加载的 SVG 的地理参考中心。
2. 编辑符号系统并将 SVG 加载为图标
3. 将大小单位设置为地图单位
4. 提供适当的尺寸
5. 根据需要旋转

重绘非常缓慢且痛苦,但如果您使用 Project>import/Export>Export map as image 您可以制作地理参考栅格。

于 2019-04-11T00:09:40.010 回答