Ticket #1775 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

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

Reported by: m.haertel@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.8
Severity: normal Keywords:
Cc:

Description

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.

Change History

Changed 7 years ago by dmorissette

  • status changed from new to assigned
Checking.

Changed 7 years ago by dmorissette

  • owner changed from mapserverbugs to sgillies@…
  • status changed from assigned to new
  • component changed from MapScript-PHP to MapScript-SWIG
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.

Changed 7 years ago by dmorissette

  • cc dmorissette@… added

Changed 7 years ago by m.haertel@…

  • status changed from new to closed
  • resolution set to invalid
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.
Note: See TracTickets for help on using tickets.