Revision 9445
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/writers/shp/ShpWriter.java | ||
---|---|---|
222 | 222 |
myHeader.setNumRecords(0); |
223 | 223 |
dbfWrite = new DbaseFileWriterNIO(myHeader, |
224 | 224 |
(FileChannel) getWriteChannel(dbfPath)); |
225 |
|
|
225 |
|
|
226 | 226 |
dbfWrite.setCharset(charset); |
227 | 227 |
|
228 | 228 |
record = new Object[myHeader.getNumFields()]; |
... | ... | |
251 | 251 |
// Revisamos que podemos escribir esa entidad |
252 | 252 |
// En un shpFile, podemos meter pol?gonos, pero que sean como |
253 | 253 |
// lineas. En cambio, en uno de puntos solo se pueden meter puntos |
254 |
if (canWriteGeometry(theGeom.getGeometryType()))
|
|
254 |
if (canWriteGeometry(theGeom.getGeometryType()) || canWriteGeometry(gvSIG_geometryType))
|
|
255 | 255 |
{ |
256 | 256 |
for (int i=0; i < record.length; i++) |
257 | 257 |
record[i] = feat.getAttribute(i); |
... | ... | |
397 | 397 |
} |
398 | 398 |
return false; |
399 | 399 |
} |
400 |
|
|
400 |
|
|
401 | 401 |
public void setCharsetForWriting(Charset charset) { |
402 | 402 |
this.charset = charset; |
403 | 403 |
} |
Also available in: Unified diff