<br>For de second question you can use shp2pgsql to insert the shape file into postgis table<br><br>for example:<br><br>#  create table and generate a index for the geometry column<br>bash$ shp2pgsql -c -I shapefile eschema.table > file.sql<br>
<br>#  upload the data to the postgis databse<br>bash$ psql -d database -f file.sql<br><br>sql2pgsql command is installed in the default installation of postgis<br><br>sorry for <em>my </em>english