2011/4/1 ante lakos <[email protected]>:
> hi,
>
> i got an error when trying to that saying method could not be found.
>
Without seeing your code I can't tell what you were doing wrong, but
to illustrate that the problem is not the Geometry class I just ran
this code snippet:
WKTReader reader = new WKTReader();
Geometry geom = reader.read("LINESTRING(0 0, 1 2, 3 4, 5 6)");
Coordinate[] coords = geom.getCoordinates();
for (Coordinate c : coords) {
System.out.printf("%.1f %.1f \n", c.x, c.y);
}
Which produced this output as expected:
0.0 0.0
1.0 2.0
3.0 4.0
5.0 6.0
Michael
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users