MapServer / MapServer-import

3 stars 2 forks source link

shapeObj->get() replaced by shapeObj->line() to get the lineObj #1775

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: m.haertel@hzd.de Date: 2006/05/10 - 11:58

I found out that $shapeObj->get() doesn't exist anymore (like documented in the
online documentation).
I also found references to shapeObj->getline() but that method didn't return a
lineObj either.
But ShapeObj->line() works. I just made a guess and seem to have found the
replacement.
tbonfort commented 12 years ago

Author: dmorissette Date: 2006/05/10 - 19:10

Checking.
tbonfort commented 12 years ago

Author: dmorissette Date: 2006/05/10 - 19:18

Which version of MapScript (PHP, Python, Perl, etc?) are you using?

You filed this bug under the PHP MapScript component, but the PHP MapScript docs
are up to date, they include a ref to the shapeObj->line() method, and this is
also what is implemented in the PHP MapScript code:

http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/shapeobj

However, I found a reference  to this shapeObj->get() method in the SWIG
MapScript docs whiich suggestes to me that you must be using something other
than PHP, so I will reassign this bug to the SWIG MapScript component.
tbonfort commented 12 years ago

Author: m.haertel@hzd.de Date: 2006/05/11 - 12:25

I see the difference now. 

I used the general MapScript API information from
http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#shapeobj

which points to the general documentation (SWIG?). So I used the wrong
reference, sorry about that. 

Your reference to 
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/shapeobj

showed the correct methods. Thanks.

I now use MapScript 4.8.1 and worked with MapScript 4.6.x formerly. 
I think I'm right if I remember that in PHP MapScript Version 4.6 the method
ShapeObj->get() was used to receive the lineObj.

I guess it's the basic discussion about consolidation of the different APIs.

Thanks a lot for your reply, the "bug" can be closed I guess.