This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] Parse Tiger Data Exception

0

Hi to all,

After nominatim-2.3.1 installed successfully, I want to import tiger data into nominatim database. Also installed gdal-python.

$gdalinfo --version GDAL 1.11.2, released 2015/02/10

When I execute the cmd for parse tigerdata, I got the below Exception:

./Nominatim-2.3.1/utils/imports.php --parse-tiger-2011 TIGERDATA/EDGES/

Processing 15005... Traceback (most recent call last): File "Nominatim-2.3.1/utils/tigerAddressImport.py", line 50, in <module> import ogr ImportError:No module named ogr Failed parse (TIGERDATA/EDGES/tl_2013_15005_edges.zip)

Also I tried as ./Nominatim-2.3.1/utils/imports.php --parse-tiger TIGERDATA/EDGES/

But there is no logs(not processing my request)

Kindly help me for fix the above issue/Exception.

asked 22 Jul '15, 08:16

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

closed 26 Aug '15, 17:35

The question has been closed for the following reason “The question is answered, right answer was accepted” by Rajavelu_M 26 Aug ‘15, 17:35


One Answer:

2

ImportError:No module named ogr

Yes. python library ogr not installed properly, So only I met that err, Now I fixed & working fine.

But as per wiki,

Convert the data into SQL statements (stored in data/tiger2011):

./utils/imports.php --parse-tiger-2011 tiger_edge_data_directory

Attention:when using the latest development version, use --parse-tiger.

But not working --parse-tiger in nominatim-2.3.1 , we need to execute as --parse-tiger-2011.

answered 05 Aug '15, 08:23

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 05 Aug '15, 08:43

Source code available on GitHub .