NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

I'm trying to install TIGER data on a local Nominatim server.

During the first step in the installation, I started seeing errors like the one pasted below (only for numbers larger than about 60000).

After installing the TIGER data (as specified at the bottom of the installation instructions page) it stopped working fine.

Reverse geo queries return blank pages, if I view the source I only see "1" on the page. Geo coding queries seem not to find any results.

The table location_property_tiger still exists.

Any clues? Thanks, Raz

Traceback (most recent call last):
  File "/home/raz/Downloads/Nominatim-2.1/utils/tigerAddressImport.py", line 4064, in <module>
    shape_to_osm( shape, osm, id )
  File "/home/raz/Downloads/Nominatim-2.1/utils/tigerAddressImport.py", line 3955, in shape_to_osm
    parsed_features = parse_shp_for_osm( shp_filename )
  File "/home/raz/Downloads/Nominatim-2.1/utils/tigerAddressImport.py", line 3475, in parse_shp_for_osm
    tags.update( fipsstate(statefp, countyfp) )
  File "/home/raz/Downloads/Nominatim-2.1/utils/tigerAddressImport.py", line 3344, in fipsstate
    county = county_fips[county_fips_code]
KeyError: '60010'
Failed parse (/data1/EDGES/tl_2013_60010_edges.zip)

asked 19 Jan '14, 08:00

RazAlon's gravatar image

RazAlon
619914
accept rate: 0%

edited 20 Feb '14, 11:56

Can you check if the table location_property_tiger still exists in your DB?

(20 Jan '14, 08:20) lonvia

yes, it's there

(20 Jan '14, 12:00) RazAlon

Your problems are not related to the error messages you got during import. They just indicate that some edge files couldn't be processed and have been skipped. All other edge files will have worked fine.

To find the source of your problem you need to find out more about what exactly happens when sending the requests. A few places to start looking:

  • Check the postgresql log for errors.
  • Run the query with the additional parameter debug=1. It should give you a lot of debug output. See if you can find something about an SQL error there.
  • Make sure the php code has not been modified and there are no syntax errors in setting/local.php.
permanent link

answered 21 Feb '14, 12:32

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

1

thank you for the advice. it was due to "www-data" versus "apache" username. I should have imported the TIGER data before changing the username, or, change back, import, and change back again... :)

(27 Feb '14, 11:39) RazAlon

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:

×689
×30

question asked: 19 Jan '14, 08:00

question was seen: 3,378 times

last updated: 27 Feb '14, 11:39

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum