Revision 47432 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/AbstractGeometry.java

View differences:

AbstractGeometry.java
1016 1016
        }
1017 1017
    }
1018 1018

  
1019
    @Override
1020
    public Geometry forceSubtype(int subtype) throws GeometryOperationNotSupportedException, GeometryOperationException {
1021
        switch(subtype){
1022
            case Geometry.SUBTYPES.GEOM2D:
1023
                return force2D();
1024
            case Geometry.SUBTYPES.GEOM2DM:
1025
                return force2DM();
1026
            case Geometry.SUBTYPES.GEOM3D:
1027
                return force3D();
1028
            case Geometry.SUBTYPES.GEOM3DM:
1029
                return force3DM();
1030
        }
1031
        return this;
1032
    }
1019 1033
    
1034
    protected abstract Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException;
1035
    
1036
    protected abstract Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException;
1037
    
1038
    protected abstract Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException;
1039

  
1040

  
1041
    
1042
    
1020 1043
}

Also available in: Unified diff