GDAL ogr2ogr can read a shapefile and write directly into a PostGIS 
database:
http://www.gdal.org/ogr/drv_shapefile.html
http://www.gdal.org/ogr/drv_pg.html

shp2pgsql (distributed with postgis) converts a shapefile into SQL:
http://www.postgis.org/documentation/manual-1.3/ch04.html#id2571948

It has a graphical interface shp2pgsql-gui that can connect directly to 
a database.

On 17/05/12 00:26, Smaran Harihar wrote:
> The issue is how can I directly connect to Postgres db that I have created 
> and make that a PostGIS, and then add the shapefile to it.

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to