Python markup and tag-based parsers

Tag-based data, particularly different XML dialects, have become a very popular way to distribute geospatial data. Formats which are both machine and human readable are generally easy to work with though they sacrifice storage efficiency for usability. These formats can become unmanageable for very large data sets but work very well in most cases.

While most formats are some form of XML (such as KML or GML), there is a notable exception. The Well-Known Text (WKT) format is fairly common but uses external markers and square brackets ("[]") to surround data instead of tags in angled brackets around data like XML does.

Python has standard library support for XML as well as some excellent third-party libraries available. ...

Get Learning Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.