Deployment of PostGIS2.1 in Ubuntu12.04

Source: Internet
Author: User
Tags psql postgis
Ubuntu12.04 deploy PostGIS2.1 first, uninstall the original postgis and postgresql-9.1-postgis, or you will use version 1.5 ~ 1sudodpkg -- purgepostgispostgresql-9.1-postgis then, add the corresponding repository and install PostGIS1s... Ubuntu 12.04 deploy PostGIS 2.1 first, uninstall the original postgis and postgresql-9.1-postgis, or you will use version 1.5 ~ 1 sudo dpkg -- purge postgis postgresql-9.1-postgis then, add the corresponding repository and install PostGIS 1 sudo apt-add-repository ppa: sharpie/for-science # To get GEOS 3.3.22sudo apt-add-repository ppa: sharpie/postgis-nightly3sudo apt-get update4sudo apt-get install postgresql-9.1-postgis then generate postgis template library www.2cto.com 1 sudo su %s2createdb %- d postgis_template-f/usr/share/postgresql/9.1/contrib/p Ostgis-2.1/postgis. SQL 2 psql-d postgis_template-f/usr/share/postgresql/9.1/contrib/postgis-2.1/spatial_ref_sys. SQL last, modify the USER PASSWORD 1 psql 2 ALTER USER login S WITH PASSWORD '123 '; OK. try the powerful space capabilities of postgis!
Related Article

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.