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

Debabrata Bardhan dbardhan at gmail.com
Mon Mar 21 04:18:45 EDT 2011


Thanks I had a silly mistake.
On Mon, Mar 21, 2011 at 1:20 PM, Sandro Santilli <strk at keybit.net> wrote:

> 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>
>
> --strk;
>
>  ()   Free GIS & Flash consultant/developer
>  /\   http://strk.keybit.net/services.html
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>



-- 

Thanks & Regards,
Debabrata Bardhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20110321/e0fcc173/attachment.html


More information about the geos-devel mailing list