Commit graph

65 commits

Author SHA1 Message Date
Regina Obe d6fd367962 significantly improve speed of reverse geocode (when all states loaded), but using CTEs and unparameterizing query (parameterized often does not use inheritance), reverse_geocode to use default parameters, put in table column comments to describe some of what loader columns mean.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7377 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-12 04:52:03 +00:00
Regina Obe 990d1f8f4c #1009 typo in index creation
git-svn-id: http://svn.osgeo.org/postgis/trunk@7345 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-09 16:01:51 +00:00
Regina Obe 5d59ea6506 fix ambiguous column issue now that new zcta5 also has statefp
git-svn-id: http://svn.osgeo.org/postgis/trunk@7324 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-05 07:55:27 +00:00
Regina Obe 5fe2e05653 more speed optimizations
git-svn-id: http://svn.osgeo.org/postgis/trunk@7323 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-05 07:35:14 +00:00
Regina Obe ef757f4a4b revise function s so lookup zip utilizes constraint exclusion
git-svn-id: http://svn.osgeo.org/postgis/trunk@7322 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-05 07:07:40 +00:00
Regina Obe f71b47ef49 #1004: census has finally released zcta5 for 2010. Get rid of zcta500 table. replace with a more generic named zcta5. Revise loader state script to load in zcta510 data and revise functions to use new zcta5 table.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7321 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-05 06:13:09 +00:00
Regina Obe 5e9034c40e get rid of bash line -- seems unnecessary and breaks if multiple states. Forgot cd which was making secondary states fail loading.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7293 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-30 09:45:36 +00:00
Regina Obe ed97504976 add remarked out line to set search path -- suggested by Brian Hamlin. Also some other minor changes
git-svn-id: http://svn.osgeo.org/postgis/trunk@7284 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-30 00:30:58 +00:00
Regina Obe 2d150eaaad Get rid of deprecated call to centroid
git-svn-id: http://svn.osgeo.org/postgis/trunk@7283 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-28 23:32:41 +00:00
Regina Obe 6184dfb583 fix for #996 also had to revise least and greatest helper functions to deal with to and froms that can't be converted to integers. Also added missing indexes to base tables (helps the planner with inherited tables though it never really uses those indexes)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7282 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-28 15:07:19 +00:00
Regina Obe 58bd79f5c5 fill in some missing licensing headers and svn tags
git-svn-id: http://svn.osgeo.org/postgis/trunk@7281 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-28 13:29:50 +00:00
Regina Obe 2b73b3b964 revise readme wording so those unix users who aren't on linux won't be quite as offended
git-svn-id: http://svn.osgeo.org/postgis/trunk@7279 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-28 11:24:34 +00:00
Regina Obe b45540056d fix for #995 handling lower level fips. Also many fixes for #908 sh tiger loader profile. Testing now and will close out if confirmed its fixed. Also put in a note in the .sh and .bat that for PostgreSQL 9.1+ have to install fuzzystrmatch with the CREATE EXTENSION syntax
git-svn-id: http://svn.osgeo.org/postgis/trunk@7278 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-28 11:18:24 +00:00
Regina Obe 14e23035f2 more optimizations
git-svn-id: http://svn.osgeo.org/postgis/trunk@7131 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-11 14:59:55 +00:00
Regina Obe fcff5e7c34 put in some missing indexes
git-svn-id: http://svn.osgeo.org/postgis/trunk@7130 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-11 13:50:05 +00:00
Regina Obe cca37670c7 more performance enhancements
git-svn-id: http://svn.osgeo.org/postgis/trunk@7129 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-11 13:32:17 +00:00
Regina Obe 193b0b8c22 turn off debug mode
git-svn-id: http://svn.osgeo.org/postgis/trunk@7128 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-11 12:56:12 +00:00
Regina Obe f6e2365ce2 more usability and performance enhancements. Change geocoder/reverse_geocode to use tiger.state_lookup instead of each schema state table (to achieve this had to add statefp to lookup table). Also put in upgrade scripts and notes on upgrading in README. (current script will only upgrade an alpha tiger 2010 (PostGIS 2.0.0 install) ).
git-svn-id: http://svn.osgeo.org/postgis/trunk@7127 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-11 12:55:13 +00:00
Regina Obe de246b9722 more cleanup of normalize_address function
git-svn-id: http://svn.osgeo.org/postgis/trunk@7120 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 19:59:39 +00:00
Regina Obe 1b8703fcc9 put in missing constraints
git-svn-id: http://svn.osgeo.org/postgis/trunk@7119 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 16:10:57 +00:00
Regina Obe f536e53fa5 major speed improvements to normalize_address
git-svn-id: http://svn.osgeo.org/postgis/trunk@7117 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 15:00:15 +00:00
Regina Obe dde556b569 mark as immutable
git-svn-id: http://svn.osgeo.org/postgis/trunk@7113 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-08 17:20:59 +00:00
Regina Obe 777ca05fce more cleanup. Get rid of more deprecated functions, put in more stable,imuutable markers. Change some functions from plpgsql to sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@7112 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-08 17:18:38 +00:00
Regina Obe f954c9730b Put in costing and make most of the functions either STABLE or IMMUTABLE. We were loosing a lot of cacheability of that. Also put in instructions in README how to upgrade the scripts. Will need to put this in the official docs too once cleaned that up a bit.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7111 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-08 16:36:55 +00:00
Regina Obe ad0c3999bb put in clock timestamps in debugging logic. We seem to be loosing more time on this normalize than we should be.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7110 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-07 16:33:59 +00:00
Regina Obe 7094f36eda Fix for #927
git-svn-id: http://svn.osgeo.org/postgis/trunk@7070 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-28 21:05:41 +00:00
Regina Obe a679a130e1 git-svn-id: http://svn.osgeo.org/postgis/trunk@7037 b70326c6-7e19-0410-871a-916f4a2858ee 2011-04-15 11:21:11 +00:00
Regina Obe 6e7a9c6be1 change to all line feed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7036 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-15 11:19:12 +00:00
Regina Obe bfd04ba489 more patch corrections to support sh
git-svn-id: http://svn.osgeo.org/postgis/trunk@7035 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-15 11:15:59 +00:00
Regina Obe 539ebe52c6 cleanup of breaks minor other changes
git-svn-id: http://svn.osgeo.org/postgis/trunk@7034 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-15 11:03:45 +00:00
Regina Obe 69833d53ca replace with linux breaks, minor changes to paths
git-svn-id: http://svn.osgeo.org/postgis/trunk@7033 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-15 11:00:57 +00:00
Regina Obe e1c23bbf5c Fix typo in tiger manual and fix for #887 -- it was really the issue of using , instead of space to separate state and zip that was the main culprit
git-svn-id: http://svn.osgeo.org/postgis/trunk@7005 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-04 16:25:48 +00:00
Regina Obe 3f09472e4b git-svn-id: http://svn.osgeo.org/postgis/trunk@6972 b70326c6-7e19-0410-871a-916f4a2858ee 2011-03-26 23:44:14 +00:00
Regina Obe 5f83c9c1e5 more typo corrections
git-svn-id: http://svn.osgeo.org/postgis/trunk@6971 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-26 23:42:55 +00:00
Regina Obe 26ca058f37 cleanup change linux to sh. Get rid of some typos in the sh script generator, move some more variables to the top for easier setting. Fix some errors in loader_tables preventing some soundex index from being created. Change reverse_geocoder.sql (from utfy-8 (not sure how that happened)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6969 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-26 17:43:10 +00:00
Regina Obe e84a603c34 Make work on PostgreSQL 8.4 (was using some syntax only allowed in 9.0+). Also account for the odd / even side of street rule. And of course that demonstrated there is a bug somewhere (most likely in the geocoder), but got to pull up some maps to see which is right. One of these has the address orientations flipped (odd /even not right). Of course I have to be right :). Boy do I hate when you program the reverse of something and it exposes a bug. Also fix some minor documentation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6823 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-15 13:49:06 +00:00
Regina Obe fd7ccedce4 Change to transform the point if not in nad83 long lat already
git-svn-id: http://svn.osgeo.org/postgis/trunk@6820 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-15 06:36:33 +00:00
Regina Obe d4237550af reverse_geocode complete (with street range), now to document and improve speed and test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6819 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-15 06:15:36 +00:00
Regina Obe 00167d4158 Journeying into street ranges now can tell which side of the street we are on and spits that out when include_strnum_range is true. Next (hopefully last) step will be to pinpoint address number
git-svn-id: http://svn.osgeo.org/postgis/trunk@6818 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-15 00:26:08 +00:00
Regina Obe ef6708e2b1 First draft of reverse geocde currently just gets the street need to interpolate to get approximate number
git-svn-id: http://svn.osgeo.org/postgis/trunk@6817 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-14 18:22:37 +00:00
Regina Obe 59908ea2ae Add some calrification notes to normalize_address function. Get rid of superfluous line break in linux script.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6794 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-10 05:33:52 +00:00
Regina Obe 4da3f8cd16 Revise README to be clearer. Update the tiger_loader linux script.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6793 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-10 04:40:04 +00:00
Regina Obe 6551dd68f9 Best guess at what the Linux equivalent should look like will have to test later once get my Linux box setup again
git-svn-id: http://svn.osgeo.org/postgis/trunk@6774 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-01 13:55:02 +00:00
Regina Obe 1e8621c336 rename to agree with documentation and other tiger folder
git-svn-id: http://svn.osgeo.org/postgis/trunk@6763 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-30 01:29:51 +00:00
Regina Obe afd0e79422 missed some spots
git-svn-id: http://svn.osgeo.org/postgis/trunk@6756 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-28 15:19:04 +00:00
Regina Obe 451fe97b4d some other minor doc corrections. Stamp files with svn author, revision etc keywords
git-svn-id: http://svn.osgeo.org/postgis/trunk@6755 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-28 15:01:30 +00:00
Regina Obe 50a1071221 put in a batch geocoding example, more performance enhancements and loading changes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6742 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-27 18:17:03 +00:00
Regina Obe 903bc41c07 put in logic to fill zipcode_lookup_base, fix some other errors
git-svn-id: http://svn.osgeo.org/postgis/trunk@6735 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-26 15:16:40 +00:00
Regina Obe c9c88b971e cleanup -- other legacy stuff is already in tiger2006
git-svn-id: http://svn.osgeo.org/postgis/trunk@6723 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 06:38:45 +00:00
Regina Obe 5b62dd983f git-svn-id: http://svn.osgeo.org/postgis/trunk@6722 b70326c6-7e19-0410-871a-916f4a2858ee 2011-01-25 06:36:05 +00:00