[OSM-talk] creating shapefile of postcodes

maning sambale emmanuel.sambale at gmail.com
Tue Sep 8 14:08:50 BST 2009


I already installed shapelib in ubunut jaunty and I still get the same error
python makeShapeColoured.py
/home/maning/gisrs/osm_postcode/combined_postcode.csv
Traceback (most recent call last):
  File "makeShapeColoured.py", line 34, in <module>
    import shapelib.shapelib as shp, shapelib.dbflib as dbf
ImportError: No module named shapelib.shapelib

Please help

On Tue, Sep 8, 2009 at 8:25 PM, maning
sambale<emmanuel.sambale at gmail.com> wrote:
> using the postcode-code, I get this error
>
> python makeShapeColoured.py -h
> Traceback (most recent call last):
>  File "makeShapeColoured.py", line 34, in <module>
>    import shapelib.shapelib as shp, shapelib.dbflib as dbf
> ImportError: No module named shapelib.shapelib
>
>
> On Tue, Sep 8, 2009 at 6:30 PM, John Smith<deltafoxtrot256 at gmail.com> wrote:
>> 2009/9/8 maning sambale <emmanuel.sambale at gmail.com>:
>>> I wanted to create a similar shapefile like this
>>> (http://old-dev.openstreetmap.org/~random/postcodes/) for my area.
>>> The first step is to extract postcodes in OSM.
>>> The problem there several postcode variations in the database
>>>
>>> addr:postcode
>>> postal_code
>>> is_in:zip
>>>
>>> Some are in node (POIs) others in ways (building).  Any advise on
>>> extracting this data as input to makeShapeColoured.py?
>>
>> The simple case is boundaries, you might be able to use info from POIs
>> to create a boundary but I wouldn't use them to generate a map like
>> that.
>>
>> is_in is being replaced with boundaries so you don't need to tag every
>> single node/way/relation with is_in same with addr:postcode I'm
>> guessing.
>>
>> All the postcode boundaries in Australia have been tagged as
>> postal_code and were that way before I became involved so I'm not sure
>> if this is the best tag to use or not but it was already in use and
>> will keep getting used for consistency reasons.
>>
>
>
>
> --
> cheers,
> maning
> ------------------------------------------------------
> "Freedom is still the most radical idea of all" -N.Branden
> wiki: http://esambale.wikispaces.com/
> blog: http://epsg4253.wordpress.com/
> ------------------------------------------------------
>



-- 
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------




More information about the talk mailing list