Skip to content

Command line interface #4

@timwis

Description

@timwis

Just brainstorming on what a CLI could look like.

Usage:
  datum import ( <file> | - ) --table=<table> [--geom=<geom>...] [--to-srid=<to_srid>]
  datum export <table> [--output=FILE]

Options:
  --table    The name of the database table, including the schema
  --geom     Comma-separated list of fields that should be converted from Well-Known Text to ST Geometry
  --to-srid  Numeric spatial reference to convert the geometry fields to
  --output   Output file path. If omitted, outputs to stdout.

Could wire this up pretty easily with docopt but click or something else may be better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions