You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (JIRA)" <ji...@apache.org> on 2017/12/15 01:07:01 UTC

[jira] [Reopened] (SIS-188) Hide FieldDescriptor (a DBase3 internal format structure)

     [ https://issues.apache.org/jira/browse/SIS-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux reopened SIS-188:
-------------------------------------

{{DBase3FieldDescriptor}} and {{ShapefileDescriptor}} moved to internal package but are still exposed as public API in {{ShapeFile}}. They should be replaced by supported API based on OGC/ISO standards.

> Hide FieldDescriptor (a DBase3 internal format structure)
> ---------------------------------------------------------
>
>                 Key: SIS-188
>                 URL: https://issues.apache.org/jira/browse/SIS-188
>             Project: Spatial Information Systems
>          Issue Type: Sub-task
>          Components: Shapefile
>            Reporter: Martin Desruisseaux
>            Assignee: M. Le Bihan
>              Labels: JDBC, Shapefile
>             Fix For: 0.7
>
>
> The {{org.apache.sis.storage.shapefile}} package contains a {{FieldDescriptor}} public class, which contain information that look likes very specific to the internal of DBase format. For example:
> * Field name as an array of bytes (this is not what user would usually handle, which are rather {{String}} objects)
> * Field address in memory (maybe an heritage from C/C++ ?)
> * DBase+ Lan Reserved 2 (not sure what it is, documentation only said "reserved 2")
> Those internal details should not be visible to the users. I suggest to either declare the class package-privated, or move it to an internal package.
> The {{FieldDescriptors}} class, which is a list of {{FieldDescriptor}}, should also move in the same way.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)