When trying to import the the Tiger 2011 data into nominatim, I get the following parse error:

./utils/imports.php --parse-tiger-2011 data/tiger/ftp2.census.gov/geo/tiger/TIGER2011/EDGES
Processing 01001...
  File "/usr/src/nominatim/utils/tigerAddressImport.py", line 3340
    raise KeyError, 'missing FIPS code', fips
                  ^
SyntaxError: invalid syntax
Failed parse (/usr/src/nominatim/data/tiger/ftp2.census.gov/geo/tiger/TIGER2011/EDGES/tl_2011_01001_edges.zip)

I am following the directions from the answer to this question: https://help.openstreetmap.org/questions/12150/missing-house-numbers-in-local-nominatim-instance

Does this still work?

asked 11 Apr '13, 00:24

montanalow's gravatar image

montanalow
40225
accept rate: 0%


It still works. Make sure that you use python 2.x and not python 3.

permanent link

answered 11 Apr '13, 14:07

lonvia's gravatar image

lonvia
5.3k25177
accept rate: 39%

2

Thanks, I was use using python 3, and that was the problem. Works perfect with python 2.

(11 Apr '13, 14:33) montanalow

I just finished the import, and it looks like FIPS codes > 60000 are not handled by tigerAddressImport.py, so they generate they same error, even though there is tiger EDGE data.

It looks like FIPS 60010 is American Somoa (not one of the 50 states), so I'm guessing this is intended behavior.

(12 Apr '13, 01:23) montanalow

Indeed, that is a known limitation. It should only be a matter of adding the FIPS codes in tigerAddressImport.py to make it work.

(12 Apr '13, 07:04) lonvia
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×556
×169
×27

question asked: 11 Apr '13, 00:24

question was seen: 3,518 times

last updated: 12 Apr '13, 07:04

powered by OSQA