Skip to content

Write glue code to connect product-metadata to fgdb metadata utils #2303

@jackrosacker

Description

@jackrosacker

todos

  • Amend existing dcpy/lifecycle/package/shapefiles.py::write_shapefile_xml_metadata function to handle shapefile and file geodatabase metadata
  • Restructure module: move from shapefiles.py to package.py or similar
  • Update lifecycle code to handle product-metadata, including file_id arg (related to prev. item)
  • Confirm CLI works
  • Full test coverage

optional

  • Add lifecycle-level bindings for other functionality of utils (read_md, md_exists, etc.)
  • Clean up pre-existing code in shapefiles.py, if not used anywhere

examples

Calling lifecycle fn could go from this:

write_shapefile_xml_metadata(
    product_name="lion",
    dataset_name="pseudo-lots",
    path="path/to/shp/or/zip",
    shp_name="pseudo_lots.shp",
    zip_subdir=None,
    org_md=None,
)

to something like this:

Metadata

Metadata

Assignees

Labels

GISRelated to the GIS team

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions