• Home
  • Services
    • HR Services
      • HR Advisory Services
      • Contract Staffing
      • HR Outsourcing Services
      • Manpower Supply Services
      • Payroll Processing
      • Permanent Placement
      • Recruitment and Placement Services
      • Recruitment Process Outsourcing
      • Staffing Agency Services
    • DBA Support
      • DBA Consultancy Services
      • PostgreSQL Support
    • Website Maintenance
    • Company Registration Services
    • Virtual Office Space Address
  • Company
    • FAQs
    • About Us
    • Contact
  • Locations
  • Blogs
    • Blog
    • Blog – PostgreSQL Support
    • Blog – PostgreSQL Migration
    • Blog – All DB’s
    • Blog – Linux
  • Courses

    About Courses

    • List Of Courses
    • Become an Instructor
    Greenplum

    Greenplum

    $1,500.00
    Read More
    Have any question?
    (+91)8838953252
    ITsupport@rayafeel.com
    Login
    RayaFeeL
    • Home
    • Services
      • HR Services
        • HR Advisory Services
        • Contract Staffing
        • HR Outsourcing Services
        • Manpower Supply Services
        • Payroll Processing
        • Permanent Placement
        • Recruitment and Placement Services
        • Recruitment Process Outsourcing
        • Staffing Agency Services
      • DBA Support
        • DBA Consultancy Services
        • PostgreSQL Support
      • Website Maintenance
      • Company Registration Services
      • Virtual Office Space Address
    • Company
      • FAQs
      • About Us
      • Contact
    • Locations
    • Blogs
      • Blog
      • Blog – PostgreSQL Support
      • Blog – PostgreSQL Migration
      • Blog – All DB’s
      • Blog – Linux
    • Courses

      About Courses

      • List Of Courses
      • Become an Instructor
      Greenplum

      Greenplum

      $1,500.00
      Read More

      Blog

      • Home
      • Blog
      • Blog
      • Postgres Extension postgis Database

      Postgres Extension postgis Database

      • Posted by 2ndnijam
      • Categories Blog
      • Date February 26, 2019
      • Comments 0 comment

      Postgres by BigSQL includes the PostGIS extension, version 2.2 & 2.3, a powerful open source spatial and geographic data management package. PostGIS enables mapping, distance calculations, and geometry functions such as identifying if a point is within a polygon.

      Install and Enable PostGIS

      Using PostGIS with BigSQL is easy, simply install the PostGIS extension via pgc command line and then enable the extension in the database you want to use PostGIS functions. First, install PostGIS for your version of Postgres. For example, to install PostGIS with PostgreSQL v9.6 run the following:

      
      C:\Program Files\PostgreSQL>pgc install postgis23-pg96
        ['postgis23-pg96']
      Get:1 http://s3.amazonaws.com/pgcentral postgis23-pg96-2.3.0-win64
        Unpacking postgis23-pg96-2.3.0-win64.tar.bz2
      

      Then create the postgis extension. To do this in psql, connect to your database and run the following:

      
      mydb=# create extension postgis;
      CREATE EXTENSION
      mydb=# select st_distance_sphere(st_makepoint(-74.408934, 40.469244),st_makepoint(78.422142, 17.426312));
       st_distance_sphere
      --------------------
         12991160.3288215
      (1 row)
      
      mydb=#
      

      First, we enabled PostGIS in the database by running “CREATE EXTENSION”. Then, we used one of the PostGIS distance functions to calculate the distance between two cities on the planet.

      Learn More

      To learn more about PostGIS, please visit the PostGIS website.

      Availability Information

      • Platforms: Linux, OSX, Windows
      • PostgreSQL Versions: Postgis v2.2: pg9.5, 9.4, 9.3, 9.2     Postgis v2.3: pg9.6, 9.5
      • postgis-2.5 pdf Document

      • Share:
      2ndnijam

      Previous post

      How To Fix Firewall Issues while connecting the other server?
      February 26, 2019

      Next post

      How to append the postgres data in production server ?
      February 27, 2019

      Leave A Reply

      You must be logged in to post a comment.

      Connect with



      Search

      ADVERTISEMENT

      Latest Posts

      Tips to Choose the Best Serviced Office for Your Business
      24May2022
      What key considerations do you need to keep in mind when choosing a new serviced office to house your business?
      24May2022
      The Benefits of Coworking
      24May2022
      The Long-Term Impact of Coworking
      24May2022
      Are you spending more money than you earn? Outsource with Ease and Move When You’re Ready
      24May2022
      PostgreSQL

      PostgreSQL

      $800.00 $500.00
      Greenplum

      Greenplum

      $1,500.00
      Oracle Database

      Oracle Database

      $350.00
      2ndquadrant.in

      (+91) 8838953252

      ITsupport@rayafeel.com

      Company

      • About Us
      • Our Team

      COURSES

      • List Of Course
      • Become An Instructor

      Support

      • DBA Support
      • Consultancy Services

      Recommend

      • Login
      • Contact Us

      IT Services by rayafeel.com. Powered by Rayafeel Technologies Pvt Ltd.

      • Privacy
      • Terms

      Become An Instructor?

      Join thousand of instructors and earn money hassle free!

      Get Started Now

      Connect with

      Login with Google Login with Twitter Login with Linkedin Login with Windowslive Login with Yahoo

      Login with your site account

      Connect with



      Lost your password?