GithubHelp home page GithubHelp logo

simplegeo / geocoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geocommons/geocoder

45.0 6.0 6.0 5.99 MB

Modular Street Address Geocoder

Home Page: http:///www.geocommons.com

C 86.88% Ruby 13.03% Shell 0.09%

geocoder's Issues

tiger_import issues

When running the tiger_import for the TigerLine 2010 data, no information is stored in the place table. I have the entire Tiger2010 files/directories on this server and have created the database 6 times without any errors.

If I perform select * from place on the 4Gig database file, it would result in 0 records. I am trying to modify the script to import this information but not sure at this time.

metaphone segfaults

Getting segmentation fault when metaphone is called. A simple test to reproduce the issue is:

sqlite3
SQLite version 3.7.7.1 2011-06-28 17:39:05
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .load lib/geocoder/us/sqlite3.so
sqlite> SELECT metaphone('test');
Segmentation fault

Noticed the issue after passing -echo to sqlite3 while running tiger_import and it died on the convert.sql execution, which uses the metaphone extension.

snip
INSERT INTO feature_bin
SELECT DISTINCT NULL, fullname, metaphone(name,5), paflag, zip
FROM linezip l, tiger_featnames f
WHERE l.tlid=f.tlid AND name <> "" AND name IS NOT NULL;
Segmentation fault

There were no errors during the build process for geocoder AFTER I disabled iconv, not sure if UTF8 would have anything to do with this, but wanted to disclose the fact just in case. The issue with iconv is related to the 64bit version I believe.

I am using Xcode 4 on Mac OS 10.6.8 with self compiled sqlite3 to support extensions.

Errors while executing tests/run.rb

Loaded suite tests/run
Started
............EF.....EEEEEEEEEEEE
Finished in 0.051634 seconds.

  1. Error:
    test_po_box(TestAddress):
    ArgumentError: assertion message must be String or Proc, but TrueClass was given.
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/address.rb:64:in `test_po_box'

  2. Failure:
    test_skip_parse(TestAddress) [/root/geocoder/simplegeo/geocoder-2011-06-20/tests/address.rb:182]:
    <"main st"> expected but was
    <"1233 main st">.

  3. Error:
    test_city_state_together(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  4. Error:
    test_city_with_street_type_in_name(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  5. Error:
    test_intersection(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  6. Error:
    test_load(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  7. Error:
    test_place(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  8. Error:
    test_sample(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  9. Error:
    test_should_geocode_with_hash(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  10. Error:
    test_should_get_street_number_correctly(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  11. Error:
    test_should_work_with_partial_hash(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  12. Error:
    test_state_street_together(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  13. Error:
    test_weird_edge_case_explosion(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

  14. Error:
    test_zip(TestDatabase):
    TypeError: can't convert nil into String
    /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:in exists?' /root/geocoder/simplegeo/geocoder-2011-06-20/lib/geocoder/us/database.rb:38:ininitialize'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:inget_db'
    /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'

31 tests, 156 assertions, 1 failures, 13 errors, 0 skips

Test run options: --seed 44558

The command to get this result was ruby tests/run.rb as mentioned within the README.rdoc file. Is documentation someplace that can point me into a direction to make the tests run cleanly.

SQLite3::SQLException too many SQL variables

I can trigger this error reproducibly with this example:

/geocode?q=fulton+st+at+grant+ave++cypress+hills++nyc+US

Perhaps should check how many variables it is about to send to SQLite before doing it.

Fix San Francisco, CA issue.

San Francisco, CA (without an address or zip code) shows up off the coast in the ocean. This is confusing for a lot of users.

-Ben

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.