Yes, you need to construct the polygon to calculate the area (or length).
JTS has all the tools required to do this. Look at the GeometryFactory.
On Tue, Sep 23, 2014 at 3:22 PM, Alireza Rezaei Mahdiraji <
alireza...@gmail.com> wrote:
>
> Thanks Craig,
>
> What about the case where we have two po
Thanks Craig,
What about the case where we have two point nodes, how do we compute the
length, or when we have a set of points related to a
polygon, how do we compute the area? Shall we create linestring and polygon
first and then compute length and area?
Thanks,
Best,
Alireza
On Friday,
I'm assuming these are nodes that represent geometries. In that case you
should convert them to the JTS Geometry object and get the length and area
from that.
For example, if you did a search with the GeoPipeline, you will return a
collection of SpatialDatabaseRecord objects, which contain the nod
Hi All,
I need to calculate length and area of given node(s) in two cases:
1- for length either a node with line string geometry is given or two nodes
with point geometry
2- for polygon either a node with polygon geometry is given or the set of
points of the polygon
as separate point geomet