Skip to main content

ISOXML library for python

a python library that handles import and export of ISOXML TaskData files as specified in ISO11783 part 10. inspired by isoxml-js and powered by xsdata XML bindings.

The main features:

  • supports v3 and v4
  • read/write directly from zip, TASKDATA-dir or any string
  • conversion between shapely and isoxml geometries
  • conversion of numpy array to grid data binary files
  • generate code from existing TASKDATA.XML (via xsdata)

Installation

pip install isoxml

Usage Examples

import

from isoxml.util.isoxml_io import isoxml_from_zip

task_data, bin_data = isoxml_from_zip('/path/to/TASKDATA.zip')

export

import isoxml.models.base.v4 as iso
from isoxml.util.isoxml_io import isoxml_to_text

customer = iso.Customer(
    id="CTR0001",
    last_name="demo_customer"
)
farm = iso.Farm(
    id="FRM0001",
    designator="demo farm",
    customer_id_ref=customer.id
)
task_data = iso.Iso11783TaskData(
    management_software_manufacturer="josephinum research",
    management_software_version="0.0.0",
    data_transfer_origin=iso.Iso11783TaskDataDataTransferOrigin.FMIS,
    customers=[customer],
    farms=[farm]
)

xml_content = isoxml_to_text(task_data)

print(xml_content)
<ISO11783_TaskData VersionMajor="4" VersionMinor="3" ManagementSoftwareManufacturer="josephinum research" ManagementSoftwareVersion="0.0.0" DataTransferOrigin="1">
    <CTR A="CTR0001" B="demo_customer"/>
    <FRM A="FRM0001" B="demo farm" I="CTR0001"/>
</ISO11783_TaskData>

more

see examples

Dependencies

  • xsdata - Naive XML Bindings for python.
  • shapely - a widely used library for editing and analyzing geometric objects.
  • numpy - you know it, you love it

Metadata

Release files for isoxml-py 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isoxml-py 0.0.4
File Size Uploaded
isoxml_py-0.0.4.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for isoxml-py 0.0.4
File Interpreter ABI Platform
isoxml_py-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / isoxml_py-0.0.4.tar.gz

Download URL isoxml_py-0.0.4.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1f35e11f38c6bda09e4dc1289f3aedf66ec6e31c7d5924be367a84fdfaf7bb62
BLAKE2b-256 checksum
How to use checksums
a8aa4bd759604a1b36822737e9c596254989ce896596c02bf362e357385f8684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release files / isoxml_py-0.0.4-py3-none-any.whl

Download URL isoxml_py-0.0.4-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e82f5d7a35554304016bb6986fafd2f9e59e9304b297e9356f10efeaf27abc92
BLAKE2b-256 checksum
How to use checksums
701726fff63439bdf3db93f17aaf3c70346077b16422e12ccc344a3598f610cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page