<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
</div>>You would get that error if you have not loaded the postgis extension<br>>into your database. You need to do something like this, where 'gis' is<br>>the name of the database. This needs to be done as the 'postgres' user:<br>


<br>># for Ubuntu <=9.10:<br>>psql -d gis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql<br>># for Ubuntu >=10.04:<br>> psql -d gis -f /usr/share/postgresql/8.4/contrib/postgis.sql<br>
<br>>For more details about how to setup a typical postgis-enabled DB see <a href="http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS" target="_blank">http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS</a></blockquote><div>

<br></div><div>    Thank You for your help,</div><div>   </div><div>     i am using ubuntu 10.04 so i have run the command given by you after login to postgresql</div><div>       </div><div>        but after creating some funstions this command also ends up with some errors </div>

<div>        for e.g.  </div><div>       </div></div><div>psql:/usr/share/postgresql/8.4/contrib/postgis.sql:6826: ERROR:  current transaction is aborted, commands ignored until end of transaction block</div><div>psql:/usr/share/postgresql/8.4/contrib/postgis.sql:6944: ERROR:  current transaction is aborted, commands ignored until end of transaction block</div>

<div>psql:/usr/share/postgresql/8.4/contrib/postgis.sql:6949: ERROR:  current transaction is aborted, commands ignored until end of transaction block</div><div>ROLLBACK</div><div><br></div><br clear="all"><br>-- <br>With Kind Regards<br>

Parveen Arora<br><a href="http://osmpunjab.co.cc">osmpunjab.co.cc</a><br><br>