Thank you for imposm. It has made it very easy to get started with OSM and TileMill. Sorry for inflicting my newbie questions on the list so early in my acquaintance with imposm.
I'm trying to do some obsessive micro-mapping of waste and recycling facilities in my very local area. I added two custom classes the data mapper.
imposm read them and wrote the tables just fine. I found that one table is full of data, but the other is empty. The polygons all look the same and have very similar tags.
Below are the definitions for the classes and the tables.
I am stumped on this, I cannot for the life of my see why one set of polygons is importing while the other is not. How do I start going about debugging? (And if the answer is "stop modelling waste facilities as polygons, Jo" then I will accept that too
bins = Polygons(
name = 'bins',
mapping = {
'amenity': (
'waste_disposal',
),
}
)
recycling = Polygons(
name = 'recycling',
mapping = {
'amenity': ( 'recycling'),
},
)
Table "public.osm_new_bins"
Column | Type | Modifiers
----------+------------------------+-----------------------------------------------------------
id | integer | not null default nextval('osm_new_bins_id_seq'::regclass)
osm_id | bigint |
name | character varying(255) |
type | character varying(255) |
geometry | geometry |
Table "public.osm_new_recycling"
Column | Type | Modifiers
----------+------------------------+----------------------------------------------------------------
id | integer | not null default nextval('osm_new_recycling_id_seq'::regclass)
osm_id | bigint |
name | character varying(255) |
type | character varying(255) |
geometry | geometry |
osm=# select count(*) from osm_new_bins;
count
-------
12
(1 row)
osm=# select count(*) from osm_new_recycling;
count
-------
0
(1 row)
(the area i am looking at is here)
http://www.openstreetmap.org/?lat=55.941669&lon=-3.175577&zoom=18&layers=M#