Revision 41216

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.impl/src/main/java/org/gvsig/fmap/geom/util/Converter.java
497 497
					CoordinateArrays.toCoordinateArray(arrayCoords));
498 498

  
499 499
			lin.setSRID(srid);
500
			// CAMBIO: ENTREGAMOS SIEMPRE MULTILINESTRING, QUE ES
501
			// LO QUE HACE TO_DO EL MUNDO CUANDO ESCRIBE EN POSTGIS
502
			// O CON GEOTOOLS
503
			// if (numParts > 1) // Generamos una MultiLineString
504
			//  {
500
			geoJTS = lin;
501
			
502
			/*
503
			 * We were creating always a multilinestring here, but
504
			 * we have decided that we should return the correct type
505
			 * (linestring) and other parts of the application will have
506
			 * to solve the problem, it there is a problem with this.
507
			 * 
505 508
			arrayLines.add(lin);
506 509
			geoJTS = geomFactory.createMultiLineString(
507 510
					com.vividsolutions.jts.geom.GeometryFactory.toLineStringArray(arrayLines));
508 511
			geoJTS.setSRID(srid);
512
			*/
509 513
			break;
510 514

  
511 515
		case Geometry.TYPES.SURFACE:

Also available in: Unified diff