Open tbonfort opened 12 years ago
Author: sgillies@frii.com Date: 2005/02/02 - 17:10
Tyler, we can't have polymorphic arguments for mapscript. SWIG won't support it.
As for the lines and points, this is just how a shapeObj is. It is a collection
of lines and lines are collections of points. The better way, IMO, to satisfy
your request is to extend pointObj with a "toShape" method that promotes a point
to a shapeObj. The calls could be chained up simply like:
so = pointObj(x, y).toShape() # returns a shapeObj
I'm sorta running out of steam on adding new features to mapscript, but this
is a natural.
Reporter: tylermitchell@shaw.ca Date: 2005/02/02 - 06:13