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

View differences:

FGraphicUtilities.java
454 454
					//   + geo.getArea());
455 455
					//   System.out.println(geo.toText());
456 456
					Point pJTS = geo.getInteriorPoint();
457
					Geometry pLabel = (Geometry)Converter.jtsToGeometry(pJTS);
458
					theLabel.setRotation(0);
459
					theLabel.setOrig(new Point2D.Double(
460
							((org.gvsig.fmap.geom.primitive.Point) pLabel).getX(),
461
							((org.gvsig.fmap.geom.primitive.Point) pLabel).getX()));
457
					Geometry pLabel;
458
					try {
459
						pLabel = (Geometry)Converter.jtsToGeometry(pJTS);
460
						theLabel.setRotation(0);
461
						theLabel.setOrig(new Point2D.Double(
462
								((org.gvsig.fmap.geom.primitive.Point) pLabel).getX(),
463
								((org.gvsig.fmap.geom.primitive.Point) pLabel).getX()));
464
					} catch (CreateGeometryException e) {
465
						logger.error("Impossible to create the label", e);
466
					}				
462 467
				}
463 468

  
464 469
				pAux = mT.transform(theLabel.getOrig(), null);

Also available in: Unified diff