[imposm-parser] 03/29: Imported Upstream version 1.0.2

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Mar 13 19:11:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository imposm-parser.

commit 6edefa739c080704255fad7318cd4eeb5b95c72c
Author: David Paleino <dapal at debian.org>
Date:   Sun Apr 24 20:37:23 2011 +0200

    Imported Upstream version 1.0.2
---
 .hg/00changelog.i                                  | Bin 57 -> 0 bytes
 .hg/branch                                         |   1 -
 .hg/cache/branchheads                              |   2 -
 .hg/cache/tags                                     |   4 -
 .hg/dirstate                                       | Bin 1264 -> 0 bytes
 .hg/hgrc                                           |   2 -
 .hg/requires                                       |   4 -
 .hg/store/00changelog.i                            | Bin 7310 -> 0 bytes
 .hg/store/00manifest.i                             | Bin 7953 -> 0 bytes
 .hg/store/data/_c_h_a_n_g_e_s.i                    | Bin 327 -> 0 bytes
 .hg/store/data/_l_i_c_e_n_s_e.i                    | Bin 4019 -> 0 bytes
 .hg/store/data/_m_a_n_i_f_e_s_t.in.i               | Bin 682 -> 0 bytes
 .hg/store/data/_r_e_a_d_m_e.i                      | Bin 1435 -> 0 bytes
 .hg/store/data/doc/_makefile.i                     | Bin 1405 -> 0 bytes
 .hg/store/data/doc/make.bat.i                      | Bin 1226 -> 0 bytes
 .hg/store/data/doc/source/concepts.rst.i           | Bin 1280 -> 0 bytes
 .hg/store/data/doc/source/conf.py.i                | Bin 2800 -> 0 bytes
 .hg/store/data/doc/source/index.rst.i              | Bin 337 -> 0 bytes
 .hg/store/data/doc/source/install.rst.i            | Bin 711 -> 0 bytes
 .hg/store/data/doc/source/parsing.rst.i            | Bin 593 -> 0 bytes
 .hg/store/data/imposm/____init____.py.i            | Bin 120 -> 0 bytes
 .hg/store/data/imposm/parser/____init____.py.i     | Bin 193 -> 0 bytes
 .hg/store/data/imposm/parser/pbf/____init____.py.i | Bin 64 -> 0 bytes
 .hg/store/data/imposm/parser/pbf/multiproc.py.i    | Bin 2014 -> 0 bytes
 .hg/store/data/imposm/parser/pbf/osm.cc.i          | Bin 11936 -> 0 bytes
 .hg/store/data/imposm/parser/pbf/parser.py.i       | Bin 4346 -> 0 bytes
 .hg/store/data/imposm/parser/simple.py.i           | Bin 2458 -> 0 bytes
 .../data/imposm/parser/test/____init____.py.i      | Bin 64 -> 0 bytes
 .hg/store/data/imposm/parser/test/test.osm.bz2.i   | Bin 494 -> 0 bytes
 .hg/store/data/imposm/parser/test/test.osm.i       | Bin 439 -> 0 bytes
 .hg/store/data/imposm/parser/test/test.pbf.i       | Bin 394 -> 0 bytes
 .../imposm/parser/test/test__simple__parser.py.i   | Bin 1262 -> 0 bytes
 .hg/store/data/imposm/parser/util.py.i             | Bin 1181 -> 0 bytes
 .hg/store/data/imposm/parser/xml/____init____.py.i | Bin 64 -> 0 bytes
 .hg/store/data/imposm/parser/xml/multiproc.py.i    | Bin 3782 -> 0 bytes
 .hg/store/data/imposm/parser/xml/parser.py.i       | Bin 2010 -> 0 bytes
 .hg/store/data/imposm/parser/xml/util.py.i         | Bin 975 -> 0 bytes
 .hg/store/data/osm.proto.i                         | Bin 3001 -> 0 bytes
 .hg/store/data/setup.py.i                          | Bin 2429 -> 0 bytes
 .hg/store/data/tox.ini.i                           | Bin 588 -> 0 bytes
 .hg/store/data/~2ehgignore.i                       | Bin 177 -> 0 bytes
 .hg/store/data/~2ehgtags.i                         | Bin 237 -> 0 bytes
 .hg/store/fncache                                  |  33 ----
 .hg/store/undo                                     | Bin 1024 -> 0 bytes
 .hg/undo.branch                                    |   1 -
 .hg/undo.desc                                      |   3 -
 .hg/undo.dirstate                                  |   0
 .hgignore                                          |   5 -
 .hgtags                                            |   2 -
 PKG-INFO                                           |  76 ++++++++
 doc/Makefile                                       | 130 -------------
 doc/make.bat                                       | 170 ----------------
 doc/source/concepts.rst                            |  97 ---------
 doc/source/conf.py                                 | 216 ---------------------
 doc/source/index.rst                               |  19 --
 doc/source/install.rst                             |  30 ---
 doc/source/parsing.rst                             |  24 ---
 imposm.parser.egg-info/PKG-INFO                    |  76 ++++++++
 imposm.parser.egg-info/SOURCES.txt                 |  29 +++
 imposm.parser.egg-info/dependency_links.txt        |   1 +
 imposm.parser.egg-info/namespace_packages.txt      |   1 +
 imposm.parser.egg-info/top_level.txt               |   1 +
 imposm/parser/example.py                           |  40 ++++
 setup.cfg                                          |   5 +
 tox.ini                                            |   7 -
 65 files changed, 229 insertions(+), 750 deletions(-)

