Create a PostGIS spatial database

Source: Internet
Author: User
Tags psql postgis

Open Psql (Search in the Start menu or go to Psql console under Pgadmin's plugin menu)
After entering the database, use the following statement to create the database (this is still a normal database)
Create DATABASE xx;
Go to your new XX database:
\c xx;
Then enter the official website to add the extension statements (available on the official website):
--Enable PostGIS (includes raster)
CREATE EXTENSION PostGIS;
--Enable topology
CREATE EXTENSION postgis_topology;
--Enable PostGIS Advanced 3D
--and other geoprocessing algorithms
--Sfcgal not available with all distributions
CREATE EXTENSION Postgis_sfcgal;
--fuzzy matching needed for Tiger
CREATE EXTENSION Fuzzystrmatch;
--rule based Standardizer
CREATE EXTENSION Address_standardizer;
--Example rule data set
CREATE EXTENSION Address_standardizer_data_us;
--Enable US Tiger Geocoder
CREATE EXTENSION Postgis_tiger_geocoder;
The comparison shows that the Mygis (spatial database) I created was 5 more extensions than the normal database, 3 architectures

Create a PostGIS spatial database

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.