[mapserver-users] Adding points to a shapefile with ASP
Robert Crossley
robert@wotzhere.com
Fri, 14 Jun 2002 07:32:52 +1000
Hi all,
I am trying to add a point to a shapefile using ASP. There are examples in the mail list of how to do this in PERL or PHP (provided below), but
unfortunately my ASP skills aren't good enough to be able to convert this to ASP yet. Can anyone provide pointers to how to do this in ASP?
Will post summary if I have success.
TIA
R
function createPoint( $x, $y, $programId )
{
GLOBAL $shpFile, $dbfFile;
// Create shape
$oShp = ms_newShapeObj(MS_SHP_POINT);
$oLine = ms_newLineObj();
$oLine->addXY($x, $y);
$oShp->add( $oLine );
$shpFile->addShape($oShp);
// Write attribute record
dbase_add_record($dbfFile, array($programId));
}
Robert Crossley
Robert Crossley & Associates
9 Short St
New Brighton NSW 2483
AUSTRALIA
P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: robert@wotzhere.com