[postgis-devel] [PostGIS] #1125: pprint_addy fix display of highways, routes and other pretyabbrev
PostGIS
trac at osgeo.org
Fri Oct 15 04:15:33 PDT 2010
#1125: pprint_addy fix display of highways, routes and other pretyabbrev
----------------------------+-----------------------------------------------
Reporter: robe | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: tiger geocoder | Version: 1.5.X
Keywords: |
----------------------------+-----------------------------------------------
To solve the highway geocoding problem I cheated a bit by just throwing
the highway designations in the streetTypeAbbrev with the argument that
highways don't ever have streettypes anyway that I can think of and what
tiger calls a pretypeabrv, I essentially consider a streetType that
happens to be in front of the streetname instead of the back. I have a
flag in streettype lookup that traps the nature of this for geocoding
called isHighway.
For outputting, I also now cheat by just gluing this in front of the
streetname so the pprint_addy behaves right.
I'm swaying back and forth between the decision of adding a true
pretypeabrv field to norm_addy and changing pprint_addy to be aware of
this field (and basically redoing a good chunk of my work),
OR (which is sounding pretty appealing to me because I am incredibly
lazy)
Just have pprint_addy check if the streetypeabrev is a highway type and
then just stuff it in front of the address if it is. That solution does
make me feel a bit dirty though. So My angel and demons are fighting
(angel: "keep clean, everything in its proper place", demon: "be lazy and
just stuff the remnants under the covers so no one is the wiser. Really
why do we need yet another field"). I'm afraid my demon side is winning
this game.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1125>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list