Revision 2975
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FConverter.java | ||
---|---|---|
518 | 518 |
coord = p.getExteriorRing().getCoordinateN(i); |
519 | 519 |
|
520 | 520 |
if (i == 0) { |
521 |
resul.moveTo((float) coord.x, (float) coord.y);
|
|
521 |
resul.moveTo(coord.x,coord.y);
|
|
522 | 522 |
} else { |
523 |
resul.lineTo((float) coord.x, (float) coord.y);
|
|
523 |
resul.lineTo(coord.x,coord.y);
|
|
524 | 524 |
} |
525 | 525 |
} |
526 | 526 |
|
... | ... | |
531 | 531 |
coord = hole.getCoordinateN(k); |
532 | 532 |
|
533 | 533 |
if (k == 0) { |
534 |
resul.moveTo((float) coord.x, (float) coord.y);
|
|
534 |
resul.moveTo(coord.x, coord.y);
|
|
535 | 535 |
} else { |
536 |
resul.lineTo((float) coord.x, (float) coord.y);
|
|
536 |
resul.lineTo(coord.x, coord.y);
|
|
537 | 537 |
} |
538 | 538 |
} |
539 | 539 |
} |
... | ... | |
598 | 598 |
throws NoninvertibleTransformException { |
599 | 599 |
GeneralPathX shape = new GeneralPathX(); |
600 | 600 |
FPoint2D viewPoint = toViewPoint(lineString.getCoordinateN(0)); |
601 |
shape.moveTo((float) viewPoint.getX(), (float) viewPoint.getY());
|
|
601 |
shape.moveTo(viewPoint.getX(), viewPoint.getY());
|
|
602 | 602 |
|
603 | 603 |
for (int i = 1; i < lineString.getNumPoints(); i++) { |
604 | 604 |
viewPoint = toViewPoint(lineString.getCoordinateN(i)); |
605 |
shape.lineTo((float) viewPoint.getX(), (float) viewPoint.getY());
|
|
605 |
shape.lineTo(viewPoint.getX(), viewPoint.getY());
|
|
606 | 606 |
} |
607 | 607 |
|
608 | 608 |
//BasicFeatureRenderer expects LineStrings and MultiLineStrings to be |
Also available in: Unified diff