- Mastering PostGIS
- Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
- 145字
- 2021-07-02 22:52:21
Importing shape files using shp2pgsql
ESRI shapefile (SHP) is still the most common exchange format for sharing GIS data. The format itself is made of a few files such as SHP, SHX, DBF, andPRJ, where the first three are the required files and the file with projection information is not obligatory.
The standard PostGIS tool for loading shapefiles is shp2pgsql - you will find it in the bin folder of your postgres installation. shp2pgsql is a command-line utility that can either extract the shapefile data into SQL or pipe the output directly into psql (we'll see both approaches). shp2pgsql also has a GUI version that can be accessed directly in PgAdmin.
In this example, we'll use some NaturalEarth shapefiles we downloaded earlier. We will import the coastlines shapefile using the CMD version of shp2pgsql and then we'll add land masses using the GUI version.
- 數據展現的藝術
- Mastering Mesos
- 大數據管理系統
- Hands-On Machine Learning on Google Cloud Platform
- Learning Social Media Analytics with R
- ESP8266 Home Automation Projects
- ESP8266 Robotics Projects
- INSTANT Adobe Story Starter
- Visual Basic項目開發案例精粹
- Hands-On Geospatial Analysis with R and QGIS
- 基于Quartus Ⅱ的數字系統Verilog HDL設計實例詳解
- Containerization with Ansible 2
- 巧學活用Photoshop
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- Hadoop大數據開發基礎