Revision 29231
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
2011 | 2011 |
int typeShape=((FLyrVect)this).getShapeType(); |
2012 | 2012 |
if (FShape.MULTI==typeShape){ |
2013 | 2013 |
ReadableVectorial rv=((FLyrVect)this).getSource(); |
2014 |
if (rv.getShapeCount()>0){ |
|
2015 |
if ((rv.getShape(0).getGeometryType() & FShape.Z) == FShape.Z){ |
|
2014 |
int i=0; |
|
2015 |
boolean isCorrect=false; |
|
2016 |
while(rv.getShapeCount()>i && !isCorrect){ |
|
2017 |
IGeometry geom=rv.getShape(i); |
|
2018 |
if (geom==null){ |
|
2019 |
i++; |
|
2020 |
continue; |
|
2021 |
} |
|
2022 |
isCorrect=true; |
|
2023 |
if ((geom.getGeometryType() & FShape.Z) == FShape.Z){ |
|
2016 | 2024 |
typeInt=FShape.MULTI | FShape.Z; |
2017 | 2025 |
}else{ |
2018 | 2026 |
typeInt=FShape.MULTI; |
... | ... | |
2020 | 2028 |
} |
2021 | 2029 |
}else{ |
2022 | 2030 |
ReadableVectorial rv=((FLyrVect)this).getSource(); |
2023 |
if (rv.getShapeCount()>0){ |
|
2024 |
int type=rv.getShape(0).getGeometryType(); |
|
2031 |
int i=0; |
|
2032 |
boolean isCorrect=false; |
|
2033 |
while(rv.getShapeCount()>i && !isCorrect){ |
|
2034 |
IGeometry geom=rv.getShape(i); |
|
2035 |
if (geom==null){ |
|
2036 |
i++; |
|
2037 |
continue; |
|
2038 |
} |
|
2039 |
isCorrect=true; |
|
2040 |
int type=geom.getGeometryType(); |
|
2025 | 2041 |
typeInt=type; |
2026 | 2042 |
} |
2027 | 2043 |
return typeInt; |
Also available in: Unified diff