gvSIG bugs #1657

Error exporting layers to SHP format

Added by Ignacio Brodín about 11 years ago. Updated about 10 years ago.

Status:Closed% Done:

0%

Priority:UrgentSpent time:-
Assignee:Juan Lucas Domínguez
Category:Vector editing
Target version:2.0.0-final
Severity: Add-on version:
gvSIG version:2.0.0 Add-on build:
gvSIG build:2064 Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch:No Hito:
Add-on name:Unknown

Description

When the source has fields with more than eleven characters, the application shows an error

java.lang.IllegalArgumentException: Attribute name 'Unidad_medi' not found in the feature.
at org.gvsig.fmap.dal.feature.impl.DefaultFeature.get(DefaultFeature.java:281)
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.setNonNulls(ExporttoShapeService.java:416)
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.export(ExporttoShapeService.java:337)
at org.gvsig.exportto.swing.prov.shape.ExporttoShapeService.export(ExporttoShapeService.java:169)
at org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel$Export.run(DefaultJExporttoServicePanel.java:231)

The problem is that the field name is cut to be exported to SHP format. After cut, this field is requested to the source with the short name.

Other problem is that, if the source has two fields which the eleven first characters are equal there will be a problem exporting to SHP format


Related issues

Related to Application: gvSIG desktop - gvSIG bugs #1683: Can't save changes after adding a field with a long name ... Closed 03/22/2013
Duplicated by Application: gvSIG desktop - gvSIG bugs #1897: Issue when exporting to SHP: long field names are not man... Closed 06/06/2013

History

#1 Updated by Manuel Madrid about 11 years ago

  • Priority changed from Normal to Urgent

#2 Updated by Manuel Madrid almost 11 years ago

  • Category set to Vector editing

#3 Updated by Manuel Madrid almost 11 years ago

  • Assignee set to Juan Lucas Domínguez

#4 Updated by Juan Lucas Domínguez over 10 years ago

  • Status changed from New to Fixed

Renamed long names to short ones also avoiding repetitions. Finally a dialog informs of changes in names.

gvsig-desktop:r40602

#5 Updated by Álvaro Anguix about 10 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF