Revision 6040 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/rules/RulePolygon.java

View differences:

RulePolygon.java
73 73
        
74 74
        if (gp.isClosed())
75 75
        {
76
        	if (gp.isCCW())
76
        	boolean bCCW =gp.isCCW(); 
77
        	System.out.println("Counter ClockWise  = " + bCCW);
78
        	if (bCCW)
77 79
        	{
78
        		gp.ensureOrientation(false);
80
//         		gp.ensureOrientation(false);
81
        		gp.flip();
82
//            	IGeometry aux = ShapeFactory.createPolygon2D(gp);
83
//            	Geometry jtsGeom = aux.toJTSGeometry();
84
//            	geom = FConverter.jts_to_igeometry(jtsGeom);
85
        		
79 86
        		geom = ShapeFactory.createPolygon2D(gp);
80 87
        	}	
81 88
        	else
89
        	{
82 90
        		geom = ShapeFactory.createPolygon2D((FPolyline2D)geom.getInternalShape());
91
        	}
83 92
//        	IGeometry aux = ShapeFactory.createPolygon2D(gp);
84 93
//        	
85 94
        	Geometry jtsGeom = geom.toJTSGeometry();

Also available in: Unified diff