Projection issue in Mapscript vs Mapfile

d c dark.peony at GMAIL.COM
Sat May 6 06:13:38 EDT 2006


Hi listers,

I want  to set the following projection (which works perfectly in the
mapfile)
dynamically in Mapscript.

PROJECTION
 "proj=stere"
 "ellps=WGS84"
 "datum=WGS84"
 "lon_0=0"
 "lat_0=-90"
 "lat_ts=-71"
 "units=m"
END

------  MapScript ----------------

$map->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0,
lat_0=-90, lat_ts=-71, units=m");
- or -
$layer->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0,
lat_0=-90, lat_ts=-71, units=m");

------- Error -----------------------

Fatal error: [MapServer Error]: msProcessProjection(): major axis or radius
= 0 or not given in .....php

-----------------------------------------

The parameters are identical: What's the problem? Doc help on this subject
is scarce...
I've tried to add several more parameters specified on the Proj4 site, for
this projection
(x_0 = 0,  y_0=0, k_0=1.0) to no avail.

Any suggestions extremely welcome,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060506/177b0542/attachment.html


More information about the mapserver-users mailing list