gvSIG bugs #561

Export to from DXF to Shape does not work

Added by Cesar Ordiñana about 12 years ago. Updated almost 12 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Juan Lucas Domínguez
Category:Document view
Target version:2.0.0-alpha6
Severity: Add-on version:
gvSIG version:2.0.0 Add-on build:
gvSIG build:2046 Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch:No Hito:
Add-on name:Export framework (org.gvsig.exportto.app.extension)

Description

To reproduce the error perform the following steps:

  1. Open a layer with a DXF file.
  2. Select the menu option Layer > Export to
  3. Select the Shape format to export to
  4. Select the file to create
  5. Click on the export button

The process will create three shape files, one for each geometry type (point, curve, surface), but will fail in the first one where features are created, with the following error:

ERROR [Thread-8] (DefaultJExporttoServicePanel.java:235) - Error exporting the store
org.gvsig.exportto.ExporttoServiceException: An error has been produced exporting a store
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.export(ExporttoShapeService.java:236)
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.export(ExporttoShapeService.java:113)
at org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel$Export.run(DefaultJExporttoServicePanel.java:233)
Caused by: org.gvsig.fmap.dal.feature.exception.StoreInsertFeatureException: Can't insert feature in store 'provincias3_
surfaces'.
at org.gvsig.fmap.dal.feature.impl.DefaultFeatureStore.insert(DefaultFeatureStore.java:1026)
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.export(ExporttoShapeService.java:224)
... 2 more
Caused by: Error while executing an action in resource 'MultiResource /tmp/gvsig/provincias3_surface.shp:: FileResource(
/tmp/gvsig/provincias3_surface.shp), FileResource(/tmp/gvsig/provincias3.shx), FileResource(/tmp/gvsig/provincias3.dbf),
FileResource(/tmp/gvsig/provincias3_surface.shp), FileResource(/tmp/gvsig/provincias3.shx), FileResource(/tmp/gvsig/pro
vincias3.dbf) (default)'.
at org.gvsig.fmap.dal.resource.spi.AbstractResource.execute(AbstractResource.java:314)
at org.gvsig.fmap.dal.store.shp.SHPStoreProvider.append(SHPStoreProvider.java:561)
at org.gvsig.fmap.dal.feature.impl.DefaultFeatureStore.insert(DefaultFeatureStore.java:1013)
... 3 more
Caused by: org.gvsig.fmap.dal.exception.WriteException: Exception writing 'Shape'.
at org.gvsig.fmap.dal.store.shp.SHPFeatureWriter.append(SHPFeatureWriter.java:154)
at org.gvsig.fmap.dal.store.shp.SHPStoreProvider$4.run(SHPStoreProvider.java:563)
at org.gvsig.fmap.dal.resource.spi.AbstractResource.performExecution(AbstractResource.java:323)
at org.gvsig.fmap.dal.resource.spi.AbstractResource.execute(AbstractResource.java:312)
... 5 more
Caused by: java.lang.RuntimeException: UnsupportedGeometryType: Surface2D
at org.gvsig.fmap.dal.store.shp.SHPFeatureWriter.append(SHPFeatureWriter.java:155)
... 8 more

It seems there is an error in the handling of the geometry type. It uses only the geometry type int value instead of the GeometryType, so the subtype is lost. Also it seems to not set well the geometry type in the created shape files.

History

#1 Updated by Manuel Madrid almost 12 years ago

  • Target version set to 2.0.0-rc1

#2 Updated by Joaquín del Cerro Murciano almost 12 years ago

  • Target version changed from 2.0.0-rc1 to 2.0.0-alpha6

#3 Updated by Juan Lucas Domínguez almost 12 years ago

  • Assignee set to Juan Lucas Domínguez

#4 Updated by Juan Lucas Domínguez almost 12 years ago

  • Status changed from New to In progress

#5 Updated by Juan Lucas Domínguez almost 12 years ago

  • Status changed from In progress to Fixed

gvsig-desktop:r38411
Forced refreshment of geom type in new params. A manager validates and fixes afterwards, as it happens in the first export (points)

#6 Updated by María Maluenda almost 12 years ago

  • Status changed from Fixed to Closed

Closed in the gvSIG build 2049.

Also available in: Atom PDF