[OSM-dev] Update of TIGER ruby import code

James Marca jmarca at translab.its.uci.edu
Tue Jul 10 18:34:05 BST 2007


On Fri, Jul 06, 2007 at 05:05:34PM -0700, Brandon Martin-Anderson wrote:
> On 7/6/07, Dave Hansen <dave at sr71.net> wrote:
> >
...
> >> If that doesn't seem possible, it is relatively straightforward to
> >> implement a Ruby function in C. A lot of the faster "Ruby" libraries
> >> are actually written in C with liberal use of the " ruby.h" header to
> >> give access to Ruby types.
> >
> >Perhaps I'll give this a try.  I'm going to post a new version in a bit.
> >We'll see what people think of it.
> >
> >How hard would it be for you to re-write the tiger parser in C?  I
> >could do the OSM bits pretty easily.
> 
> 
> Oomph. I'll take a look at the latest code and see what I can do with it.
> The efficiency of the implementation of various function calls varies
> _wildly_. For example chunking a _huge_ string into an array using a regex
> is very, very efficient. I might be able to speed things up a bit. If all
> hope is lost, we'll see about C.

In case it comes to that, be sure to look first at the C++ code in the
OGR codebase, avalaible in the gdal library at http://www.gdal.org/
(download page at http://trac.osgeo.org/gdal/wiki/DownloadSource)
>From a quick scan of the source code, it seems based on the 2000
version of the tiger line files.  Probably not much work to bring up
to date with the latest version.  

James
  






More information about the dev mailing list