Revision 28425
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FConverter.java | ||
---|---|---|
56 | 56 |
import java.lang.reflect.Array; |
57 | 57 |
import java.util.ArrayList; |
58 | 58 |
|
59 |
import com.iver.cit.gvsig.fmap.core.FNullGeometry; |
|
59 | 60 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
60 | 61 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
61 | 62 |
import com.iver.cit.gvsig.fmap.core.FPolyline2D; |
... | ... | |
131 | 132 |
*/ |
132 | 133 |
public static IGeometry jts_to_igeometry(Geometry jtsGeometry){ |
133 | 134 |
FShape shape = FConverter.jts_to_java2d(jtsGeometry); |
135 |
if (shape == null) |
|
136 |
return new FNullGeometry(); |
|
134 | 137 |
return ShapeFactory.createGeometry(shape); |
135 | 138 |
} |
136 | 139 |
|
... | ... | |
894 | 897 |
|
895 | 898 |
case FShape.LINE: |
896 | 899 |
case FShape.LINE + FShape.Z: |
897 |
case FShape.LINE | FShape.M:
|
|
900 |
case FShape.LINE | FShape.M: |
|
898 | 901 |
case FShape.ARC: |
899 | 902 |
shp = new FPolyline2D(newGp); |
900 | 903 |
break; |
Also available in: Unified diff