-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tiger import: sql errors in log #2
Comments
Those rows have been skipped (throwing warnings) for years. The conversion script in https://github.com/osm-search/TIGER-data should better cleanup/filter non-integers from house number ranges. It doesn't affect the search, at least not more than it always had (and I can't remember a bug that was tracked down to those lines).
(I think I imported the data twice on the same day) |
I had a look at a couple "road too short" warnings. That happens when the house-number range from start to finish is in the 1000s but the roads only covers a couple of houses. Examples below. I used http://geojson.io/ to visualize the LINESTRING (
|
I'm sure these are data errors in TIGER. I don't think it's worth trying to correct them. You can use the haversine library to compute the road length in the script and skip the roads which are too short. |
Hi,
last week i imported a new planet with all additional data (master branch / postgres12)
In tiger data sql files there are more than 33 million "select tiger_line_import" statements. After import the postgresql logfile had a lot of syntax errors for approx 1.5% of these statements
410.000 errors of type "invalid syntax for type integer"
(second parameter should be integer) e.g.
SELECT tiger_line_import(ST_GeomFromText('LINESTRING(-85.937244 31.384285,-85.937262 31.384142,-85.937319 31.383953,-85.937452 31.383749,-85.937794 31.383686,-85.938286 31.383649,-85.938534 31.383803,-85.938865 31.384175)',4326), 'UN98', 'UN00', 'all', 'Pearl St', 'Coffee, AL', '36351');
60.000 errors of type "Road too short for number range"
e.g. Road too short for number range 424 to 5364 on E State St, Clarke, AL (4.0973280119849804e-07)
PL/pgSQL-Funktion tiger_line_import(geometry,integer,integer,text,text,text,text) Zeile 44 bei RAISE
While this doesn't affect nominatim from working maybe we should leave out the statements not matching database structure of the tiger-preprocessed files ?
Thanks
The text was updated successfully, but these errors were encountered: