[geos-devel] cannot convert ‘geos::geom::LineString*’ to ‘geos::geom::Geometry*’ in assignment

Sandro Santilli strk at keybit.net
Mon Mar 21 03:50:17 EDT 2011

On Thu, Mar 17, 2011 at 05:19:18PM +0530, Debabrata Bardhan wrote:
> Hello,
> I have a class as  following . As i have notice Class LineString is derived
> from Geometry Class but when I am trying assing LineSegment  object
> reference to a Geometry pointer , I am getting an error like
> *cannot convert ‘geos::geom::LineString*’ to ‘geos::geom::Geometry*’ in
> assignment*
> Can you please help me in this regard.

#include <geos/geom/LineString.h>


  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html

More information about the geos-devel mailing list