Hi David,

If I understand correctly, you're suggesting of turning the tables,
ie implementing a wrapper class for JTS objects, which implements
the NodeInfo interface, rather than the other way round, correct?

What do you mean by weak references, exactly?  

Cheers,
Peter

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of David Zwiers
> Sent: June 9, 2008 14:29
> To: JTS Topology Suite Development
> Subject: RE: [jts-devel] extracting a geometry from some other object
> 
> Peter,
> 
> You could create an implementation of the 
> CoordinateSequenceFactory which backs onto a string ... but 
> this would be very inefficient at accessing each ordinate, 
> and may not save you any memory (I believe some operations 
> use Coordinate Arrays rather than sequences). If I was in 
> your shoes, I'd be looking at a way to use the JTS Objects, 
> and reduce the number of times I'd be performing the parse 
> (I'm thinking of weak references to the parsed JTS objects so 
> they only hang around as long as there is space).
> 
> HTH.
> 
> David
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Rushforth, Peter
> Sent: June 9, 2008 11:07 AM
> To: JTS Topology Suite Development
> Subject: RE: [jts-devel] extracting a geometry from some other object
> 
> Hi Jody,
> 
> No, the GML has already been parsed and is resident as String 
> text in another object not related to JTS.  I want to either 
> 'parse' that object to create a JTS Geometry, or preferably, 
> implement a wrapper for that object which allows me to treat 
> it like a JTS Geometry object, ie to invoke the Geometry api 
> over it.  I don't really want to parse and create yet another 
> object, because of memory requirements, but if absolutely 
> necessary, that might be the only way to go.
> 
> Peter
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Jody 
> > Garnett
> > Sent: June 9, 2008 13:08
> > To: JTS Topology Suite Development
> > Subject: Re: [jts-devel] extracting a geometry from some 
> other object
> > 
> > So let me get this straight? Are you parsing GML? If so 
> GML2 or GML3?
> > Jody
> > 
> > Rushforth, Peter wrote:
> > > Hi,
> > >
> > > I've got an object which is hiding some geometry
> > information (OK it's
> > > a NodeInfo object with a realized gml:_Geometry in it).
> > >
> > > I want to interact with that NodeInfo object via the JTS
> > Geometry API.
> > >
> > > How should I approach this?  Is there some standard programming 
> > > pattern that I should use, or is there a standard
> > programming method
> > > that JTS developers would use in this regard?
> > >
> > > Any advice appreciated (except for "hire a real
> > programmer"-type stuff
> > > ;-)).
> > >
> > > Cheers and thanks!
> > >
> > > Peter
> > > _______________________________________________
> > > jts-devel mailing list
> > > [email protected]
> > > http://lists.refractions.net/mailman/listinfo/jts-devel
> > >   
> > 
> > _______________________________________________
> > jts-devel mailing list
> > [email protected]
> > http://lists.refractions.net/mailman/listinfo/jts-devel
> > 
> _______________________________________________
> jts-devel mailing list
> [email protected]
> http://lists.refractions.net/mailman/listinfo/jts-devel
> _______________________________________________
> jts-devel mailing list
> [email protected]
> http://lists.refractions.net/mailman/listinfo/jts-devel
> 
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to