Revision 24154 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/write/SHPPolygon.java

View differences:

SHPPolygon.java
47 47
import com.iver.cit.gvsig.fmap.core.FPoint2D;
48 48
import com.iver.cit.gvsig.fmap.core.FPolygon2D;
49 49
import com.iver.cit.gvsig.fmap.core.IGeometry;
50
import com.iver.cit.gvsig.fmap.core.IGeometryM;
50 51
import com.iver.cit.gvsig.fmap.core.v02.FConstant;
51 52
import com.iver.cit.gvsig.fmap.drivers.shp.SHP;
52 53

  
......
223 224
		   }
224 225
		   }
225 226

  
226
		if ((m_type == FConstant.SHAPE_TYPE_POLYGONM) ||
227
				(m_type == FConstant.SHAPE_TYPE_POLYGONZ)) {
227
		if (m_type == FConstant.SHAPE_TYPE_POLYGONM){
228 228
			buffer.putDouble(-10E40);
229 229
			buffer.putDouble(-10E40);
230

  
231
			for (int t = 0; t < npoints; t++) {
232
				buffer.putDouble(-10E40);
233
			}
230
			double[] ms = ((IGeometryM)geometry).getMs();
231
			for (int t = 0; t < npoints; t++) {		    	   
232
				buffer.putDouble(ms[t]);
233
			}		
234 234
		}
235 235
	}
236 236

  

Also available in: Unified diff