[mapserver-users] PHP/Mapscript project shapefile
Mark Giesbrecht
mgiesbrecht@geoarctic.com
Wed, 17 Apr 2002 08:58:51 -0600
This is a multi-part message in MIME format.
--------------CB8598790C911104FFDE6B9A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------CB8598790C911104FFDE6B9A
Content-Type: text/x-vcard; charset=us-ascii;
name="mgiesbrecht.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mark Giesbrecht
Content-Disposition: attachment;
filename="mgiesbrecht.vcf"
begin:vcard
n:Giesbrecht;Mark
tel;fax:403-264-5848
tel;work:403-290-1320 ext25
x-mozilla-html:TRUE
url:http://www.geoarctic.com
org:GeoArctic International Services, Ltd.
adr:;;#1250 815 8 Ave SW;Calgary;Alberta;T2P 3P2;Canada
version:2.1
email;internet:mgiesbrecht@geoarctic.com
title:GIS Programmer/Analyst
fn:Mark Giesbrecht, M.Sc.
end:vcard
--------------CB8598790C911104FFDE6B9A--