Revision 42324

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.shp/src/main/java/org/gvsig/fmap/dal/store/shp/utils/SHPPolygon2DWriter.java
103 103
        }
104 104

  
105 105
        for (int t = 0; t < npoints; t++) {
106
            buffer.putDouble(points[t].getX());
107
            buffer.putDouble(points[t].getY());
106
            Point point = points[t];
107
            buffer.putDouble(point.getX());
108
            buffer.putDouble(point.getY());
108 109
        }
109 110

  
110 111
	}
......
159 160
                    if (surface instanceof Polygon) {
160 161
                        Polygon polygon = (Polygon)surface;
161 162
                        polygon.ensureOrientation(false);
162
                        multiPolygon.addPrimitive(surface);
163
                        multiPolygon.addPrimitive(polygon);
163 164
                    } else {
164 165
                        MultiPolygon polygons = surface.toPolygons();
165 166
                        for (int j = 0; j < polygons.getPrimitivesNumber(); j++) {

Also available in: Unified diff