simplegeo / geocoder Goto Github PK
View Code? Open in Web Editor NEWThis project forked from geocommons/geocoder
Modular Street Address Geocoder
Home Page: http:///www.geocommons.com
This project forked from geocommons/geocoder
Modular Street Address Geocoder
Home Page: http:///www.geocommons.com
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.
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.
Loaded suite tests/run
Started
............EF.....EEEEEEEEEEEE
Finished in 0.051634 seconds.
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'
Failure:
test_skip_parse(TestAddress) [/root/geocoder/simplegeo/geocoder-2011-06-20/tests/address.rb:182]:
<"main st"> expected but was
<"1233 main st">.
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_db'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:25:in `setup'
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:in
initialize'
/root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in new' /root/geocoder/simplegeo/geocoder-2011-06-20/tests/database.rb:17:in
get_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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.