Skip to content

Instantly share code, notes, and snippets.

@theduckylittle
Created November 18, 2013 23:05
Show Gist options
  • Save theduckylittle/7537006 to your computer and use it in GitHub Desktop.
Save theduckylittle/7537006 to your computer and use it in GitHub Desktop.
RFC 44 Proposal

Table of Contents

RFC 44: XML Output for ogrinfo and gdalinfo

Author: Dan "Ducky" LittleBR Contact: danlittle at yahoo dot com BR

Summary

Add XML output to the ogrinfo and gdalinfo utilities.

Background

Implementation

An example implementation can be seen in the fork of gdal

To add the XML output to each utility will require "breaking up" the main loop into contingent chunks. All diagnostic messages will also need to be moved to STDERR to ensure that output on STDOUT is always parseable. The XML representation will be constructed using the MiniXML library built into GDAL.

Impacted drivers

None.

Impacted utilities

gdalinfo

 * Adds a "-xml" output option.

ogrinfo

 * Adds a "-xml" output option.

Backward Compatibility

This change has no impact on backward compatibility at the C API/ABI and C++ API/ABI levels. Default output will remain the same. The new XML output will only effect users who specify "-xml" on the command line.

Testing

The Python autotest suite will be extended to test the new XML output and existing tests will be modified to check STDERR for diagnostic messages.

Ticket

No tickets.

Voting history

Proposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment