[mapserver-users] PHP/Mapscript project shapefile

Mark Giesbrecht mgiesbrecht at geoarctic.com
Wed Apr 17 10:58:51 EDT 2002


Hi All,

Is this close to being the right method in projecting the entire
shapefile using PHP/Mapscript?

function projectShapefile()
{
 $projInObj = ms_newprojectionobj("proj=latlong,ellps=GRS80");
 $projOutObj =
ms_newprojectionobj("proj=stere,lat_0=46.500000000,lon_0=-66.500000000,k=0.999912,x_0=2500000.000,y_0=7500000.000,ellps=GRS80,towgs84=0,0,0,0,0,0,0,units=m,no_defs");

//re-write the existing file?
$shpfileObj =
ms_newShapefileObj("E:/software/apache/htdocs/tmp/to_stere/nb_rivers2",
MS_SHP_ARC);
 $shpfileObj = $shpfileObj->project($projInObj, $projOutObj);

}

Thanks in advance,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mgiesbrecht.vcf
Type: text/x-vcard
Size: 346 bytes
Desc: Card for Mark Giesbrecht
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020417/0c01e309/mgiesbrecht.vcf


More information about the mapserver-users mailing list