Revision 42876

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/SHPMultiPointWriter.java
110 110
     * @param coordinate
111 111
     */
112 112
    private void putExtraCoordinateValuesInBuffer(ByteBuffer buffer, int coordinate) {
113
        double min = Double.MAX_VALUE;
114
        double max = Double.MIN_VALUE;
113
        double min = Double.POSITIVE_INFINITY;
114
        double max = Double.NEGATIVE_INFINITY;
115 115
        List<Double> values = new ArrayList<Double>();
116 116
        for (int i = 0; i < numpoints; i++) {
117 117
            Point point = (Point) multipoint.getPrimitiveAt(i);
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/SHPMultiLine2DMWriter.java
86 86
            throw new WriteException("SHPMultiLine2DM write", e);
87 87
        }
88 88

  
89
		double Mmin=Double.MAX_VALUE;
90
        double Mmax=Double.MIN_NORMAL;
89
		double Mmin=Double.POSITIVE_INFINITY;
90
        double Mmax=Double.NEGATIVE_INFINITY;
91 91
		int numParts = parts.length;
92 92
		int npoints = points.length;
93 93

  
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/SHPReader2DM.java
228 228

  
229 229
        for (int i = 0; i < numPoints; i++) {
230 230
            Point point = (Point) gManager.create(Geometry.TYPES.POINT, Geometry.SUBTYPES.GEOM2DM);
231
            point.setX(bb.getDouble());
232
            point.setY(bb.getDouble());
231 233
            multipoint.addPoint(point);
232 234
        }
233 235

  
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/SHPReader3DM.java
235 235

  
236 236
        for (int i = 0; i < numPoints; i++) {
237 237
            Point point = (Point) gManager.create(Geometry.TYPES.POINT, Geometry.SUBTYPES.GEOM3DM);
238
            point.setX(bb.getDouble());
239
            point.setY(bb.getDouble());
238 240
            multipoint.addPoint(point);
239 241
        }
240 242

  
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/SHPPolygon3DWriter.java
91 91
            throw new WriteException("SHPPolygon2DWriter", e);
92 92
        }
93 93

  
94
        double minM = Double.MAX_VALUE;
95
        double maxM = Double.MIN_NORMAL;
96
        double minZ = Double.MAX_VALUE;
97
        double maxZ = Double.MIN_NORMAL;
94
        double minM = Double.POSITIVE_INFINITY;
95
        double maxM = Double.NEGATIVE_INFINITY;
96
        double minZ = Double.POSITIVE_INFINITY;
97
        double maxZ = Double.NEGATIVE_INFINITY;
98 98
        int numParts = parts.length;
99 99
        int npoints = points.length;
100 100

  
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/SHPMultiLine3DWriter.java
86 86
            throw new WriteException("SHPMultiLine3D write", e);
87 87
        }
88 88

  
89
		double minM=Double.MAX_VALUE;
90
        double maxM=Double.MIN_NORMAL;
91
        double minZ=Double.MAX_VALUE;
92
        double maxZ=Double.MIN_NORMAL;
89
		double minM=Double.POSITIVE_INFINITY;
90
        double maxM=Double.NEGATIVE_INFINITY;
91
        double minZ=Double.POSITIVE_INFINITY;
92
        double maxZ=Double.NEGATIVE_INFINITY;
93 93
		int numParts = parts.length;
94 94
		int npoints = points.length;
95 95
		buffer.putInt(numParts);
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/SHPPolygon2DMWriter.java
91 91
            throw new WriteException("SHPPolygon2DWriter", e);
92 92
        }
93 93

  
94
        double Mmin=Double.MAX_VALUE;
95
        double Mmax=Double.MIN_NORMAL;
94
        double Mmin=Double.POSITIVE_INFINITY;
95
        double Mmax=Double.NEGATIVE_INFINITY;
96 96
		int numParts = parts.length;
97 97
		int npoints = points.length;
98 98

  

Also available in: Unified diff