[Mapserver-users] create and display point obj on the fly

Lionel Bargeot l.bargeot at educagri.fr
Mon Feb 3 17:19:42 EST 2003


Le lun 03/02/2003 à 23:07, Lionel Bargeot a écrit :
> I simply create manualy (touch unix command) an empty dbf file with the
> right name and then it works. So my  question is : have I to create
> manually an empty dbf file or is there somewhere an option I missed that
> provides a mean to create a dbf file with shp and shx ?

So I simply added those lines

$dbfname="../data/$shapetempname".".dbf";
$dbf=fopen("$dbfname", "w");
fclose($dbf);

and it works fine

But if you have a better way to do it, I'm ok to try

Lionel

-- 
AgrogeomaTIC
CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon
03.80.77.28.49
http://stb.educagri.fr





More information about the mapserver-users mailing list