Perl API method setProjection doesn't work.

Trond Michelsen trondmm-mapserver at CRUSADERS.NO
Tue Apr 12 08:37:40 PDT 2005


On Tue, Apr 12, 2005 at 06:23:15PM +0400, Cave wrote:
> Here if I use any projection except "lonlat", the output file contains
> an  empty image. If this projection is set in a cgi-script, everything
> is displayed correctly.
>
> If  I comment this string:
>  $map->setProjection('proj=eqc,lat_ts=50,lon_0=80')

Are you sure this a valid proj4 string?

try:
$map->setProjection('proj=eqc lat_ts=50 lon_0=80')
or
$map->setProjection('+proj=eqc +lat_ts=50 +lon_0=80')

--
Trond Michelsen



More information about the MapServer-users mailing list