What's wrong?

aborruso at spaziogis.it aborruso at spaziogis.it
Mon Mar 5 10:45:46 EST 2001


Dear all,
I'm tryng to use PHP/Mapscript. It is astonishing me, but I have some
(probably) stupid questions. I would like only to create an arc shapefile;
I am able to create  .shp file and .shx file, but not dbf. When I try to
open this shapefile I have an error messagge.
This is my code:

$newshapefile=ms_newShapefileObj("try",MS_SHP_ARC);
$newline=ms_newLineObj();
$newline->addXY(2420000,4200000);
$newline->addXY(2440000,4230000);
$newline->addXY(2460000,4245000);
$newline->addXY(2480000,4260000);
$newshape=ms_newShapeObj(MS_SHP_ARC);
$newshape->add($newline);
$newshapefile->addShape($newshape);
$newshapefile->free();

What's wrong?

Thank you very much,

Andrea




More information about the mapserver-users mailing list