[geos-devel] RE: TaggedLineSegment
Martin Davis
mbdavis at VividSolutions.com
Wed Apr 19 13:53:53 EDT 2006
I probably did this for simplicity of programming. I would think you
can replace the subclass relationship with a uses relationship.
Martin Davis, Senior Technical Architect
Vivid Solutions Inc. www.vividsolutions.com
Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5
Phone: (250) 385 6040 - Local 308 Fax: (250) 385 6046
> -----Original Message-----
> From: strk [mailto:strk at keybit.net]
> Sent: April 12, 2006 9:19 AM
> To: Martin Davis
> Cc: geos-devel at geos.refractions.net
> Subject: TaggedLineSegment
>
>
> Martin, I'm porting the jts.simplify package
> to GEOS and I have a design question.
>
> Is it a problem if we avoid to have TaggedLineSegment
> derive from LineSegment ? This is probably not a problem
> with JTS, but in GEOS LineSegment is composed by 2 real
> Coordinates rather then pointers and we probably don't need
> the overhead associated with this. Moreover this would
> require LineSegment to become a polymorphic class whereas
> currently it is not (in head at least, this would be the
> first derivate of it).
>
>
> --strk;
>
> /"\ ASCII Ribbon Campaign
> \ / Respect for low technology.
> X Keep e-mail messages readable by any computer system.
> / \ Keep it ASCII.
>
>
More information about the geos-devel
mailing list