Data mapper importing some polygons, but not other very similar ones

42 views
Skip to first unread message

Jo Walsh

unread,
Mar 4, 2013, 4:56:45 PM3/4/13
to imp...@googlegroups.com
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#



Roger André

unread,
Mar 4, 2013, 5:04:55 PM3/4/13
to imp...@googlegroups.com
Hey Jo,

I just learned about the debug option the other day,

--debug

Running it will provide output like this that can help you troubleshoot:
[16:14:38] ## writing data
[2013-02-28 16:14:38,673] imposm.multipolygon - DEBUG - linestrings from relation 411923 do not form a ring
[2013-02-28 16:14:38,674] imposm.dbimporter - DEBUG - linestrings from relation 411923 do not form a ring
[2013-02-28 16:14:38,690] imposm.multipolygon - DEBUG - linestrings from relation 450729 do not form a ring
[2013-02-28 16:14:38,690] imposm.dbimporter - DEBUG - linestrings from relation 450729 do not form a ring

Roger
--




--
--
_______________________________________________
Imposm mailing list
imp...@googlegroups.com
http://groups.google.com/group/imposm
 
---
You received this message because you are subscribed to the Google Groups "imposm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to imposm+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages