Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Converts TourInFrance XML format to GeoJSON

Project description

https://badge.fury.io/py/tif2geojson.png https://travis-ci.org/makinacorpus/tif2geojson.png?branch=master https://pypip.in/d/tif2geojson/badge.png

Install

pip install tif2geojson

Features

  • Read XML TourInFrance V3 and converts to GeoJSON
  • Take profit of title, description, category, pictures, website and phone attributes
  • Select language for title and description
  • Converts from command-line

Usage

from tif2geojson import tif2geojson

geojson = tif2geojson(xmlcontent)

If you have geojsonio-cli installed, you can shoot TourInFrance URLs straight to geojson.io for lightning-fast visualization and editing.

$ curl "http://sit.com/flux.xml" | tif2geojson.py | geojsonio

License

  • Free software BSD - Copyright Makina Corpus

History

0.1.3 (2014-06-19)

  • Add a number of safety checks if TIF malformed

0.1.2 (2014-06-12)

  • Fix error when dc:title tags have no attribute
  • Fix error when image has no copyright
  • Fix error when several adresses for one entry

0.1.1 (2014-04-06)

  • Fix module packaging

0.1.0 (2014-03-28)

  • Initial working version

Project details


Release history Release notifications

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
tif2geojson-0.1.3.zip (8.7 kB) Copy SHA256 hash SHA256 Source None Jun 19, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page