[mapserver-users] About shapefile generation in PHP with DBF
Barend Gehrels
barend at geodan.nl
Mon Aug 9 03:29:59 PDT 2010
Cristiano Sumariva wrote:
> I took a look at documentation in PHP mapscript but did not find a way
> to create the .dbf file.
> Do mapserver classes has support for generating attribute .dbf file?
> If not any sugestion for an ready to use tool that I can use?
> For database export one option I found was to call pgsql2shp with a
> prepared query but must have exec function enabled to do this.
You might use shapelib and SWIG to produce PHP bindings (done earlier
for Python, see http://shapelib.maptools.org). I've good experience with
SWIG in combi with shapelib/C#, works great.
Regards, Barend
More information about the MapServer-users
mailing list