[Mapserver-users] 3.7 classes guide? was: queryByRect of a PostGIS layer

Charlton Purvis cpurvis at asg.sc.edu
Thu Apr 24 15:47:02 EDT 2003


So are you implying that I should actually read the error message?!

Thanks, Daniel.  I'll keep stumbling along now that I've gotten past
that error.  But where in the world is the 3.7 equivalent of
http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html?  I have
been relying on that for my classes guide not knowing it was for 3.6.

-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca] 
Sent: Thursday, April 24, 2003 3:26 PM
To: Charlton Purvis
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] queryByRect of a PostGIS layer

Charlton Purvis wrote:
> 
> So now I want the results themselves.  If I were using shapefiles, I
> believe that
>   layerObj->open($map->shapepath);
> would do the trick, but, not surprisingly, it bombs:
>   Wrong parameter count for open().
> 

Which version of MapServer are you using?  

In version 3.6, the shapepath argument was required for open(), with a
postgis layer you could pass any value for this argument and it would be
ignored.

In version 3.7 the shapepath argument is gone, so you should call
$layer->open() with no argument.

Unfortunately I cannot be of much help with respect to postgis-specific
issues, but in theory what you're doing seems to be the right thing.

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list