diff --git a/.hg/00changelog.i b/.hg/00changelog.i
deleted file mode 100644
index d3a8311..0000000
Binary files a/.hg/00changelog.i and /dev/null differ
diff --git a/.hg/branch b/.hg/branch
deleted file mode 100644
index 4ad96d5..0000000
--- a/.hg/branch
+++ /dev/null
@@ -1 +0,0 @@
-default
diff --git a/.hg/cache/branchheads b/.hg/cache/branchheads
deleted file mode 100644
index 5b5afe8..0000000
--- a/.hg/cache/branchheads
+++ /dev/null
@@ -1,2 +0,0 @@
-5307e5693e0c0869b934c418e9c98a9280bfa99f 35
-5307e5693e0c0869b934c418e9c98a9280bfa99f default
diff --git a/.hg/cache/tags b/.hg/cache/tags
deleted file mode 100644
index bca99cd..0000000
--- a/.hg/cache/tags
+++ /dev/null
@@ -1,4 +0,0 @@
-35 5307e5693e0c0869b934c418e9c98a9280bfa99f 32002b4b486ab87b496940113a178a79cb3cbfbb
-
-a8a6bd0d5234c805f7e979939a2b0a5f9372ea2b v1.0.1
-c7e1cd122f00f1aeddfaf4c213ce85ec70fd42f4 v1.0.0
diff --git a/.hg/dirstate b/.hg/dirstate
deleted file mode 100644
index 44c370f..0000000
Binary files a/.hg/dirstate and /dev/null differ
diff --git a/.hg/hgrc b/.hg/hgrc
deleted file mode 100644
index 797731f..0000000
--- a/.hg/hgrc
+++ /dev/null
@@ -1,2 +0,0 @@
-[paths]
-default = https://bitbucket.org/olt/imposm.parser
diff --git a/.hg/requires b/.hg/requires
deleted file mode 100644
index ca69271..0000000
--- a/.hg/requires
+++ /dev/null
@@ -1,4 +0,0 @@
-revlogv1
-store
-fncache
-dotencode
diff --git a/.hg/store/00changelog.i b/.hg/store/00changelog.i
deleted file mode 100644
index a373cc0..0000000
Binary files a/.hg/store/00changelog.i and /dev/null differ
diff --git a/.hg/store/00manifest.i b/.hg/store/00manifest.i
deleted file mode 100644
index b0ba785..0000000
Binary files a/.hg/store/00manifest.i and /dev/null differ
diff --git a/.hg/store/data/_c_h_a_n_g_e_s.i b/.hg/store/data/_c_h_a_n_g_e_s.i
deleted file mode 100644
index c294c51..0000000
Binary files a/.hg/store/data/_c_h_a_n_g_e_s.i and /dev/null differ
diff --git a/.hg/store/data/_l_i_c_e_n_s_e.i b/.hg/store/data/_l_i_c_e_n_s_e.i
deleted file mode 100644
index 9e47690..0000000
Binary files a/.hg/store/data/_l_i_c_e_n_s_e.i and /dev/null differ
diff --git a/.hg/store/data/_m_a_n_i_f_e_s_t.in.i b/.hg/store/data/_m_a_n_i_f_e_s_t.in.i
deleted file mode 100644
index 94885d3..0000000
Binary files a/.hg/store/data/_m_a_n_i_f_e_s_t.in.i and /dev/null differ
diff --git a/.hg/store/data/_r_e_a_d_m_e.i b/.hg/store/data/_r_e_a_d_m_e.i
deleted file mode 100644
index 73a37ea..0000000
Binary files a/.hg/store/data/_r_e_a_d_m_e.i and /dev/null differ
diff --git a/.hg/store/data/doc/_makefile.i b/.hg/store/data/doc/_makefile.i
deleted file mode 100644
index 2659319..0000000
Binary files a/.hg/store/data/doc/_makefile.i and /dev/null differ
diff --git a/.hg/store/data/doc/make.bat.i b/.hg/store/data/doc/make.bat.i
deleted file mode 100644
index e7a3433..0000000
Binary files a/.hg/store/data/doc/make.bat.i and /dev/null differ
diff --git a/.hg/store/data/doc/source/concepts.rst.i b/.hg/store/data/doc/source/concepts.rst.i
deleted file mode 100644
index b208e37..0000000
Binary files a/.hg/store/data/doc/source/concepts.rst.i and /dev/null differ
diff --git a/.hg/store/data/doc/source/conf.py.i b/.hg/store/data/doc/source/conf.py.i
deleted file mode 100644
index 08bcac1..0000000
Binary files a/.hg/store/data/doc/source/conf.py.i and /dev/null differ
diff --git a/.hg/store/data/doc/source/index.rst.i b/.hg/store/data/doc/source/index.rst.i
deleted file mode 100644
index 57e9f7f..0000000
Binary files a/.hg/store/data/doc/source/index.rst.i and /dev/null differ
diff --git a/.hg/store/data/doc/source/install.rst.i b/.hg/store/data/doc/source/install.rst.i
deleted file mode 100644
index d9165b2..0000000
Binary files a/.hg/store/data/doc/source/install.rst.i and /dev/null differ
diff --git a/.hg/store/data/doc/source/parsing.rst.i b/.hg/store/data/doc/source/parsing.rst.i
deleted file mode 100644
index a76f0d7..0000000
Binary files a/.hg/store/data/doc/source/parsing.rst.i and /dev/null differ
diff --git a/.hg/store/data/imposm/____init____.py.i b/.hg/store/data/imposm/____init____.py.i
deleted file mode 100644
index 1d354b2..0000000
Binary files a/.hg/store/data/imposm/____init____.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/____init____.py.i b/.hg/store/data/imposm/parser/____init____.py.i
deleted file mode 100644
index 6e8fcbc..0000000
Binary files a/.hg/store/data/imposm/parser/____init____.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/pbf/____init____.py.i b/.hg/store/data/imposm/parser/pbf/____init____.py.i
deleted file mode 100644
index 2431023..0000000
Binary files a/.hg/store/data/imposm/parser/pbf/____init____.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/pbf/multiproc.py.i b/.hg/store/data/imposm/parser/pbf/multiproc.py.i
deleted file mode 100644
index ee3bb8d..0000000
Binary files a/.hg/store/data/imposm/parser/pbf/multiproc.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/pbf/osm.cc.i b/.hg/store/data/imposm/parser/pbf/osm.cc.i
deleted file mode 100644
index 2a2cc19..0000000
Binary files a/.hg/store/data/imposm/parser/pbf/osm.cc.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/pbf/parser.py.i b/.hg/store/data/imposm/parser/pbf/parser.py.i
deleted file mode 100644
index 943b03b..0000000
Binary files a/.hg/store/data/imposm/parser/pbf/parser.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/simple.py.i b/.hg/store/data/imposm/parser/simple.py.i
deleted file mode 100644
index 1dcfcda..0000000
Binary files a/.hg/store/data/imposm/parser/simple.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/test/____init____.py.i b/.hg/store/data/imposm/parser/test/____init____.py.i
deleted file mode 100644
index 21fa378..0000000
Binary files a/.hg/store/data/imposm/parser/test/____init____.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/test/test.osm.bz2.i b/.hg/store/data/imposm/parser/test/test.osm.bz2.i
deleted file mode 100644
index e568412..0000000
Binary files a/.hg/store/data/imposm/parser/test/test.osm.bz2.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/test/test.osm.i b/.hg/store/data/imposm/parser/test/test.osm.i
deleted file mode 100644
index 0a554f6..0000000
Binary files a/.hg/store/data/imposm/parser/test/test.osm.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/test/test.pbf.i b/.hg/store/data/imposm/parser/test/test.pbf.i
deleted file mode 100644
index f1edb2c..0000000
Binary files a/.hg/store/data/imposm/parser/test/test.pbf.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/test/test__simple__parser.py.i b/.hg/store/data/imposm/parser/test/test__simple__parser.py.i
deleted file mode 100644
index 9432693..0000000
Binary files a/.hg/store/data/imposm/parser/test/test__simple__parser.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/util.py.i b/.hg/store/data/imposm/parser/util.py.i
deleted file mode 100644
index 98d4255..0000000
Binary files a/.hg/store/data/imposm/parser/util.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/xml/____init____.py.i b/.hg/store/data/imposm/parser/xml/____init____.py.i
deleted file mode 100644
index 2431023..0000000
Binary files a/.hg/store/data/imposm/parser/xml/____init____.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/xml/multiproc.py.i b/.hg/store/data/imposm/parser/xml/multiproc.py.i
deleted file mode 100644
index 54ca449..0000000
Binary files a/.hg/store/data/imposm/parser/xml/multiproc.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/xml/parser.py.i b/.hg/store/data/imposm/parser/xml/parser.py.i
deleted file mode 100644
index b936044..0000000
Binary files a/.hg/store/data/imposm/parser/xml/parser.py.i and /dev/null differ
diff --git a/.hg/store/data/imposm/parser/xml/util.py.i b/.hg/store/data/imposm/parser/xml/util.py.i
deleted file mode 100644
index 9073b22..0000000
Binary files a/.hg/store/data/imposm/parser/xml/util.py.i and /dev/null differ
diff --git a/.hg/store/data/osm.proto.i b/.hg/store/data/osm.proto.i
deleted file mode 100644
index eebe808..0000000
Binary files a/.hg/store/data/osm.proto.i and /dev/null differ
diff --git a/.hg/store/data/setup.py.i b/.hg/store/data/setup.py.i
deleted file mode 100644
index 7b51668..0000000
Binary files a/.hg/store/data/setup.py.i and /dev/null differ
diff --git a/.hg/store/data/tox.ini.i b/.hg/store/data/tox.ini.i
deleted file mode 100644
index 0f95759..0000000
Binary files a/.hg/store/data/tox.ini.i and /dev/null differ
diff --git a/.hg/store/data/~2ehgignore.i b/.hg/store/data/~2ehgignore.i
deleted file mode 100644
index 844ea82..0000000
Binary files a/.hg/store/data/~2ehgignore.i and /dev/null differ
diff --git a/.hg/store/data/~2ehgtags.i b/.hg/store/data/~2ehgtags.i
deleted file mode 100644
index 59ab817..0000000
Binary files a/.hg/store/data/~2ehgtags.i and /dev/null differ
diff --git a/.hg/store/fncache b/.hg/store/fncache
deleted file mode 100644
index 120ff1c..0000000
--- a/.hg/store/fncache
+++ /dev/null
@@ -1,33 +0,0 @@
-data/osm.proto.i
-data/imposm/parser/test/test.pbf.i
-data/doc/Makefile.i
-data/doc/source/parsing.rst.i
-data/imposm/parser/test/__init__.py.i
-data/CHANGES.i
-data/imposm/parser/xml/parser.py.i
-data/doc/source/conf.py.i
-data/imposm/parser/pbf/parser.py.i
-data/LICENSE.i
-data/imposm/parser/pbf/__init__.py.i
-data/imposm/parser/xml/__init__.py.i
-data/imposm/parser/xml/multiproc.py.i
-data/setup.py.i
-data/imposm/parser/pbf/osm.cc.i
-data/imposm/parser/pbf/multiproc.py.i
-data/imposm/parser/simple.py.i
-data/doc/source/index.rst.i
-data/MANIFEST.in.i
-data/imposm/parser/test/test.osm.bz2.i
-data/imposm/parser/test/test.osm.i
-data/imposm/parser/xml/util.py.i
-data/imposm/parser/test/test_simple_parser.py.i
-data/.hgignore.i
-data/imposm/__init__.py.i
-data/.hgtags.i
-data/README.i
-data/imposm/parser/util.py.i
-data/doc/source/install.rst.i
-data/tox.ini.i
-data/doc/make.bat.i
-data/doc/source/concepts.rst.i
-data/imposm/parser/__init__.py.i
diff --git a/.hg/store/undo b/.hg/store/undo
deleted file mode 100644
index 5c22141..0000000
Binary files a/.hg/store/undo and /dev/null differ
diff --git a/.hg/undo.branch b/.hg/undo.branch
deleted file mode 100644
index 331d858..0000000
--- a/.hg/undo.branch
+++ /dev/null
@@ -1 +0,0 @@
-default
\ No newline at end of file
diff --git a/.hg/undo.desc b/.hg/undo.desc
deleted file mode 100644
index 8fe8b44..0000000
--- a/.hg/undo.desc
+++ /dev/null
@@ -1,3 +0,0 @@
-0
-pull
-https://bitbucket.org/olt/imposm.parser
diff --git a/.hg/undo.dirstate b/.hg/undo.dirstate
deleted file mode 100644
index e69de29..0000000
diff --git a/.hgignore b/.hgignore
deleted file mode 100644
index e6a510e..0000000
--- a/.hgignore
+++ /dev/null
@@ -1,5 +0,0 @@
-.pyc
-.egg-info
-doc/build
-dist/
-.tox
diff --git a/.hgtags b/.hgtags
deleted file mode 100644
index 24a4b6a..0000000
--- a/.hgtags
+++ /dev/null
@@ -1,2 +0,0 @@
-a8a6bd0d5234c805f7e979939a2b0a5f9372ea2b v1.0.1
-c7e1cd122f00f1aeddfaf4c213ce85ec70fd42f4 v1.0.0
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..cf13c99
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,76 @@
+Metadata-Version: 1.0
+Name: imposm.parser
+Version: 1.0.2
+Summary: Fast and easy OpenStreetMap XML/PBF parser.
+Home-page: http://dev.omniscale.net/imposm.parser/
+Author: Oliver Tonnhofer
+Author-email: olt at omniscale.de
+License: Apache Software License 2.0
+Description: .. # -*- restructuredtext -*-
+        
+        imposm.parser - OpenStreetMap XML/PBF parser for Python
+        =======================================================
+        
+        ``imposm.parser`` is a Python library that parses OpenStreetMap data in `XML <http://wiki.openstreetmap.org/wiki/.osm>`_ and `PBF <http://wiki.openstreetmap.org/wiki/PBF_Format>`_ format.
+        
+        It has a simple API and it is fast and easy to use. It also works across multiple CPU/cores for extra speed.
+        
+        It is developed and supported by `Omniscale <http://omniscale.com>`_ and released under the `Apache Software License 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`_.
+        
+        Example
+        -------
+        
+        Here is an example that parses an OSM file and counts all ways that are tagged as a highway.
+        ::
+        
+          from imposm.parser import OSMParser
+        
+          # simple class that handles the parsed OSM data.
+          class HighwayCounter(object):
+              highways = 0
+            
+              def ways(self, ways):
+                  # callback method for ways
+                  for osmid, tags, refs in ways:
+                      if 'highway' in tags:
+                        self.highways += 1
+        
+          # instantiate counter and parser and start parsing
+          counter = HighwayCounter()
+          p = OSMParser(concurrency=4, ways_callback=counter.ways)
+          p.parse('germany.osm.pbf')
+          
+          # done
+          print counter.highways
+        
+        
+        Source and issue tracker
+        ------------------------
+        
+        Source code and issue tracker are available at `<https://bitbucket.org/olt/imposm.parser/src>`_.
+        
+        Changelog
+        ---------
+        
+        1.0.2 2011-03-10
+        ~~~~~~~~~~~~~~~~
+        
+        - improved regexp based XML coord parser
+        - prevent mmap overflow in XMLChunker without coord_callback
+        - successfully parsed whole planet.osm
+        
+        1.0.0 2011-02-22
+        ~~~~~~~~~~~~~~~~
+        
+        - first release
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: C
+Classifier: Programming Language :: C++
+Classifier: Programming Language :: Python :: 2.5
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Topic :: Software Development :: Libraries
+Classifier: Topic :: Scientific/Engineering :: GIS
diff --git a/doc/Makefile b/doc/Makefile
deleted file mode 100644
index 0d7ec48..0000000
--- a/doc/Makefile
+++ /dev/null
@@ -1,130 +0,0 @@
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS    =
-SPHINXBUILD   = sphinx-build
-PAPER         =
-BUILDDIR      = build
-
-# Internal variables.
-PAPEROPT_a4     = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
-
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
-
-help:
-	@echo "Please use \`make <target>' where <target> is one of"
-	@echo "  html       to make standalone HTML files"
-	@echo "  dirhtml    to make HTML files named index.html in directories"
-	@echo "  singlehtml to make a single large HTML file"
-	@echo "  pickle     to make pickle files"
-	@echo "  json       to make JSON files"
-	@echo "  htmlhelp   to make HTML files and a HTML help project"
-	@echo "  qthelp     to make HTML files and a qthelp project"
-	@echo "  devhelp    to make HTML files and a Devhelp project"
-	@echo "  epub       to make an epub"
-	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
-	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
-	@echo "  text       to make text files"
-	@echo "  man        to make manual pages"
-	@echo "  changes    to make an overview of all changed/added/deprecated items"
-	@echo "  linkcheck  to check all external links for integrity"
-	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
-
-clean:
-	-rm -rf $(BUILDDIR)/*
-
-html:
-	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
-	@echo
-	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-dirhtml:
-	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
-	@echo
-	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-singlehtml:
-	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
-	@echo
-	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
-
-pickle:
-	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
-	@echo
-	@echo "Build finished; now you can process the pickle files."
-
-json:
-	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
-	@echo
-	@echo "Build finished; now you can process the JSON files."
-
-htmlhelp:
-	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
-	@echo
-	@echo "Build finished; now you can run HTML Help Workshop with the" \
-	      ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-qthelp:
-	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
-	@echo
-	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
-	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
-	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/imposmparser.qhcp"
-	@echo "To view the help file:"
-	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/imposmparser.qhc"
-
-devhelp:
-	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
-	@echo
-	@echo "Build finished."
-	@echo "To view the help file:"
-	@echo "# mkdir -p $$HOME/.local/share/devhelp/imposmparser"
-	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/imposmparser"
-	@echo "# devhelp"
-
-epub:
-	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
-	@echo
-	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
-
-latex:
-	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
-	@echo
-	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
-	@echo "Run \`make' in that directory to run these through (pdf)latex" \
-	      "(use \`make latexpdf' here to do that automatically)."
-
-latexpdf:
-	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
-	@echo "Running LaTeX files through pdflatex..."
-	make -C $(BUILDDIR)/latex all-pdf
-	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-text:
-	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
-	@echo
-	@echo "Build finished. The text files are in $(BUILDDIR)/text."
-
-man:
-	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
-	@echo
-	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
-
-changes:
-	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
-	@echo
-	@echo "The overview file is in $(BUILDDIR)/changes."
-
-linkcheck:
-	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
-	@echo
-	@echo "Link check complete; look for any errors in the above output " \
-	      "or in $(BUILDDIR)/linkcheck/output.txt."
-
-doctest:
-	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
-	@echo "Testing of doctests in the sources finished, look at the " \
-	      "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/doc/make.bat b/doc/make.bat
deleted file mode 100644
index fd5bbd8..0000000
--- a/doc/make.bat
+++ /dev/null
@@ -1,170 +0,0 @@
- at ECHO OFF
-
-REM Command file for Sphinx documentation
-
-if "%SPHINXBUILD%" == "" (
-	set SPHINXBUILD=sphinx-build
-)
-set BUILDDIR=build
-set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
-if NOT "%PAPER%" == "" (
-	set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
-)
-
-if "%1" == "" goto help
-
-if "%1" == "help" (
-	:help
-	echo.Please use `make ^<target^>` where ^<target^> is one of
-	echo.  html       to make standalone HTML files
-	echo.  dirhtml    to make HTML files named index.html in directories
-	echo.  singlehtml to make a single large HTML file
-	echo.  pickle     to make pickle files
-	echo.  json       to make JSON files
-	echo.  htmlhelp   to make HTML files and a HTML help project
-	echo.  qthelp     to make HTML files and a qthelp project
-	echo.  devhelp    to make HTML files and a Devhelp project
-	echo.  epub       to make an epub
-	echo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
-	echo.  text       to make text files
-	echo.  man        to make manual pages
-	echo.  changes    to make an overview over all changed/added/deprecated items
-	echo.  linkcheck  to check all external links for integrity
-	echo.  doctest    to run all doctests embedded in the documentation if enabled
-	goto end
-)
-
-if "%1" == "clean" (
-	for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
-	del /q /s %BUILDDIR%\*
-	goto end
-)
-
-if "%1" == "html" (
-	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The HTML pages are in %BUILDDIR%/html.
-	goto end
-)
-
-if "%1" == "dirhtml" (
-	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
-	goto end
-)
-
-if "%1" == "singlehtml" (
-	%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
-	goto end
-)
-
-if "%1" == "pickle" (
-	%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished; now you can process the pickle files.
-	goto end
-)
-
-if "%1" == "json" (
-	%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished; now you can process the JSON files.
-	goto end
-)
-
-if "%1" == "htmlhelp" (
-	%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished; now you can run HTML Help Workshop with the ^
-.hhp project file in %BUILDDIR%/htmlhelp.
-	goto end
-)
-
-if "%1" == "qthelp" (
-	%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished; now you can run "qcollectiongenerator" with the ^
-.qhcp project file in %BUILDDIR%/qthelp, like this:
-	echo.^> qcollectiongenerator %BUILDDIR%\qthelp\imposmparser.qhcp
-	echo.To view the help file:
-	echo.^> assistant -collectionFile %BUILDDIR%\qthelp\imposmparser.ghc
-	goto end
-)
-
-if "%1" == "devhelp" (
-	%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished.
-	goto end
-)
-
-if "%1" == "epub" (
-	%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The epub file is in %BUILDDIR%/epub.
-	goto end
-)
-
-if "%1" == "latex" (
-	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
-	goto end
-)
-
-if "%1" == "text" (
-	%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The text files are in %BUILDDIR%/text.
-	goto end
-)
-
-if "%1" == "man" (
-	%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Build finished. The manual pages are in %BUILDDIR%/man.
-	goto end
-)
-
-if "%1" == "changes" (
-	%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.The overview file is in %BUILDDIR%/changes.
-	goto end
-)
-
-if "%1" == "linkcheck" (
-	%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Link check complete; look for any errors in the above output ^
-or in %BUILDDIR%/linkcheck/output.txt.
-	goto end
-)
-
-if "%1" == "doctest" (
-	%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
-	if errorlevel 1 exit /b 1
-	echo.
-	echo.Testing of doctests in the sources finished, look at the ^
-results in %BUILDDIR%/doctest/output.txt.
-	goto end
-)
-
-:end
diff --git a/doc/source/concepts.rst b/doc/source/concepts.rst
deleted file mode 100644
index 864ad4f..0000000
--- a/doc/source/concepts.rst
+++ /dev/null
@@ -1,97 +0,0 @@
-Concepts
-========
-
-To use ``imposm.parser`` you need to understand three basic concepts: Types, Callbacks and Filter
-
-Types
------
-
-.. note:: In this document Node, Way, Relation with a capital refer to the OSM types and `node`, `way`, `relation` refer to the Imposm types.
-
-OSM has three fundamental element types: Nodes, Ways and Relations. ``imposm.parser`` distinguishes the OSM Nodes between `coords` and `nodes`.
-
-`coords` only store coordinates and there are `coords` for *every* OSM Node. `nodes` also store tags and there are *only* `nodes` for OSM Nodes *with* tags. 
-
-
-coords
-~~~~~~
-
-A tuple with the OSM ID, the longitude and latitude of that node.
-
-::
-  
-  (4234432, 175.2, -32.1)
-
-``imposm.parser`` will return a `coord` for each OSM Node, even if this OSM Node is also a `node` (i.e. it has tags).
-
-nodes
-~~~~~
-
-A tuple with the OSM ID, a tags dictionary and a nested tuple with the longitude and latitude of that node.
-
-::
-
-  (982347, {'name': 'Somewhere', 'place': 'village'}, (-120.2, 23.21))
-
-
-ways
-~~~~
-
-A tuple with the OSM ID, a tags dictionary and a list of references.
-
-::
-
-  (87644, {'name': 'my way', 'highway': 'path'}, [123, 345, 567])
-
-relations
-~~~~~~~~~
-
-A tuple with the OSM ID, a tags dictionary and a list of member tuples.
-Each member tuple contains the reference, the type (one of `'node'`, `'way'`, `'relation'`) and the role.
-
-::
-
-  (87644, {'type': 'multipolygon'}, [(123, 'way', 'outer'), (234, 'way', 'inner')])
-
-.. _concepts_callbacks:
-
-Callbacks
----------
-
-The parser takes four callback functions for each data type (`coords`, `nodes`, `ways` and `relations`). The callbacks are optional, i.e. you don't need to pass a relations callback if you are not interested in relations.
-
-The functions should expect a list with zero or more items of the corresponding type.
-
-Here is an example callback that prints the coordinates of all Nodes.
-
-::
-
-  def coords_callback(coords):
-    for osm_id, lon, lat in coords:
-      print '%s %.4f %.4f' % (osm_id, lon, lat)
-
-
-.. _concepts_tag_filters:
-
-Tag filters
------------
-
-Tag filter are functions that manipulate tag dictionaries. The functions should modify the dictionary in-place, the return value is ignored.
-
-Elements will be handled different, if you remove all tags from the dictionary. `nodes` and `relations` with empty tags will not be returned, but `ways` will be, since they might be needed for building relations.
-
-Here is an example filter that filters the tags with a whitelist.
-::
-
-  whitelist = set(('name', 'place', 'amenity'))
-  
-  def tag_filter(tags):
-    for key in tags.keys():
-      if key not in whitelist:
-        del tags[key]
-    if 'name' in tags and len(tags) == 1:
-      # tags with only a name have no information
-      # how to handle this element
-      del tags['name']
-  
-
diff --git a/doc/source/conf.py b/doc/source/conf.py
deleted file mode 100644
index 12ecb55..0000000
--- a/doc/source/conf.py
+++ /dev/null
@@ -1,216 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# imposm.parser documentation build configuration file, created by
-# sphinx-quickstart on Thu Feb 17 15:23:25 2011.
-#
-# This file is execfile()d with the current directory set to its containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-import sys, os
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
-
-# -- General configuration -----------------------------------------------------
-
-# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
-
-# Add any Sphinx extension module names here, as strings. They can be extensions
-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc']
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
-
-# The suffix of source filenames.
-source_suffix = '.rst'
-
-# The encoding of source files.
-#source_encoding = 'utf-8-sig'
-
-# The master toctree document.
-master_doc = 'index'
-
-# General information about the project.
-project = u'imposm.parser'
-copyright = u'2011, Oliver Tonnhofer'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '1.0'
-# The full version, including alpha/beta/rc tags.
-release = '1.0.0'
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-#language = None
-
-# There are two options for replacing |today|: either, you set today to some
-# non-false value, then it is used:
-#today = ''
-# Else, today_fmt is used as the format for a strftime call.
-#today_fmt = '%B %d, %Y'
-
-# List of patterns, relative to source directory, that match files and
-# directories to ignore when looking for source files.
-exclude_patterns = []
-
-# The reST default role (used for this markup: `text`) to use for all documents.
-#default_role = None
-
-# If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
-
-# If true, the current module name will be prepended to all description
-# unit titles (such as .. function::).
-#add_module_names = True
-
-# If true, sectionauthor and moduleauthor directives will be shown in the
-# output. They are ignored by default.
-#show_authors = False
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# A list of ignored prefixes for module index sorting.
-#modindex_common_prefix = []
-
-
-# -- Options for HTML output ---------------------------------------------------
-
-# The theme to use for HTML and HTML Help pages.  See the documentation for
-# a list of builtin themes.
-html_theme = 'sphinxdoc'
-
-# Theme options are theme-specific and customize the look and feel of a theme
-# further.  For a list of options available for each theme, see the
-# documentation.
-#html_theme_options = {}
-
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
-# The name for this set of Sphinx documents.  If None, it defaults to
-# "<project> v<release> documentation".
-#html_title = None
-
-# A shorter title for the navigation bar.  Default is the same as html_title.
-#html_short_title = None
-
-# The name of an image file (relative to this directory) to place at the top
-# of the sidebar.
-#html_logo = None
-
-# The name of an image file (within the static path) to use as favicon of the
-# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
-# pixels large.
-#html_favicon = None
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
-
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
-
-# If true, SmartyPants will be used to convert quotes and dashes to
-# typographically correct entities.
-#html_use_smartypants = True
-
-# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
-# Additional templates that should be rendered to pages, maps page names to
-# template names.
-#html_additional_pages = {}
-
-# If false, no module index is generated.
-#html_domain_indices = True
-
-# If false, no index is generated.
-#html_use_index = True
-
-# If true, the index is split into individual pages for each letter.
-#html_split_index = False
-
-# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
-
-# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
-
-# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
-#html_show_copyright = True
-
-# If true, an OpenSearch description file will be output, and all pages will
-# contain a <link> tag referring to it.  The value of this option must be the
-# base URL from which the finished HTML is served.
-#html_use_opensearch = ''
-
-# This is the file name suffix for HTML files (e.g. ".xhtml").
-#html_file_suffix = None
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = 'imposmparserdoc'
-
-
-# -- Options for LaTeX output --------------------------------------------------
-
-# The paper size ('letter' or 'a4').
-#latex_paper_size = 'letter'
-
-# The font size ('10pt', '11pt' or '12pt').
-#latex_font_size = '10pt'
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title, author, documentclass [howto/manual]).
-latex_documents = [
-  ('index', 'imposmparser.tex', u'imposm.parser Documentation',
-   u'Oliver Tonnhofer', 'manual'),
-]
-
-# The name of an image file (relative to this directory) to place at the top of
-# the title page.
-#latex_logo = None
-
-# For "manual" documents, if this is true, then toplevel headings are parts,
-# not chapters.
-#latex_use_parts = False
-
-# If true, show page references after internal links.
-#latex_show_pagerefs = False
-
-# If true, show URL addresses after external links.
-#latex_show_urls = False
-
-# Additional stuff for the LaTeX preamble.
-#latex_preamble = ''
-
-# Documents to append as an appendix to all manuals.
-#latex_appendices = []
-
-# If false, no module index is generated.
-#latex_domain_indices = True
-
-
-# -- Options for manual page output --------------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = [
-    ('index', 'imposmparser', u'imposm.parser Documentation',
-     [u'Oliver Tonnhofer'], 1)
-]
diff --git a/doc/source/index.rst b/doc/source/index.rst
deleted file mode 100644
index 64f85d5..0000000
--- a/doc/source/index.rst
+++ /dev/null
@@ -1,19 +0,0 @@
-
-.. include:: ../../README
-
-.. Contents:
-
-.. toctree::
-   :maxdepth: 2
-
-   install
-   concepts
-   parsing
-
-.. Indices and tables
-.. ==================
-.. 
-.. * :ref:`genindex`
-.. * :ref:`modindex`
-.. * :ref:`search`
-
diff --git a/doc/source/install.rst b/doc/source/install.rst
deleted file mode 100644
index f3ea0b9..0000000
--- a/doc/source/install.rst
+++ /dev/null
@@ -1,30 +0,0 @@
-.. Installation
-.. ============
-
-Requirements
-------------
-
-``imposm.parser`` runs with Python 2.5, 2.6 and 2.7 and is tested on Linux and Mac OS X.
-
-The PBF parser is written as a C extension and you need to have a C/C++ compiler, the Python libraries and Google Protobuf.
-
-On Ubuntu::
-
-  sudo aptitude install build-essential python-devel protobuf-compiler libprotobuf-dev
-
-Installation
-------------
-
-You can install ``imposm.parser`` with ``pip`` or ``easy_install``.
-
-::
-
-  pip install imposm.parser
-  
-::
-
-  easy_install imposm.parser
-
-
-
-
diff --git a/doc/source/parsing.rst b/doc/source/parsing.rst
deleted file mode 100644
index ce7852a..0000000
--- a/doc/source/parsing.rst
+++ /dev/null
@@ -1,24 +0,0 @@
-Parsing API
-===========
-
-Imposm comes with a single ``OSMParser`` class that implements a simple to use, callback-based parser for OSM files.
-
-It supports `XML <http://wiki.openstreetmap.org/wiki/.osm>`_ and `PBF <http://wiki.openstreetmap.org/wiki/PBF_Format>`_ files. It also supports BZip2 compressed XML files.
-
-Concurrency
-~~~~~~~~~~~
-
-The parser uses multiprocessing to distribute the parsing across multiple CPUs. This does work with PBF as well as XML files.
-
-You can pass the ``concurrency`` as an argument to ``OSMParser`` and it defaults to the number of CPU and cores of the host system. ``concurrency`` defines the number of parser processes. The main process where the callbacks are handled and the decompression (if you have a .bzip2 file) are handled in additional processes. So you might get better results if you reduce this number on systems with more than two cores.
-
-You can double the number on systems with hyper threading CPUs.
-
-
-API
-~~~
-
-.. module:: imposm.parser
-
-.. autoclass:: OSMParser
-  :members:
diff --git a/imposm.parser.egg-info/PKG-INFO b/imposm.parser.egg-info/PKG-INFO
new file mode 100644
index 0000000..cf13c99
--- /dev/null
+++ b/imposm.parser.egg-info/PKG-INFO
@@ -0,0 +1,76 @@
+Metadata-Version: 1.0
+Name: imposm.parser
+Version: 1.0.2
+Summary: Fast and easy OpenStreetMap XML/PBF parser.
+Home-page: http://dev.omniscale.net/imposm.parser/
+Author: Oliver Tonnhofer
+Author-email: olt at omniscale.de
+License: Apache Software License 2.0
+Description: .. # -*- restructuredtext -*-
+        
+        imposm.parser - OpenStreetMap XML/PBF parser for Python
+        =======================================================
+        
+        ``imposm.parser`` is a Python library that parses OpenStreetMap data in `XML <http://wiki.openstreetmap.org/wiki/.osm>`_ and `PBF <http://wiki.openstreetmap.org/wiki/PBF_Format>`_ format.
+        
+        It has a simple API and it is fast and easy to use. It also works across multiple CPU/cores for extra speed.
+        
+        It is developed and supported by `Omniscale <http://omniscale.com>`_ and released under the `Apache Software License 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`_.
+        
+        Example
+        -------
+        
+        Here is an example that parses an OSM file and counts all ways that are tagged as a highway.
+        ::
+        
+          from imposm.parser import OSMParser
+        
+          # simple class that handles the parsed OSM data.
+          class HighwayCounter(object):
+              highways = 0
+            
+              def ways(self, ways):
+                  # callback method for ways
+                  for osmid, tags, refs in ways:
+                      if 'highway' in tags:
+                        self.highways += 1
+        
+          # instantiate counter and parser and start parsing
+          counter = HighwayCounter()
+          p = OSMParser(concurrency=4, ways_callback=counter.ways)
+          p.parse('germany.osm.pbf')
+          
+          # done
+          print counter.highways
+        
+        
+        Source and issue tracker
+        ------------------------
+        
+        Source code and issue tracker are available at `<https://bitbucket.org/olt/imposm.parser/src>`_.
+        
+        Changelog
+        ---------
+        
+        1.0.2 2011-03-10
+        ~~~~~~~~~~~~~~~~
+        
+        - improved regexp based XML coord parser
+        - prevent mmap overflow in XMLChunker without coord_callback
+        - successfully parsed whole planet.osm
+        
+        1.0.0 2011-02-22
+        ~~~~~~~~~~~~~~~~
+        
+        - first release
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: C
+Classifier: Programming Language :: C++
+Classifier: Programming Language :: Python :: 2.5
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Topic :: Software Development :: Libraries
+Classifier: Topic :: Scientific/Engineering :: GIS
diff --git a/imposm.parser.egg-info/SOURCES.txt b/imposm.parser.egg-info/SOURCES.txt
new file mode 100644
index 0000000..d31e249
--- /dev/null
+++ b/imposm.parser.egg-info/SOURCES.txt
@@ -0,0 +1,29 @@
+CHANGES
+LICENSE
+MANIFEST.in
+README
+osm.proto
+setup.py
+imposm/__init__.py
+imposm.parser.egg-info/PKG-INFO
+imposm.parser.egg-info/SOURCES.txt
+imposm.parser.egg-info/dependency_links.txt
+imposm.parser.egg-info/namespace_packages.txt
+imposm.parser.egg-info/top_level.txt
+imposm/parser/__init__.py
+imposm/parser/example.py
+imposm/parser/simple.py
+imposm/parser/util.py
+imposm/parser/pbf/__init__.py
+imposm/parser/pbf/multiproc.py
+imposm/parser/pbf/osm.cc
+imposm/parser/pbf/parser.py
+imposm/parser/test/__init__.py
+imposm/parser/test/test.osm
+imposm/parser/test/test.osm.bz2
+imposm/parser/test/test.pbf
+imposm/parser/test/test_simple_parser.py
+imposm/parser/xml/__init__.py
+imposm/parser/xml/multiproc.py
+imposm/parser/xml/parser.py
+imposm/parser/xml/util.py
\ No newline at end of file
diff --git a/imposm.parser.egg-info/dependency_links.txt b/imposm.parser.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/imposm.parser.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/imposm.parser.egg-info/namespace_packages.txt b/imposm.parser.egg-info/namespace_packages.txt
new file mode 100644
index 0000000..b31019c
--- /dev/null
+++ b/imposm.parser.egg-info/namespace_packages.txt
@@ -0,0 +1 @@
+imposm
diff --git a/imposm.parser.egg-info/top_level.txt b/imposm.parser.egg-info/top_level.txt
new file mode 100644
index 0000000..b31019c
--- /dev/null
+++ b/imposm.parser.egg-info/top_level.txt
@@ -0,0 +1 @@
+imposm
diff --git a/imposm/parser/example.py b/imposm/parser/example.py
new file mode 100644
index 0000000..e1b7b02
--- /dev/null
+++ b/imposm/parser/example.py
@@ -0,0 +1,40 @@
+# Copyright 2011 Omniscale GmbH & Co. KG
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+import multiprocessing
+from imposm.parser import OSMParser
+from collections import defaultdict
+
+def ways_tag_filter(tags):
+    for key in tags.keys():
+        if key != 'highway':
+          del tags[key]
+
+if __name__ == '__main__':
+    
+    class Counter(object):
+        def __init__(self):
+            self.ways_counter = 0
+            self.relations_counter = 0
+        def incr_ways(self, ways):
+            self.ways_counter += len([id for id,tags,ref in ways if 'highway' in tags])
+        def incr_relations(self, relations):
+            self.relations_counter += len(relations)
+            
+    counter = Counter()
+    p = OSMParser(ways_callback=counter.incr_ways, relations_callback=counter.incr_relations,
+        ways_tag_filter=ways_tag_filter)
+    p.parse(sys.argv[1])
+    print counter.ways_counter, counter.relations_counter
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..861a9f5
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,5 @@
+[egg_info]
+tag_build = 
+tag_date = 0
+tag_svn_revision = 0
+
diff --git a/tox.ini b/tox.ini
deleted file mode 100644
index e3ccac9..0000000
--- a/tox.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[tox]
-envlist = py25,py26,py27
-
-[testenv]
-changedir = {toxworkdir}
-commands = nosetests imposm --with-xunit --xunit-file={toxinidir}/nosetests-{envname}.xml
-deps = nose>=0.10.4

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/imposm-parser.git



More information about the Pkg-grass-devel mailing list