We can publish Qgis edited and configured map results directly as standard OGC map services. No need to convert to GeoServer project release. This avoids the reconfiguration of the style and the re-organization of the data. And with Qgis's extended development, you can flexibly customize the applications you want.Post-release map service with Qgis loadingPost-publish map service with openlayers loadingTip:
demonstrate the effect of the environment.The Qgis platform version used in this article is a 64-bit compiled version of the 2.99 branch source code downloaded from GitHub. And I have developed two projects and a small product with this version, which can provide the basic development platform for your Qgis two times development. The debug version and release version can be downloaded here (note: No use of
QGIS (http://qgis.org) is a desktop GIS software that integrates many open source spatial data processing libraries, supporting Python scripting. Qgis is developed based on QT and sip, supports windows\linux\macos and other operating systems, can access the spatial data of Mysql/postgre and other databases, and can connect to OpenStreetMap pull data for local analysis and mapping.Compared with professional
Qgis is an open source desktop GIS tool written with QT framework. It is a good tool for learning GIS and QT. This article describes how to compile the source code of qgis In ubuntu.
Reference link:
Http://gvision.info/using-qtcreator-with-qgis/
Http://hub.qgis.org/projects/quantum-gis/repository/revisions/master/entry
(Qgsattributes () 1) "test "));The two lines of code above succeeded in creating the geometric feature and setting its properties.Adding geometric features to vector layers第34-41 We use the Qgsvectordataprovider pointer obtained above to add geometric features to the vector layer, we first use startediting () to make the layer editable, and then use the CommitChanges () To submit the change results.RefreshFinally, update the layer extent and refresh the canvas to be OK.Here to say, if you follo
QGIS Introductory presentation of "Vector traffic route map with QGIS" Preparation of script programming Knowledge Python Tutorial QGIS Apiqgis Plugin LibraryThere are 4 ways to run Qgis scripts for desktop applications:
QGIS automatically run Python scripts at star
Qgis can generally be developed in two languages, such as C + + and Python, while Python is portable, easy to learn, widely used, and highly developed in comparison to C + + development. Using Python development will greatly improve development efficiency, reduce development costs, reduce development difficulty, and seamlessly migrate across platforms (Linux,windows). But Qgis's Python development environment is very complex to configure, which can wa
Environment Introduction
QGis 2.7+ Current 2.8
Win7
Download code from GitHub
Code Warehouse
Official Installation Documentation
Windows platform installation Look at section 1, 2, mainly look at 4.1 ok
General overview of the compilation process
Qgis uses the cross-platform engineering generation tool CMake to manage all pro
advance to establish a Qgis folder , the relevant files are placed inside6. Path name need not have Chinese or space7, CMake Cmakeinstallprefix best not set the path in the C drive, install may require administrator privileges; txt2tags_executable setting is txt2tags.py not exe8, in the final compilation, run Qgis may have DLL can not find the problem, everything search can use the official installation ve
Qgis Application
Sf2gis@163.com
September 20, 2016 created
1 Database operations (QGIS 2.16)
Qgis database, the use of Dbmanager unified management, can be data import, export database, data manipulation (add to check, preview and other operations). 1.1 Creating a database connection: Qgisbrowser Select postgis-to create a database connection.
1.2 Import da
Environment configuration: vs2008 + qt4.7.3 + qgis1.7.0 Linked LibraryCreate a QT project create a QT application project in Vs, and then configure the C ++ Preprocessor command. The general settings of the Lib file in the directory and connector are as follows: 1. pre-processor definition (three definitions are added): 2. add include directory settings (add the include path of compiled qgis and include path of osge4w) 3. lib file directory settings (
Compile the compiled Qgis library, mask get delete the path in the environment variable, test the Qgis.exe program functionIf prompted as above:Cause: The qgis.db file was not found and cannot be copied to the. Qgis2 folder in the system's default c:/users/administrator/.qgis2//gdal_pam;Resolution: Locate the Resource folder in the source code and copy it to the Qgis.exe sibling directory.This problem will cause a series of functions related to the Sq
Qgis Compiling documents
Qgis compilation requires a lot of third-party libraries and tools
Qgis Dependent Tools
CMake
Cross-platform project Engineering build tool that allows you to generate project files for each platform
Flex Bison
First of all, this is two very good things.
Second
Copy the code into the Src/providers/harmony
and add these two files to the CMakeLists.txt
To copy the UI files to Src/ui
CMakeLists.txt
########################################################
# Files
#设置源文件列表
SET(HARMONY_SRCS
harmonyprovider.cpp
harmonydataitems.cpp
harmonyconnection.cpp
)
#头文件
SET(HARMONY_MOC_HDRS
Environment Configuration Eclipse+pydev+python27 + pyqt4.8.6 + qgis2.6
Eclipse installation. Slightly
Pydev installation. Slightly
PYTHON27 installation. Slightly.
pyqt4.8.6 + qgis2.6 installation. I am using the OSGEO4W installation package, osgeo4w itself with qgis2.6 development components and pyqt4.8.6 development components, PYTHON27 will also be brought, python27 the best installation of their own. Note that after installing with OSGEO4W, do not install PYQT in a separate,
Precautions:
Qg
First, preparation work 1, install the plug-inTo facilitate drawing, we have installed OPENLAYERS,QUICKOSM two plugins.How to install plug-ins, degrees Niang have the answer. Part of the tick is the installed plug-in:Openlayers provides some open map data, and with this data, we don't have to start all over again, like Bing's satellite map, we can accurately plot the desired line, point, and multilateral type from satellite maps.
Bing Satellite map
OpenStreetMap
2. C
After adding a layer in qgis, you can scroll and zoom with the mouse. If you want to add an icon to the toolbar to achieve the same effect,
(1) Add the following variables to qmainwindow:
Qtoolbar * mpmaptoolbar; //
Add action in the QT designer:
(2) then add the following in the initialization function:
// Add the button mpmaptoolbar = addtoolbar (TR ("Tools") on the toolbar; mpmaptoolbar-> addseparator (); mpmaptoolbar-> addaction (UI. mpaction
Document directory
Step 1: Modify the qgis2.h file and add the following header files
Step 2: Modify the qgis2.cpp file to modify the addlayer function. The modified code is as follows:
Step 3: Modify the main function to support Chinese
Document directory
Step 1: add the relevant header file in the qgis2.h file. The three main headers are as follows: qgslabel. H, qgslabelattribute. h qgsfield. h.
Step 2: In the qgis2.cpp file, add the code to the addlayer () function. The main
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.