133 reputation
5
bio website piemaster.net
location Melbourne, Australia
age 25
visits member for 1 year, 10 months
seen Oct 15 '12 at 11:54

Programmer and aspiring software engineer with far more ideas than time.


Aug
31
comment Is it good practice to manage all JTS spatial objects as abstract Geometry instances?
I would prefer to use Point for Points, but the JTS library does not appear to encourage this, since there's no apparent way to parse a WKT string directly into a Point; presumably it's parsed into a Point behind the scenes, but it's returned as a Geometry object. I realise I could cast it to a Point myself, but am wondering if I should, especially since basically every JTS function asks for Geometry parameters. I suspect I will in the end.
Aug
30
comment Is it good practice to manage all JTS spatial objects as abstract Geometry instances?
I agree, but it's still better than my old title. I always get a bit carried away :). I snuck a sneaky JTS back in anyway.
Aug
29
comment Is it good practice to manage all JTS spatial objects as abstract Geometry instances?
Thanks vinayan, that's a very helpful answer from which I'm a little more confident that I'm not completely crazy. It makes some slightly unintuitive sense that Geometry could be used for everything. I realise that I drifted away from asking a precise question, so I'll see if any other 'opinions' come through before accepting. Cheers!