Changes between Version 1 and Version 2 of UsersWikiExamplesInterpolateWithOffset


Ignore:
Timestamp:
10/26/09 17:38:32 (15 years ago)
Author:
veggivore
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiExamplesInterpolateWithOffset

    v1 v2  
    66select
    77st_line_interpolate_point(te.the_geom,
    8         ((12710 - fromhn::float) / (tohn::float - fromhn::float)),
     8        ((12345 - fromhn::float) / (tohn::float - fromhn::float)),
    99        case when side = 'R' then .0001 else -.0001 end
    1010),
    11 '12710 3rd St, 92399'
     11'A house'
    1212from tl_edges te
    1313join tl_addr ta on te.tlid = ta.tlid
    14 where fullname = '3rd St' and 12710 between fromhn::int and tohn::int and zip = '92399'
    15 and (12710 % 2) = (fromhn::int % 2)
     14where fullname = 'Main St' and 12345 between fromhn::int and tohn::int and zip = '92333'
     15and (12345 % 2) = (fromhn::int % 2)
    1616and fromhn::int < tohn::int;
    1717}}}