Database Reference
In-Depth Information
Adding PostGIS layers - QGIS
Inthisrecipe,wewillestablishaconnectiontoourPostGISdatabaseinordertoadd
atableasalayerin QGIS (formerlyknownas Quantum GIS ).Viewingtablesaslay-
ersisgreatforcreatingmapsorsimplyworkingonacopyofthedatabaseoutsidethe
database.
Please navigate to the following site to install the latest version of QGIS (2.0 as of
writing this topic):
http://qgis.org/en/site/
On this page, click on Download Now and you will be able to choose the suitable
operatingsystemandsettings.QGISisavailableforAndroid,Linux,MacOSX,and
Windows. You might also be inclined to click on Discover QGIS to get an overview
ofsomebasicinformationabouttheprogram,alongwithfeatures,screenshots,and
case studies.
Getting ready
To begin, let's download data from the following U.S. Census Bureau's FTP site:
ftp://ftp2.census.gov/geo/tiger/TIGER2012/EDGES/tl_2012_39035_edges.zip
The shapefile consists of roads, streams, and other line features found within
Cuyahoga County, Ohio.
Tip
Extract the ZIP file to your working directory and then load it into your database
using shp2pgsql .Besuretospecifythespatialreferencesystem,EPSG/SRID:
4269.Whenindoubtaboutusingprojections,usethewonderfulserviceprovided
by the folks at OpenGeo, located at the following website:
http://prj2epsg.org/search .
Search WWH ::




Custom Search