Skip to content

bc2pg - improve type mapping #204

@smnorris

Description

@smnorris

As per #178, bc2pg creates numeric postgres columns for BCDC NUMBER columns.

Should bcdata :

  • automatically inspect the data to determine if it is integer and adjust the type accordingly?
  • accept an optional field map argument for overriding the BCDC types, maybe something like {"field_name1": "numeric", "field_name2": "integer"}?
  • parse the data_precision part of the schema?

As data are read by geopandas when writing to postgres:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions