Revision 22782 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/rendering/symbols/FGraphicUtilities.java

View differences:

FGraphicUtilities.java
451 451

  
452 452
				if (theLabel.getOrig() == null) // Calculamos el punto solo la primera vez
453 453
				 {
454
					com.vividsolutions.jts.geom.Geometry geo = Converter.java2d_to_jts((FShape)geom);
454
					com.vividsolutions.jts.geom.Geometry geo = Converter.geometryToJts(geom);
455 455

  
456 456
					// System.out.println("Area de " + m_labelValues[numReg] + " = "
457 457
					//   + geo.getArea());
458 458
					//   System.out.println(geo.toText());
459 459
					Point pJTS = geo.getInteriorPoint();
460
					Geometry pLabel = (Geometry)Converter.jts_to_java2d(pJTS);
460
					Geometry pLabel = (Geometry)Converter.jtsToGeometry(pJTS);
461 461
					theLabel.setRotation(0);
462 462
					theLabel.setOrig(new Point2D.Double(
463 463
							((org.gvsig.fmap.geom.primitive.Point2D) pLabel).getX(),

Also available in: Unified diff