Saturday, March 29, 2014

Connect Postgresql to ArcGIS

Connect Postgresql to ArcGIS


If you are having problems connecting Postgresql to ArcGIS This post will describe in detail how to connect, Moreover i will post some more things on Postgressql, PostGIS, Arc Catalog, ArcMAP, Arc GIS Server etc

First Install Postgresql and also its spatial Extension (PostGIS). When this is installed we have to instal Postgres client side libraries for the successful connection.

(Note: Be sure to download the correct libraries for your ArcGIS client. For ArcGIS for Desktop and ArcGIS Engine, you need the 32-bit libraries. For ArcGIS for Server, you need the 64-bit client libraries)
Client Side Libraries:
Copy
libeay32.dll
libiconv-2.dll
libintl-8.dll
libpq.dll
ssleay32.dll
from the PostgreSQL folder and put it into the ArcGIS Desktop bin folder




Now Open Arc Catalog,
and click on Database Connections in Catalog Tree and then open Add Data Base Connection



It will open connections window, add the following information
  • Select PostgreSQL from Database Platform
  • Write 127.0.0.1 in Instance window
  • Select the Authentication type, use Database Authentication and write the user name and password in the database,
    Note : The default super user of PostgreSQL may vary as it come with different combinations of softwares i.e
    • If you have downloaded it directly and then installed Apache and phpmyadmin from StackBuilder then username password is
      username : postgres
      password : postgres
    • Where as if you download it from bitnami i.e. WAPP server (Windows + Apache + PostgreSQL + Php) then username password would be
      username : bitnami
      password : bitnami
    •  Or you can always make a super user/ user of your own choice from database or Phpmyadmin.
  • When you enter instance and user name password then on successful connection you should be able to see the list of databases in the Database dropdown menu, here i only have the sample postgis_21_sample database, press ok and You'll have the connection.






5 comments:

  1. hi
    i did all steps but i can't to connect
    any help ?

    ReplyDelete
  2. Please Recheck and make sure that you place all the libraries in their proper place.

    ReplyDelete
  3. Confronting Error while Installing the PostgreSQL? Contact to Postgres SQL Support for Windows
    This PostgreSQL establishment blunder for the most part looked by the new client who changes from another database to Postgres. Anyway there is definitely not a major ordeal for those clients who stand up to this issue since its normal. Having some specialized abilities you can undoubtedly dispose of this issue. For this situation the most well-known arrangement is basically expelled and reinstalls the PostgreSQL. And furthermore ensure that your area is introduced. In the wake of attempting these means if as yet confronting a similar issue at that point contact to Cognegic's Postgres SQL Support for Linux or PostgreSQL Remote Database Service to defeat of this issue.
    For More Info: https://cognegicsystems.com/
    Contact Number: 1-800-450-8670
    Email Address- info@cognegicsystems.com
    Company’s Address- 507 Copper Square Drive Bethel Connecticut (USA) 06801

    ReplyDelete