Revision 2196 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/write/SHPPolygon.java
SHPPolygon.java | ||
---|---|---|
44 | 44 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
45 | 45 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
46 | 46 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
47 |
import com.iver.cit.gvsig.fmap.drivers.shp.SHP; |
|
47 | 48 |
|
48 | 49 |
import java.awt.geom.Rectangle2D; |
49 | 50 |
|
... | ... | |
205 | 206 |
buffer.putDouble(points[t].getY()); |
206 | 207 |
} |
207 | 208 |
|
208 |
/* if (m_type == FConstant.SHAPE_TYPE_POLYGONZ) {
|
|
209 |
double[] zExtreame = JTSUtilities.zMinMax(points);
|
|
209 |
if (m_type == FConstant.SHAPE_TYPE_POLYGONZ) { |
|
210 |
double[] zExtreame = SHP.getZMinMax(zs);
|
|
210 | 211 |
if (Double.isNaN(zExtreame[0])) { |
211 | 212 |
buffer.putDouble(0.0); |
212 | 213 |
buffer.putDouble(0.0); |
... | ... | |
215 | 216 |
buffer.putDouble(zExtreame[1]); |
216 | 217 |
} |
217 | 218 |
for (int t = 0; t < npoints; t++) { |
218 |
double z = points[t].z;
|
|
219 |
double z = zs[t];
|
|
219 | 220 |
if (Double.isNaN(z)) { |
220 | 221 |
buffer.putDouble(0.0); |
221 | 222 |
} else { |
... | ... | |
223 | 224 |
} |
224 | 225 |
} |
225 | 226 |
} |
226 |
*/ |
|
227 |
|
|
227 | 228 |
if ((m_type == FConstant.SHAPE_TYPE_POLYGONM) || |
228 | 229 |
(m_type == FConstant.SHAPE_TYPE_POLYGONZ)) { |
229 | 230 |
buffer.putDouble(-10E40); |
Also available in: Unified diff