jimmyconti / nettopologysuite

Automatically exported from code.google.com/p/nettopologysuite
0 stars 0 forks source link

Not really an issue, but need some help #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey,

i downloaded your MinimalBoundingCircle class and i'm wondering how to get a 
Geometry to put in the constructor.
I have some Coordinates and than i do this:

Collection<Coordinate> coordiates;  (The collection is filled with coordinates)
Geometry g = new GeometryFactory.buildGeometry(coordinates);

But when i want to get a new instance of your class, a classcastexception is 
thrown.

I have searched a lot, but i dont find a way to properly build a geometry for 
that case.

I would appreciate your help,
Lukas

Original issue reported on code.google.com by LukasSch...@gmx.de on 27 Dec 2013 at 11:05

GoogleCodeExporter commented 9 years ago
please post help requests like this in the google group: 
https://groups.google.com/forum/#!forum/nettopologysuite

Original comment by diegogu...@gmail.com on 27 Dec 2013 at 2:46

GoogleCodeExporter commented 9 years ago
when you post in the group, please add also some more details, because I'm 
unable to retrieve code for "MinimalBoundingCircle class", and 
GeometryFactory.buildGeometry accept as input a ICollection<Geometry> and not a 
ICollection<Coordinates>.
I suspect you're talking about an older NTS version, a branched version (are 
you using 2.X branch?) or other...

Original comment by diegogu...@gmail.com on 27 Dec 2013 at 2:54