Skip to content

Typo: Shapefile "repackaging" is skipping ".cpg" files #3556

@raprasad

Description

@raprasad

Dataverse should handle shapefiles as described here:

However, there's a bug where ".cpg" files aren't being re-packaged.

Fix

File: ShapefileHandler.java

  • Current line with Bug. Should be cpg, not .cpg
    public final static List<String> SHAPEFILE_ALL_EXTENSIONS = Arrays.asList("shp", "shx", "dbf", "prj", "sbn", "sbx", "fbn", "fbx", "ain", "aih", "ixs", "mxs", "atx", ".cpg", SHP_XML_EXTENSION);  
  • Fixed line:
    public final static List<String> SHAPEFILE_ALL_EXTENSIONS = Arrays.asList("shp", "shx", "dbf", "prj", "sbn", "sbx", "fbn", "fbx", "ain", "aih", "ixs", "mxs", "atx", "cpg", SHP_XML_EXTENSION);  

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions