Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the data connection between PostGIS and qgis

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to achieve PostGIS and qgis data connection, I hope you will learn something after reading this article, let's discuss it together!

PostGIS is a widely used spatial extension of open source database Postgresql. Using PostGIS plug-in, you can easily organize and manage spatial data in the database. At the same time, PostGIS also has many spatial processing and analysis functions, which can easily complete the processing of data layers in the database. At present, many open source and commercial software can support direct connection to Postgresql databases with PostGIS spatial expansion. Edit and modify the data in the database, and publish the spatial layer data directly.

The following is a list of how to use the open source software qgis tool to connect to the Postgresql database with expansion, how to import shp file data into the database, how to load the spatial layers in the database directly into qgis for viewing, and how to export the data in the database to spatial data files such as shp.

How to install postgresql+postgis, how to create a database with spatial expansion, please search on the Internet, this article will not introduce.

Open the interface of qgis, right-click on the postgis on the left, create a new database connection, in the database connection interface, add the connection parameters of postgresql, and then test the database connection.

Add a connection to postgresql

After the database connection is successful, if there is a spatial data layer in the database, each table is used as a data layer, drag and drop each layer to the qgis interface, you can view the details of the data, right-click on the layer, you can export the layer.

View layer data in the database

View layer

Save as Vector layer

After reading this article, I believe you have a certain understanding of "how to achieve data connection between PostGIS and qgis". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report