Perl API method setProjection doesn't work.
Trond Michelsen
trondmm-mapserver at CRUSADERS.NO
Tue Apr 12 09:33:33 PDT 2005
On Tue, Apr 12, 2005 at 05:37:40PM +0200, Trond Michelsen wrote:
> 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')
Ah. Hang on.
The second is wrong. The two others seems to do the same thing.
Anyway - I think the problem is that setProjection() doesn't change
your extents, so you've probably zoomed in very closely on a spot in
the Pacific Ocean.
--
Trond Michelsen
More information about the MapServer-users
mailing list