[postgis-users] shp2pgsql - can it export data to different field names?

strk at refractions.net strk at refractions.net
Tue Aug 16 14:23:10 PDT 2005


On Tue, Aug 16, 2005 at 07:26:10PM +0200, Steffen Macke wrote:
> Eduardo,
> 
> > I'd like to know if "shp2pgsql" tool can take a given shapefile as input and then export its DBF field definitions according to a new structure given by parameters.
> 
> I think you should simply create a view with the fields (and field
> names) you are
> looking for and then use shp2pgsql to export this view.

You meant pgsql2shp to export. Anyway, would probably not
work as a DBF-only exporter. You need to touch loader/pgsql2shp.c
in that case.

--strk;



More information about the postgis-users mailing list