Commit Graph

105 Commits

Author SHA1 Message Date
Al
67a3ee8e2a [fix] var name 2016-07-21 17:04:57 -04:00
Al
58f075f2ea [fix] classmethod for loading polygons 2016-07-21 17:04:57 -04:00
Al
9755d2cee9 [osm/polygons] Keep OSM/Quattroshapes admin polygons in memory as there are fewer of them and they are large 2016-07-21 17:04:57 -04:00
Al
f6b88ba456 [fix] double prep 2016-07-21 17:04:57 -04:00
Al
941ab39a6a [fix] return_all in polygon index 2016-07-21 17:04:57 -04:00
Al
7b82af5526 [osm/polygons] Keep stats on cache hits/misses for testing cache sizes 2016-07-21 17:04:57 -04:00
Al
499a20cb36 [osm/polygons] Using an LRU cache for prepped polygons in the various PolygonIndex subclasses. That way can store less simplified polygons but keep frequently accessed ones (like countries) in memory 2016-07-21 17:04:57 -04:00
Al
a84047b567 [fix] name 2016-07-21 17:04:57 -04:00
Al
57c3e0ddd4 [fix] import 2016-07-21 17:04:57 -04:00
Al
0e58f24172 [fix] arg name 2016-07-21 17:04:57 -04:00
Al
6d1352334e [fix] command for subdivision polys 2016-07-21 17:04:57 -04:00
Al
fe7cc0a937 [fix] import 2016-07-21 17:04:57 -04:00
Al
142bc293bb [fix] var scope 2016-07-21 17:04:57 -04:00
Al
70effea0f7 [fix] Simplify OSM polygons but using the new threshold 2016-07-21 17:04:57 -04:00
Al
4e17ef6f91 [osm] Storing polygon properties in a LevelDB, polygons themselves stay in memory 2016-07-21 17:04:57 -04:00
Al
b25682e761 [polygons/zones] Adding a polygon reader for OSM zones (named residential/commercial/industrial/military areas) which are closed ways and can be used in addresses e.g. in office parks, larger housing complexes, etc. 2016-07-21 17:04:57 -04:00
Al
f79a3c5bf4 [osm/polygons] Allowing polygons that GEOS claims are invalid in OSM polygon index (there were some glaring omissions from the index like the polygons for the UK or Berlin). For some reason .buffer(0) creates weird multipolygons that no longer contain their centroids, etc. and aren't useful in reverese geocoding 2016-01-17 15:43:21 -05:00
Al
04f251c1cc [polygons] Don't call fix_polygon (force polygon validity) by default 2016-01-16 21:21:27 -05:00
Al
58e53cab1c [scripts] Adding the tokenize/normalize wrappers directly into the internal geodata package so pypostal can be maintained in an independent repo 2016-01-12 13:29:31 -05:00
Al
c8e4602d4c [fix] Neighborhoods reverse geocoder discriminates between OSM matched with Zetashapes and OSM matched with Quattroshapes 2015-11-30 10:59:50 -05:00
Al
b0667d0032 [fix] only care about levels in Quattroshapes index, not Zetashapes 2015-11-26 23:45:50 -05:00
Al
0eb0042826 [fix] Same in neighborhoods reverse geocoder lookups 2015-11-26 14:17:17 -05:00
Al
4170f6e9e3 [fix] same options for geohash-based index 2015-11-26 14:14:53 -05:00
Al
4cff1f8a9d [fix] Quattroshapes neighborhoods index uses geohashes for slightly better coverage 2015-11-26 12:45:54 -05:00
Al
98d8054a2b [polygons/quattroshapes] Converting Quattroshapes lookups to an R-tree index 2015-11-25 19:37:57 -05:00
Al
8a8e45f2a6 [fix] filenames 2015-11-25 18:08:04 -05:00
Al
bd88628a98 [polygons/quattroshapes] Removing local admin and neighborhoods from the Quattroshapes reverse geocoder since they're covered in neighborhoods 2015-11-25 18:06:14 -05:00
Al
40d18aa7f6 [polygons/osm] Switching back to buffer(0). Still destroys many polygons, may need to look into another solution 2015-11-25 17:10:50 -05:00
Al
de9f3120c8 [polygons] Trying a slightly higher value for buffer() as suggested by this issue https://github.com/Toblerity/Shapely/issues/277 2015-11-23 15:43:23 -05:00
Al
04183c672e [fix] non-integer admin levels 2015-11-22 18:33:27 -05:00
Al
f77ddc71e7 [fix] reverting to old Rtree index filename 2015-11-22 17:25:51 -05:00
Al
4f0d6fbf79 [fix] default arg again 2015-11-22 14:22:09 -05:00
Al
4cc275e313 [fix] doc and default arg 2015-11-22 14:21:20 -05:00
Al
9fc60600dd [fix] OSM reverse geocoder polygon ordering 2015-11-20 14:49:37 -05:00
Al
130518fe58 [polygons] OSM reverse geocoder sort levels 2015-11-20 13:52:30 -05:00
Al
48a305c8c4 [fix] Reverting last two changes, have to fix on the OSM side 2015-11-01 16:23:41 -05:00
Al
90773294b9 [polygons] Only fixing polygons in cases with inner rings 2015-11-01 12:36:35 -05:00
Al
477300c061 [polygons] Eliminating fix_polygon 2015-11-01 03:12:58 -05:00
Al
aba2c51e65 [fix] name 2015-11-01 01:35:01 -04:00
Al
1dbfc6a87b [polygons/neighborhoods] Not counting local admin polys unless they match OSM, fix for Paris arrondissements 2015-11-01 01:24:43 -04:00
Al
4fdaef2638 [fix] Don't need Quattroshapes dir for OSM Rtree 2015-10-31 19:08:04 -04:00
Al
e9a6ea1d72 [fix] default index path 2015-10-31 18:47:24 -04:00
Al
4a35c50f92 [fix] index paths 2015-10-31 18:30:53 -04:00
Al
c54fb412a3 [fix] save_index 2015-10-31 17:59:44 -04:00
Al
0227d9335f [fix] Removing some debug code 2015-10-31 14:50:32 -04:00
Al
5882c2d64b [fix] command-line arg II 2015-10-31 14:25:17 -04:00
Al
66f8a2dc9e [fix] command-line arg 2015-10-31 14:24:23 -04:00
Al
e5d8812504 [fix] argument default 2015-10-31 14:23:37 -04:00
Al
f39090869e [fix] imports 2015-10-31 14:22:45 -04:00
Al
8166cd66c8 [fix] encoding yet again 2015-10-31 14:19:50 -04:00