[mapserver-users] reference image extent
Daniel Morissette
morissette at dmsolutions.ca
Thu Jul 12 12:44:51 PDT 2001
> Ludovic Tenant wrote:
>
> I would like to set the extent property of the Reference image in my
> map file with PHP / Mapscript. Unfortunately, this property is read
> only inside the referenceMapObj Class. There is probably a good reason
> for that, but for now I'm well embarrassed, because when I change my
> reference image, I need to update the reference with the corresponding
> new extent, and I don't know how to do it in my PHP script...
>
I haven't tried this myself, but since the extent in the referenceMapObj
class is actually a rectObj which has a setExtent() method, you should
be able to set the extent using:
$refmap->extent->setExtent($xmin, $ymin, $xmax, $ymax);
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list