Revision 42189
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.shp/src/main/java/org/gvsig/fmap/dal/store/shp/utils/SHPFileWrite.java | ||
---|---|---|
226 | 226 |
public synchronized int writeGeometry(Geometry g) |
227 | 227 |
throws WriteException { |
228 | 228 |
if ( m_shape.getShapeType() != this.m_type ) { |
229 |
if ( this.inconsistenciesInGeometryTypeCounter++ < 10 ) {
|
|
229 |
if ( this.inconsistenciesInGeometryTypeCounter < 10 ) { |
|
230 | 230 |
logger.warn("Saving a geometry of type '" + SHP.getTypeName(m_shape.getShapeType()) + "' in a shape of type '" + SHP.getTypeName(this.m_type) + "'."); |
231 |
} else if ( this.inconsistenciesInGeometryTypeCounter++ < 11 ) {
|
|
231 |
} else if ( this.inconsistenciesInGeometryTypeCounter < 11 ) { |
|
232 | 232 |
logger.warn("Too many warnings. Saving a geometry of type '" + SHP.getTypeName(m_shape.getShapeType()) + "' in a shape of type '" + SHP.getTypeName(this.m_type) + "'."); |
233 | 233 |
} |
234 |
this.inconsistenciesInGeometryTypeCounter++; |
|
234 | 235 |
} |
235 |
|
|
236 |
|
|
236 | 237 |
if ( m_bb == null ) { |
237 | 238 |
allocateBuffers(); |
238 | 239 |
m_offset = 50; |
... | ... | |
283 | 284 |
*/ |
284 | 285 |
public int getShapeType(int geometryType, int geometrySubType) { |
285 | 286 |
|
286 |
if ( geometrySubType == Geometry.SUBTYPES.GEOM3D ) { |
|
287 |
if ( geometrySubType == Geometry.SUBTYPES.GEOM3D || geometrySubType == Geometry.SUBTYPES.GEOM3DM ) {
|
|
287 | 288 |
switch (geometryType) { |
288 | 289 |
case Geometry.TYPES.NULL: |
289 | 290 |
return SHP.NULL; |
Also available in: Unified diff