Hi,
> I placed counter like this
>
> paths = new ArrayList();;
> count = 0;
> for (Iterator i = fc.getFeatures().iterator(); i.hasNext();) {
> Feature feature = (Feature) i.next();
> LineString lineString = (LineString)feature.getGeometry();
> URL url;
>
Hi,
I placed counter like this
paths = new ArrayList();;
count = 0;
for (Iterator i = fc.getFeatures().iterator(); i.hasNext();) {
Feature feature = (Feature) i.next();
LineString lineString = (LineString)feature.getGeometry();
URL url;
try {
...SNIP.
Hi Jukka,
You can easily pick start and end point with
Geometry geometry = feature.getGeometry();
// this will return something whatever the geometry is
Coordinate[] cc = geometry.getCoordinates();
x_start = cc[0].x;
y_start = cc[0].y;
x_end = cc[cc.length-1].x;
y_end = cc[cc.length-1].y;
// thi