Revision 29008 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/IndexedShpDriver.java
IndexedShpDriver.java | ||
---|---|---|
712 | 712 |
private synchronized Rectangle2D.Double readRectangle(BigByteBuffer2 in){ |
713 | 713 |
Rectangle2D.Double tempRect = new Rectangle2D.Double(); |
714 | 714 |
in.order(ByteOrder.LITTLE_ENDIAN); |
715 |
tempRect.x = in.getDouble(); |
|
716 |
tempRect.y = in.getDouble(); |
|
715 |
tempRect.setFrameFromDiagonal(in.getDouble(), in.getDouble(), in.getDouble(), in.getDouble()); |
|
717 | 716 |
|
718 |
tempRect.width = in.getDouble() - tempRect.x; |
|
719 |
|
|
720 | 717 |
if (tempRect.width == 0) { |
721 | 718 |
tempRect.width = 0.2; |
722 | 719 |
tempRect.x -= 0.1; |
723 | 720 |
} |
724 | 721 |
|
725 |
tempRect.height = in.getDouble() - tempRect.y; |
|
726 |
|
|
727 | 722 |
if (tempRect.height == 0) { |
728 | 723 |
tempRect.height = 0.2; |
729 | 724 |
tempRect.y -= 0.1; |
Also available in: Unified diff