Ok.  I'll return to that. (I take it that also means that getShape()
is not deprecated in PHP/MapScript?)

Interestingly, I found a couple other posts where users had the same
problem that I'm having, but no resolution there either.

<http://lists.umn.edu/cgi-bin/wa?A2=ind0509&L=mapserver-users&T=0&F=&S=&P=54917>

<http://www.nabble.com/Mapscript-4.10-Oracle-Spatial-:-GetShape-and-drawQuery-problems-t3014028.html>

There must be something straightforward that is wrong in the way we're
using these APIs.

One other, possibly related, piece of information is that my postgres
console window seems to be outputting "ERROR:  cursor "mycursor" does
not exist" every time I execute this query.

Doug

On 2/27/07, Daniel Morissette <[EMAIL PROTECTED]> wrote:
Doug B wrote:
>
> Hmmm... interestingly, I'm seeing some significant differences between
> the API documentation at
> http://mapserver.gis.umn.edu/docs/reference/mapscript and at
> 
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj
>

The SWIG MapScript (Perl, Python, etc.) and PHP MapScript differ a
little bit. Since you're using PHP MapScript you should always work with
the PHP MapScript docs.


> .  The former says getShape() was deprecated at 4.4 and shows an
> entirely different method signature:
>
> getShape( shapeObj shape, int tileindex, int shapeindex ) : int
>
> vs.
>
> shapeObj getShape(int tileindex, int shapeindex)
>
> Do I have to use the former syntax now with my post 4.4 MapServer?
>

With PHP MapScript you should use:

shapeObj getShape(int tileindex, int shapeindex)

Daniel
--
Daniel Morissette
http://www.mapgears.com/

Reply via email to