qgis

Google Maps mangling KML

那年仲夏 提交于 2019-12-02 02:27:56
问题 I've created KML files of some world regions for display using the Google Maps API. This has been working fine, but one region has recently started displaying as if the data's corrupt. You can see what I mean here: https://drive.google.com/file/d/0B9u3tNbtEyFRMTdwQTdEa0U5S2s/view?pli=1 If I load the same KML in Google My Maps it still displays correctly: https://www.google.com/maps/d/viewer?mid=z8mYjxPmAgBQ.kGn7mza0JOSU It used to display fine, but now even if I roll back to previous versions

bison.exe cannot find file m4sugar.m4 which is required by an MSBuild in VS2010

邮差的信 提交于 2019-12-02 02:22:56
I am trying to compile QGIS in Visual Studio. I used OSGeo4W to download the packages, added Flex.exe and Bison.exe to my environment path. Downloaded QGIS Release 2.0, and launched a CMake-GUI with the option "Visual Studio 10". Then I configured my paths using the GUI tool. Then I hit configure and generate, and it worked. I looked in my directory and there were Visual Studio Solution files available for me. Then I hit "Build All" and I got the following output in the "Output Window" Generating flex_qgsexpressionlexer.cpp Generating qgsexpressionparser.cpp 1> C:\OSGeo4W\bin\bison.exe: cannot

QGis2.14.4基于Win10+Qt4.8.6+VS2010环境的编译

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 00:22:27
作为关于QGis的第一篇博文,我还是先简单介绍下QGis(当然,我默认大家至少应该知道GIS是什么),比较官方的描述我就直接摘取了wiki上的内容: QGIS (原称Quantum GIS)是一个 自由软件 的桌面 GIS 软件。它提供数据的显示、编辑和分析功能。 据说在国外QGIs用得比较广泛,在国内的处境很惨,可以说很多从事地理信息工作的人只知道ArcGis而都不知道这个软件,这主要是与国情有关。 由于QGis是开源软件,所以我的兴趣主要是在开发上面,目前国内这方面的资料非常少,等会我会给大家推荐一个对新手有很大帮助的博客,我也是从那里学习到QGis的入门知识。在文章最后我也会把整个编译过程中对我有所帮助的博文地址放上,给大家做参照。 经过断断续续一周的折腾终于将QGis编译好了,过程很曲折,编译完成后也很有成就感。 其实整个编译过程不是很真复杂,因为有很多工具可以简化我们的操作,但是对于之前没接触过的人来说在编译过程中会遇到很多问题,就算你一步一步照着网上的流程做,总是会在中途遇到别人没遇到的问题,开源软件的编译我之前就只编译过gdal,这次编译QGis真的很不容易,因为编译它会涉及大大小小的开源库几十个...想想就....,所以我写这篇博文也不能说完全照着做就能顺利编译,更多的是想将自己在这个过程中遇到的问题与大家分析,对大家有一点点帮助。 好,正式开始了。 (一)准备工作

QGIS PyQt4 missing QString class

不羁的心 提交于 2019-12-01 21:26:51
i was trying to use a QString in the QGIS Python Console. from PyQt4.QtCore import QString but it says: ImportError: cannot import name QString In my Python IDLE it works fine, but i know that QGIS brings its own PyQt4. What could be the problem here? And could i solve it? import PyQt4.QtCore PyQt4.QtCore.QString() and from PyQt4 import QtCore QtCore.QString() dosen't works anyway. I was thinking about to copy the QtCore4.dll from my own PyQt4 installation to QGIS, but QGIS uses QtCore.prl and QtCore4.lib instead of QtCore.pyd and QtCore4.dll, like it is used by my PyQt4 installation When i

DLL load failed with PyQGIS

戏子无情 提交于 2019-11-28 10:41:49
问题 I've already asked this question in the "gis.stackexchange" forum, but it seems to be more appropriate for this one. I am having problems with Python Shell importing the module "qgis.core". When I type "import qgis.core" the Shell ("idle.pyw") gives me this error: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import qgis.core ImportError: DLL load failed: Impossibile trovare il modulo specificato (Trad "Impossible to find the specified module"). I have already set

利用QGIS下载地图数据

荒凉一梦 提交于 2019-11-28 08:38:28
这段时间做了一些利用地理信息进行定位导航的系列工作,其中很重要的一部分是如何获取到地图数据,比如道路的矢量图、某一区域的栅格图,我用到的主要工具是QGIS。QGIS是一个跨平台的免费应用,其中集成了对矢量图、栅格图处理的很多功能,同时也集成了很多开放地图数据网站的接口,比如OpenStreetMap等,因此,在获取数据,并处理成我们需要的格式方面非常便利。本篇博文主要介绍如何使用QGIS下载数据,并处理成特定的格式。 一、 指定区域指定地物矢量图获取 我们经常会遇到这样一种需求:获取某一区域的指定地物的地图,比如获取某一区域的道路图、河流图等。这一节的内容能够解决这一需求。通常我们从开放的地图平台OpenStreetMap中下载某一区域的矢量地图,而后通过后续的处理,来获取我们需要的地图信息。 1、数据下载 1) 在vector菜单栏中选择OpenStreetMap ->Download Data,即可打开数据的下载框: 2)而后设定需要下载数据的区域,这里提供了三种区域设置方式: a) From map canvas:当前窗口显示的区域 b) From layer:某一图层所代表的区域 c) Manual:人为设定区域 通常当我们已知我们需要下载的数据的区域,我们采用第三种方式。 3)下载数据:设置好下载区域,并输入保存文件名后,点击确定,即开始下载数据。这里需要注意的一点是

Allow docker container to connect to a local/host postgres database

不想你离开。 提交于 2019-11-26 21:20:31
I've recently been playing around with Docker and QGIS and have installed a container following the instructions in this tutorial . Everything works great, although I am unable to connect to a localhost postgres database that contains all my GIS data. I figure this is because my postgres database is not configured to accept remote connections and have been editing the postgres conf files to allow remote connections using the instructions in this article . I'm still getting an error message when I try and connect to my database running QGIS in Docker: could not connect to server: Connection

Allow docker container to connect to a local/host postgres database

会有一股神秘感。 提交于 2019-11-26 08:58:06
问题 I\'ve recently been playing around with Docker and QGIS and have installed a container following the instructions in this tutorial. Everything works great, although I am unable to connect to a localhost postgres database that contains all my GIS data. I figure this is because my postgres database is not configured to accept remote connections and have been editing the postgres conf files to allow remote connections using the instructions in this article. I\'m still getting an error message