QGis:如何将svg或栅格图像导入Quantum GIS? [英] QGis: How to import svg or raster images into Quantum GIS?

查看:824
本文介绍了QGis:如何将svg或栅格图像导入Quantum GIS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些矢量或光栅文件是没有地理坐标的经典文件。它们是拉/长投影,我想将它们导入QGIS,将它们上/下放大,将它们放置在正确的位置,并且它们成为可重用的shp或栅格地理坐标图层。



编辑:我来自维基百科Graphic Lab> Map工作坊,我们想使用GIS工作更多。我们litteraly有几百个地图迁移到GIS技术....






解决方案

部分解决方案:将SVG加载到Inkscape中,另存为DXF文件,然后将其加载到QGIS中。至少应该把你的线上工作带到QGIS中。



然而,它不会被正确的地理参考或风格化,不同的层可能在不同的地方,因为SVG在QGIS或Inkscape忽略的地图数据部分上有一些缩放和翻译运算符。您可能需要一次处理图层。这可能不是问题,因为也许你只对地图上添加的数据感兴趣,而不是基地图(国家概况等),因为您可能希望将数据覆盖到标准地图基础层(自然地球,OpenStreetMap瓦片)。



目前我看到的唯一的转换方法是制定仿射变换参数,并使用QgsAffine插件,但这需要你的工作通过将已知的源坐标拟合到已知的目标坐标,预先输出参数。



但要做数百?你可能会为每个人编写一些自定义的SVG解析代码...


these vector or raster files being classic files without geocoordinates. They are lat/long projection, I want to import them into QGIS, scale them up/down, place them to their right place, and they become reusable shp or raster geocoordinated layers.

Edit: I'am from the wikipedia Graphic Lab>Map workshop, we want to work more using GIS. We litteraly have hundreds maps to migrate to GIS technologies....

解决方案

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...

这篇关于QGis:如何将svg或栅格图像导入Quantum GIS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