Revision 34899 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/shp/utils/SHPFile.java

View differences:

SHPFile.java
326 326
		case (SHP.POLYLINE3D):
327 327
		case (SHP.POLYGON3D):
328 328
		case (SHP.MULTIPOINT3D):
329
			return SUBTYPES.GEOM2DZ;
329
			return SUBTYPES.GEOM3D;
330 330
		case (SHP.POINTM):
331 331
		case (SHP.POLYLINEM):
332 332
		case (SHP.POLYGONM):
......
461 461
		double y = bb.getDouble();
462 462
		double z = bb.getDouble();
463 463

  
464
		Point point3D = (Point)gManager.create(TYPES.POINT, SUBTYPES.GEOM2DZ);
464
		Point point3D = (Point)gManager.create(TYPES.POINT, SUBTYPES.GEOM3D);
465 465
			point3D.setX(x);
466 466
			point3D.setY(y);
467 467
		point3D.setCoordinateAt(2, z);
......
500 500

  
501 501
		double[] pZ = new double[numPoints];
502 502

  
503
		Curve curve3D = (Curve)gManager.create(TYPES.CURVE , SUBTYPES.GEOM2DZ);
503
		Curve curve3D = (Curve)gManager.create(TYPES.CURVE , SUBTYPES.GEOM3D);
504 504
		curve3D.setGeneralPath(elShape);
505 505

  
506 506
		for (i = 0; i < numPoints; i++) {
......
546 546

  
547 547
		double[] poZ = new double[numPoints];
548 548

  
549
		Surface surface3D = (Surface)gManager.create(TYPES.SURFACE, SUBTYPES.GEOM2DZ);
549
		Surface surface3D = (Surface)gManager.create(TYPES.SURFACE, SUBTYPES.GEOM3D);
550 550
		surface3D.setGeneralPath(elShape);
551 551

  
552 552
		for (i = 0; i < numPoints; i++) {
......
596 596
			temZ[i] = bb.getDouble();
597 597
		}
598 598

  
599
		MultiPoint multipoint3D = (MultiPoint)gManager.create(TYPES.MULTIPOINT, SUBTYPES.GEOM2DZ);
599
		MultiPoint multipoint3D = (MultiPoint)gManager.create(TYPES.MULTIPOINT, SUBTYPES.GEOM3D);
600 600
		for (int k=0 ; k<temX.length ; k++){
601
			Point pointAux = (Point)gManager.create(TYPES.POINT ,SUBTYPES.GEOM2DZ);
601
			Point pointAux = (Point)gManager.create(TYPES.POINT ,SUBTYPES.GEOM3D);
602 602
			pointAux.setX(temX[k]);
603 603
			pointAux.setY(temY[k]);
604 604
			pointAux.setCoordinateAt(2, temZ[k]);

Also available in: Unified diff