[postgis] PATCH: more robust shp2pgsql -d option

Steffen Macke sdteffen at yahoo.com
Fri Mar 1 08:21:27 PST 2002


>  Could you provide a brief note on how to apply this patch, for the sake of
> those of who don't know how :)

1. copy the file to the postgis/loader directory
2. unzip it:
gunzip shp2pgsql-drop.patch.gz
3. apply the patch:
patch -p0 < shp2pgql-drop.patch

You should get a message that shp2pgql.c was patched.
For those not familiar with patch/diff, it might be easier to edit the file
manually (which is no problem, as only one line needs to be changed:
from 
printf("select DropGeometryColumn('%s','%s','the_geom');",database,table);
to
printf("delete from geometry_columns where f_table_name = '%s';\n",table);

Steffen

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 





More information about the postgis-users mailing list