Skip to content

Commit

Permalink
prevent error when tiger street number is not a number (just return f…
Browse files Browse the repository at this point in the history
…irst number part)

Closes #3531 for trunk (PostGIS 2.3.0)

git-svn-id: http://svn.osgeo.org/postgis/trunk@14850 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
robe2 committed Apr 17, 2016
1 parent 0822b06 commit 13520b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extras/tiger_geocoder/geocode/geocode_address.sql
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ BEGIN
END IF;

IF results.exact_address THEN
ADDY.address := parsed.address;
ADDY.address := substring(parsed.address FROM '[0-9]+')::integer;
ELSE
ADDY.address := NULL;
END IF;
Expand Down
4 changes: 2 additions & 2 deletions extras/tiger_geocoder/geocode/geocode_intersection.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***
*
* Copyright (C) 2011 Regina Obe and Leo Hsu (Paragon Corporation)
* Copyright (C) 2011-2016 Regina Obe and Leo Hsu (Paragon Corporation)
**/
-- This function given two roadways, state and optional city, zip
-- Will return addresses that are at the intersecton of those roadways
Expand Down Expand Up @@ -140,7 +140,7 @@ BEGIN
ADDY.stateAbbrev := in_state;
ADDY.zip := results.zip;
ADDY.parsed := TRUE;
ADDY.address := results.address;
ADDY.address := substring(results.address FROM '[0-9]+')::integer;

GEOMOUT := results.geom;
RATING := results.a_rating;
Expand Down

0 comments on commit 13520b3

Please sign in to comment.