Skip to main content

A utility library for data-preserving conversion between AGS 3.1 and AGS 4.x schemas

Project description

AGS324 - A utility library for upgrading AGS 3.1 data to AGS 4 (and back).

This package provides tools for:

  • Upgrading AGS 3.1 files to AGS 4 format, with minimally required data for usage of Autodesk Civil 3D(R) Geotechnical Modeler(R).
  • Upgrading AGS 3.1 files to a specific AGS 4 version (4.0.3, 4.0.4, 4.1, 4.1.1, 4.2).
  • Downgrading AGS 4 files back to AGS 3.1, preserving optional group prefixes.

Note: Autodesk Civil 3D(R), Geotechnical Modeler(R) are trademarks of Autodesk, Inc. This package is not affiliated with or endorsed by Autodesk.

Basic usage

Import

from AGS324 import ags4_c3dgm, upgrade, downgrade

All three conversion functions accept an optional output path as their second argument. When omitted, the output file is written next to the input with a default suffix appended (_AGS4.ags for upgrades, _AGS3.ags for downgrades).

Upgrade an AGS 3.1 file for Civil 3D Geotechnical Modeler

ags4_c3dgm("input.ags")                        # writes input_AGS4.ags
ags4_c3dgm("input.ags", "custom_output.ags")   # writes custom_output.ags

Upgrade an AGS 3.1 file to a specific AGS 4 version

upgrade("input.ags", version="4.1.1")                        # writes input_AGS4.ags
upgrade("input.ags", "custom_output.ags", version="4.1.1")   # writes custom_output.ags

If version is omitted, upgrade() targets the latest bundled AGS 4 version (4.2). Supported versions: 4.0.3, 4.0.4, 4.1, 4.1.1, 4.2.

Downgrade an AGS 4 file to AGS 3.1

downgrade("input.ags")                        # writes input_AGS3.ags
downgrade("input.ags", "custom_output.ags")   # writes custom_output.ags
downgrade("input.ags", version="4.1.1")       # force a specific source-version crosswalk

If version is omitted, downgrade() auto-detects the source AGS 4 version from the file's TRAN_AGS field, falling back to the latest bundled version (4.2) if the field is missing or unrecognized.

Acknowledgements

The bundled ags4*_standard_dictionary.ags files are sourced from the AGS Data Format Working Group's ags-python-library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ags324-0.3.0.tar.gz (336.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ags324-0.3.0-py3-none-any.whl (365.5 kB view details)

Uploaded Python 3

File details

Details for the file ags324-0.3.0.tar.gz.

File metadata

  • Download URL: ags324-0.3.0.tar.gz
  • Upload date:
  • Size: 336.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ags324-0.3.0.tar.gz
Algorithm Hash digest
SHA256 331eb61b576a6cf1de6b8a54df725d625f2ea3ce096b9016bd68747d1d1ad875
MD5 9c32e339d500e967f133c597b4893322
BLAKE2b-256 fae8daea0e4d232a145c4d5aaddf803df6c11f4fd83a18b0313577e273950128

See more details on using hashes here.

Provenance

The following attestation bundles were made for ags324-0.3.0.tar.gz:

Publisher: workflow.yml on yixuanzhong/AGS324

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ags324-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ags324-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 365.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ags324-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5964c3cfdc295209277d77d44fea4ff2c0dde9c606a96366e3cbaf1c74d4a72e
MD5 0ee80aab5191b031b52cebf03a8795c0
BLAKE2b-256 b58b6f7242778ef7172e8f2de4538d05287e73fe5bc6d826c9cf2157ce814e91

See more details on using hashes here.

Provenance

The following attestation bundles were made for ags324-0.3.0-py3-none-any.whl:

Publisher: workflow.yml on yixuanzhong/AGS324

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page