shape->line() ?

Daniel Morissette danmo at videotron.ca
Mon Sep 11 12:57:24 EDT 2000


"Doyon, Jean-Francois" wrote:
> 
> I'm getting :
> 
> Fatal error: Call to unsupported or undefined function line() in
> /home/httpd/html/ccatlas/search/map.php3 on line 224
> 
> I checked the code (php_mapscript.c) and the function does seem to be there
> ... and $shpres IS an Object.
> 
> What am I missing ?
> 

You're missing the latest version of the code  ;-)

The function was there but was registered as being called "point"
(Copy/Paste error!), so accessing $shpres->point(0) should do what you
want with the version of the PHP MapScript that you have.  I've fixed it
last week at the same time as a couple of other problems...
unfortunetely there is some areas of MapScript that we have implemented
wrappers for but haven't used yet, and you've found one!

The version that's currently in CVS is pretty stable (it behaves well
for me at least!), so you could probably update if you want.  This would
also give you the setProjection() function that you needed.

Unfortunately the nightly build on the UMN web site seems to date from
the end of July.  Did you intentionnally stop it, Steve?

Later,
-- 
------------------------------------------------------------
 Daniel Morissette                       danmo at videotron.ca
              http://pages.infinit.net/danmo/
------------------------------------------------------------
  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