Re: [Talk-GB] Postcodes

2019-01-25 Thread Mark Goodge



On 25/01/2019 17:30, Jack FitzSimons via Talk-GB wrote:


I've noticed that many bank branches have a unique postcode while the 
shops either side of them all share a single postcode. When the bank 
branch closes (as so many do these days) the unique postcode finds its 
way on to Robert's old postal district list. A new occupant of the bank 
premises is likely to be given the same postcode as the other shops 
nearby. Do we need to retain the old postcode for any historical 
purpose? If so we probably also need to tag that this building was once 
a bank but if we do that for every previous occupant of every shop 
things would soon get out of hand!  While the bank is empty and, hence, 
no longer listed on the PAF, is it better to retain the old postcode or 
delete it and show no postcode for that building?


Those would be "large user" postcodes, assigned to recipients that get a 
lot of mail. A large user postcode is assigned to the organisation, not 
the premises, so if the organisation leaves the premises then the 
postcode either moves with them or becomes unassigned. So the correct 
thing to do, in your scenario, would be to either blank out the postcode 
or, by interpolation, change it to be the same as those either side.


I'm not sure if CodePoint Open includes a field showing whether a 
postcode is large user or not, but the ONS Postcode Database (which is 
also OGL, so compatible with OSM) does. So you can check against that if 
necessary. Another advantage of ONSPD over Codepoint Open is that it 
includes deleted postcodes (with a deletion date), which is handy for 
cross-referencing your other scenario of postcodes that have changed but 
where an old one is still displayed on company literature.


Mark

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2019-01-25 Thread Gregrs

Hi Jack,

On Fri, Jan 25, 2019 at 05:30:41PM +, Jack FitzSimons via Talk-GB wrote:

What if one of those sources (say FHRS) shows the correct postcode but 
more obvious sources (e.g. the company website) shows an old postcode? 
I can use the correct postcode but it is likely to be changed back to a 
wrong one by a mapper who has only found the obvious source.


I don't have answers to all your questions but it might be worth 
mentioning that the not:addr:postcode tag can be useful to record 
incorrect postcodes. I usually pair this with the note tag to explain my 
choice of correct postcode.


The FHRS/OSM comparison tool at 
https://gregrs.dev.openstreetmap.org/fhrs/ makes use of this tag so that 
FHRS establishments can still be successfully matched with OSM entities 
even when the FHRS postcode is incorrect, which does happen on occasion.


Thanks,
Greg

--
Twitter: @gregrs_uk
http://gregrs.dev.openstreetmap.org
PGP key ID: 64907C8A
Fingerprint: EBD1 077F CCDD 841E A505 3FAA D2E8 592E 6490 7C8A



signature.asc
Description: PGP signature
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2019-01-25 Thread fitzsimons via Talk-GB
The post wasn't intended to be anonymous. Apologies
Jack



--
Sent from: http://gis.19327.n8.nabble.com/Great-Britain-f5372682.html

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread ndrw6

On 09/11/2018 19:49, Chris Hill wrote:
I maintain a GB postcode overlay, based on the Codepoint Open 
datasets. This was last updated using the August 2018 data. I expect 
another update shortly. You can see postcodes on a map I provide or 
use the overlay tiles in your favourite editor. More details can be 
found here:


This is a fantastic resource, thank you for making and maintaining it. 
I've been using it for a couple of weeks and almost enjoyed tagging 
postcodes! Sadly, osm.org doesn't seem to make use of addr:postcode tags 
and maps.me is painfully slow when searching for them. But that's a bit 
of a chicken and egg problem, I guess, as there are still not many 
postcodes in the database.


I found it useful to highlight buildings and nodes tagged with 
addr:postcode. Otherwise it is very easy to lose track of what building 
have already been tagged. Below is a JOSM map paint style that does that 
and displays the existing postcodes:


https://pastebin.com/raw/RxKNky3E



If you find any problems please let me know.


Not really problems but:

- Overlapping labels can be difficult to read. Perhaps the script could 
detect co-located postcodes and concatenate them.


- After the update some postcodes point to different buildings (likely 
centroids have changed and snapping function produces a different 
result). That could be a feature. It would be good to have a 
simultaneous access to all versions of tiles.


I also maintain a postcode layer based on the Office of National 
Statistics OGL postcode data (ONSPD). There is currently a problem 
with the way the tiles are generated, which I'm addressing. I believe 
Codepoint Open and ONSPD are pretty much identical with the current 
postcodes, but there is much more historical data in the ONSPD data.


It would be great to have e.g. a JOSM plugin combining address 
information from open sources and making it easy (ideally with a single 
click) to annotate postcodes and/or street names.


Many thanks,

ndrw6


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Chris Hill



On 09/11/2018 09:38, Tom Hughes wrote:

On 09/11/2018 09:09, Phoenix830 wrote:

I want to add postcodes but I am aware of issues with this being 
copyrighted material.


I maintain a GB postcode overlay, based on the Codepoint Open datasets. 
This was last updated using the August 2018 data. I expect another 
update shortly. You can see postcodes on a map I provide or use the 
overlay tiles in your favourite editor. More details can be found here:


https://codepoint.raggedred.net/ .

I don't agree with either adding the postcode centroids themselves to 
OSM, nor adding postcodes to roads. They are all about delivery points 
not roads. If I find postcode centroids in OSM I routinely delete them.


There are roughly 1.7 million postcodes in GB (the Northern Ireland 
postcodes are not released as opendata). I find that new postcodes are 
created early in the development cycle of new building developments so a 
new postcode exists often before buildings have even been started to be 
built.


If you find any problems please let me know.

I also maintain a postcode layer based on the Office of National 
Statistics OGL postcode data (ONSPD). There is currently a problem with 
the way the tiles are generated, which I'm addressing. I believe 
Codepoint Open and ONSPD are pretty much identical with the current 
postcodes, but there is much more historical data in the ONSPD data.


--
cheers
Chris Hill (chillly)


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread David Woolley

On 09/11/18 16:27, Will Phillips wrote:
Sources such as Companies House don't validate their addresses, so this 
total will certainly include some proportion that are incorrect.


Most sources that do validate ask the user for the postcode an then to 
select the address from the valid ones on the list.  I would say that 
such sources were tainted.


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Robert Whittaker (OSM lists)
On Fri, 9 Nov 2018 at 17:08, Adam Snape  wrote:
> My conclusion from this is that we can safely map postcodes to the building 
> where their centroids are placed, perhaps avoiding doing so (or adding 
> FIXMEs) on brand new developments.

There is one gotcha to that, which is that PO box addresses, and some
other large user "non-geographic" postcodes are geo-located in
Code-Point Open to the Royal Mail Delivery / Sorting office that
handles that postcode's mail. You don't want to be adding those
postcodes to the Royal Mail depot.

I've got a visualisation of the postcode centroids from Code-Point
open at https://osm.mathmos.net/addresses/pc-stats/ which can be
helpful for mapping. Once you get your eye in and get used to how
postcodes are assigned, you can often (though by no means always)
deduce from the centroid, the layout of buildings, and the locations
of the surrounding centroids, what set of houses/buildings belongs to
each postcode. The blog post at
http://sk53-osm.blogspot.com/2013/12/british-postcodes-on-openstreetmap.html
(already mentioned above) is a useful read in this respect.

Robert.

-- 
Robert Whittaker

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Adam Snape
Hi

To clarify the question I was asking earlier, this is what the OS say:

"Code-Point Open is created by taking the average of the coordinates of all
the individual addresses in a postcode (provided we have any of sufficient
quality), then snapping to the nearest of those addresses. Code-Point Open
then delivers the coordinates of that address, as representative of the
whole postcode, to a resolution of 1 metre.

The accuracy of a Code-Point Open record could be expressed as, that the
coordinated position will always be within the notional geographical extent
of the postcode."

They do also note that centroids for new postcodes where the buildings
themselves have yet to be surveyed will be given a temporary approximate
position which should be noted as such in the metadata.

My conclusion from this is that we can safely map postcodes to the building
where their centroids are placed, perhaps avoiding doing so (or adding
FIXMEs) on brand new developments.

Kind regards,

Adam

On Fri, 9 Nov 2018, 14:45 SK53  I'm pretty sure that the "centroid" is allocated to the nearest delivery
> point in the postcode which places it over a building. See my (now rather)
> old blog post
> 
> from 2013, and the note by Jenni Tennison. A caveat is, of course, that the
> Land Registry Prices Paid data proved to be an open data mirage.
>
> Please remember that Nominatim has a table (not recently updated) of all
> postcode centroid which are used for searches. These usually show as AB10
> 2## or similar and are at a lowish zoom level.
>
> Judging by taginfo stats we now have around 8-10% of all postcodes mapped,
> and Robert Whittaker's site suggests
>  over 10%, so better than in
> 2013, but nowhere near the level we could get if we adopted a sustained
> campaign to use what information we have.
>
> Personally, I add addr:postcode to streets when: a) it is clear that all
> properties share a postcode, but individual properties have not been
> mapped; and b) when the local authority includes the full postcode on the
> streetname sign (e.g., Gedling & Rushcliffe). In the former case this
> should be regarded as an iterative step towards the desired position of
> individually mapped addresses; in the latter it reflects an on-the-ground
> rule.
>
> The available sets of open data which can be used to resolve postcodes
> are: Food Hygiene (the best, easiest to resolve, coverage of the whole UK -
> even Rutland); Companies House Open Data (surprisingly useful even in areas
> of social housing); the National Register of Social Housing (NROSH, not
> updated since 2011, but still very useful); CQC (medical practices, care
> homes etc). I haven't looked to see how many postcodes are covered by these
> in total, but it should be a reasonable proportion of the total. If you
> aren't aware Will Phillips OSM-Nottingham site does allow searching of
> various open data sets across the UK (I would recommend searching only in
> the viewport, so you need to zoom out and in to the target area). The
> quickest way to ensure at least one address is mapped for a given postcode
> is using Greg's FHRS tools.
>
> Jerry
>
> On Fri, 9 Nov 2018 at 13:44, Adam Snape  wrote:
>
>> Hi,
>>
>> I ask because the 'centroids' do not appear to be centroids in a pure
>> mathematical sense, they always appear to be placed on a building, never in
>> open space. Now, if this were merely been done by attributing the centroid
>> to the nearest building regardless of whether it actually belongs to the
>> postcode or not, it would serve no purpose. It seems far more likely that
>> it would be attributed to the nearest building belonging to that postcode.
>> If this is the case then it gives us a way of tying these centroids to an
>> actual building within each postcode area and that gives us something
>> tangible to map. Can anybody suggest whether I'm onto something here?
>>
>> Kind regards,
>>
>> Adam
>>
>> On Fri, 9 Nov 2018 at 13:27, David Woolley 
>> wrote:
>>
>>> If centroid has the plain (mathematical) meaning of the word, it will
>>> only fall exactly on the building centre if there is only one building
>>> in the postcode area.
>>>
>>> In practice the building nearest the centroid might have its own
>>> postcode, so you can't rely on the nearest building to the centroid
>>> having that postcode.
>>>
>>> There are, at least theoretically (e.g. a C shaped postcode) where the
>>> centroid is in an adjoining postcode.  I imagine you would get this if
>>> there was a cul-de-sac projecting into a crescent that was small enough
>>> to have one post code.
>>>
>>> On 09/11/18 13:12, Adam Snape wrote:
>>> > Hi,
>>> >
>>> > I agree with not mapping the centroids but...
>>> >
>>> > Is it the case that the centroids are always placed on a building
>>> which
>>> > falls under that postcode? If so, wouldn't it be okay to tag the
>>> > building with the 

Re: [Talk-GB] Postcodes

2018-11-09 Thread Will Phillips

On 09/11/2018 14:44, SK53 wrote:
The available sets of open data which can be used to resolve postcodes 
are: Food Hygiene (the best, easiest to resolve, coverage of the whole 
UK - even Rutland); Companies House Open Data (surprisingly useful 
even in areas of social housing); the National Register of Social 
Housing (NROSH, not updated since 2011, but still very useful); CQC 
(medical practices, care homes etc). I haven't looked to see how many 
postcodes are covered by these in total, but it should be a reasonable 
proportion of the total. If you aren't aware Will Phillips 
OSM-Nottingham site does allow searching of various open data sets 
across the UK (I would recommend searching only in the viewport, so 
you need to zoom out and in to the target area). The quickest way to 
ensure at least one address is mapped for a given postcode is using 
Greg's FHRS tools.


The datasets used by OSM Nottingham currently include 1,278,680 unique 
postcodes. I've not checked how many of these are valid postcodes. 
Sources such as Companies House don't validate their addresses, so this 
total will certainly include some proportion that are incorrect.


There are 1.76 million postcodes in the UK (from Codepoint), so the open 
data covers at most 73% of the total.


Regards,
Will





___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread SK53
I'm pretty sure that the "centroid" is allocated to the nearest delivery
point in the postcode which places it over a building. See my (now rather)
old blog post

from 2013, and the note by Jenni Tennison. A caveat is, of course, that the
Land Registry Prices Paid data proved to be an open data mirage.

Please remember that Nominatim has a table (not recently updated) of all
postcode centroid which are used for searches. These usually show as AB10
2## or similar and are at a lowish zoom level.

Judging by taginfo stats we now have around 8-10% of all postcodes mapped,
and Robert Whittaker's site suggests
 over 10%, so better than in
2013, but nowhere near the level we could get if we adopted a sustained
campaign to use what information we have.

Personally, I add addr:postcode to streets when: a) it is clear that all
properties share a postcode, but individual properties have not been
mapped; and b) when the local authority includes the full postcode on the
streetname sign (e.g., Gedling & Rushcliffe). In the former case this
should be regarded as an iterative step towards the desired position of
individually mapped addresses; in the latter it reflects an on-the-ground
rule.

The available sets of open data which can be used to resolve postcodes are:
Food Hygiene (the best, easiest to resolve, coverage of the whole UK - even
Rutland); Companies House Open Data (surprisingly useful even in areas of
social housing); the National Register of Social Housing (NROSH, not
updated since 2011, but still very useful); CQC (medical practices, care
homes etc). I haven't looked to see how many postcodes are covered by these
in total, but it should be a reasonable proportion of the total. If you
aren't aware Will Phillips OSM-Nottingham site does allow searching of
various open data sets across the UK (I would recommend searching only in
the viewport, so you need to zoom out and in to the target area). The
quickest way to ensure at least one address is mapped for a given postcode
is using Greg's FHRS tools.

Jerry

On Fri, 9 Nov 2018 at 13:44, Adam Snape  wrote:

> Hi,
>
> I ask because the 'centroids' do not appear to be centroids in a pure
> mathematical sense, they always appear to be placed on a building, never in
> open space. Now, if this were merely been done by attributing the centroid
> to the nearest building regardless of whether it actually belongs to the
> postcode or not, it would serve no purpose. It seems far more likely that
> it would be attributed to the nearest building belonging to that postcode.
> If this is the case then it gives us a way of tying these centroids to an
> actual building within each postcode area and that gives us something
> tangible to map. Can anybody suggest whether I'm onto something here?
>
> Kind regards,
>
> Adam
>
> On Fri, 9 Nov 2018 at 13:27, David Woolley 
> wrote:
>
>> If centroid has the plain (mathematical) meaning of the word, it will
>> only fall exactly on the building centre if there is only one building
>> in the postcode area.
>>
>> In practice the building nearest the centroid might have its own
>> postcode, so you can't rely on the nearest building to the centroid
>> having that postcode.
>>
>> There are, at least theoretically (e.g. a C shaped postcode) where the
>> centroid is in an adjoining postcode.  I imagine you would get this if
>> there was a cul-de-sac projecting into a crescent that was small enough
>> to have one post code.
>>
>> On 09/11/18 13:12, Adam Snape wrote:
>> > Hi,
>> >
>> > I agree with not mapping the centroids but...
>> >
>> > Is it the case that the centroids are always placed on a building which
>> > falls under that postcode? If so, wouldn't it be okay to tag the
>> > building with the appropriate postcode?
>> >
>> > Another idea: Given that postcodes (with few exceptrions) apply to only
>> > one street, would it be acceptable to add the postcode tag to the
>> street
>> > where there is only one centroid on the street?
>> >
>> > Kind regards,
>> >
>> > Adam
>> >
>> > On Fri, 9 Nov 2018 at 12:26, Tom Hughes > > > wrote:
>> >
>> > On 09/11/2018 11:44, David Woolley wrote:
>> >  > On 09/11/18 11:34, David Woolley wrote:
>> >  >> if you are only dealing with centroids, I think many have been
>> > mapped
>> >  >> already,
>> >  >
>> >  > > >
>> >  > indicates that at least 2500 have been mapped.
>> >
>> > Yes, but it's a stupid idea, so please don't...
>> >
>> > Tom
>> >
>> > --
>> > Tom Hughes (t...@compton.nu )
>> > http://compton.nu/
>> >
>> > ___
>> > Talk-GB mailing list
>> > Talk-GB@openstreetmap.org 
>> > https://lists.openstreetmap.org/listinfo/talk-gb

Re: [Talk-GB] Postcodes

2018-11-09 Thread Adam Snape
Hi,

I'm not on about extrapolating postcodes for other buildings on a street,
but we should be able to map the postcode of building on which the centroid
is placed, shouldn't we? Zooming in should allow us to see which building a
centroid is on.

Kind regards,

Adam

On Fri, 9 Nov 2018 at 13:44, Philip Barnes  wrote:

> On Fri, 2018-11-09 at 13:26 +, David Woolley wrote:
> > If centroid has the plain (mathematical) meaning of the word, it
> > will
> > only fall exactly on the building centre if there is only one
> > building
> > in the postcode area.
> >
> > In practice the building nearest the centroid might have its own
> > postcode, so you can't rely on the nearest building to the centroid
> > having that postcode.
> >
> > There are, at least theoretically (e.g. a C shaped postcode) where
> > the
> > centroid is in an adjoining postcode.  I imagine you would get this
> > if
> > there was a cul-de-sac projecting into a crescent that was small
> > enough
> > to have one post code.
> >
> I live in such a road, it is big enough to have different postcodes for
> odd and even numbers. The two centoids are very close together and it
> would not be possible to determine which is which without local
> knowledge.
>
> Phil (trigpoint)
>
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb
>
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Adam Snape
Hi,

I ask because the 'centroids' do not appear to be centroids in a pure
mathematical sense, they always appear to be placed on a building, never in
open space. Now, if this were merely been done by attributing the centroid
to the nearest building regardless of whether it actually belongs to the
postcode or not, it would serve no purpose. It seems far more likely that
it would be attributed to the nearest building belonging to that postcode.
If this is the case then it gives us a way of tying these centroids to an
actual building within each postcode area and that gives us something
tangible to map. Can anybody suggest whether I'm onto something here?

Kind regards,

Adam

On Fri, 9 Nov 2018 at 13:27, David Woolley 
wrote:

> If centroid has the plain (mathematical) meaning of the word, it will
> only fall exactly on the building centre if there is only one building
> in the postcode area.
>
> In practice the building nearest the centroid might have its own
> postcode, so you can't rely on the nearest building to the centroid
> having that postcode.
>
> There are, at least theoretically (e.g. a C shaped postcode) where the
> centroid is in an adjoining postcode.  I imagine you would get this if
> there was a cul-de-sac projecting into a crescent that was small enough
> to have one post code.
>
> On 09/11/18 13:12, Adam Snape wrote:
> > Hi,
> >
> > I agree with not mapping the centroids but...
> >
> > Is it the case that the centroids are always placed on a building which
> > falls under that postcode? If so, wouldn't it be okay to tag the
> > building with the appropriate postcode?
> >
> > Another idea: Given that postcodes (with few exceptrions) apply to only
> > one street, would it be acceptable to add the postcode tag to the street
> > where there is only one centroid on the street?
> >
> > Kind regards,
> >
> > Adam
> >
> > On Fri, 9 Nov 2018 at 12:26, Tom Hughes  > > wrote:
> >
> > On 09/11/2018 11:44, David Woolley wrote:
> >  > On 09/11/18 11:34, David Woolley wrote:
> >  >> if you are only dealing with centroids, I think many have been
> > mapped
> >  >> already,
> >  >
> >  > 
> >  > indicates that at least 2500 have been mapped.
> >
> > Yes, but it's a stupid idea, so please don't...
> >
> > Tom
> >
> > --
> > Tom Hughes (t...@compton.nu )
> > http://compton.nu/
> >
> > ___
> > Talk-GB mailing list
> > Talk-GB@openstreetmap.org 
> > https://lists.openstreetmap.org/listinfo/talk-gb
> >
> >
> >
> > ___
> > Talk-GB mailing list
> > Talk-GB@openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk-gb
> >
>
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb
>
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Philip Barnes
On Fri, 2018-11-09 at 13:26 +, David Woolley wrote:
> If centroid has the plain (mathematical) meaning of the word, it
> will 
> only fall exactly on the building centre if there is only one
> building 
> in the postcode area.
> 
> In practice the building nearest the centroid might have its own 
> postcode, so you can't rely on the nearest building to the centroid 
> having that postcode.
> 
> There are, at least theoretically (e.g. a C shaped postcode) where
> the 
> centroid is in an adjoining postcode.  I imagine you would get this
> if 
> there was a cul-de-sac projecting into a crescent that was small
> enough 
> to have one post code.
> 
I live in such a road, it is big enough to have different postcodes for
odd and even numbers. The two centoids are very close together and it
would not be possible to determine which is which without local
knowledge.

Phil (trigpoint)


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Adam Snape
Hi,

I agree with not mapping the centroids but...

Is it the case that the centroids are always placed on a building which
falls under that postcode? If so, wouldn't it be okay to tag the building
with the appropriate postcode?

Another idea: Given that postcodes (with few exceptrions) apply to only one
street, would it be acceptable to add the postcode tag to the street where
there is only one centroid on the street?

Kind regards,

Adam

On Fri, 9 Nov 2018 at 12:26, Tom Hughes  wrote:

> On 09/11/2018 11:44, David Woolley wrote:
> > On 09/11/18 11:34, David Woolley wrote:
> >> if you are only dealing with centroids, I think many have been mapped
> >> already,
> >
> > 
> > indicates that at least 2500 have been mapped.
>
> Yes, but it's a stupid idea, so please don't...
>
> Tom
>
> --
> Tom Hughes (t...@compton.nu)
> http://compton.nu/
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb
>
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Tom Hughes

On 09/11/2018 11:44, David Woolley wrote:

On 09/11/18 11:34, David Woolley wrote:
if you are only dealing with centroids, I think many have been mapped 
already,


 
indicates that at least 2500 have been mapped.


Yes, but it's a stupid idea, so please don't...

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Dan S
Op vr 9 nov. 2018 om 10:41 schreef Paul Berry :
>
> Would the etiquette here be to tag the objects with source=local knowledge if 
> you happen to know the postcode without looking it up (or it's on signage, 
> etc)?

Hi - two slightly different things in your question there - the
convention is, as far as I understand it, to use
source=local_knowledge if you happen to know it from being there
yourself or a local tells you, and source=survey if you see it on
signage.

As far as I know, there's some disagreement about whether and how
"disembodied" postcodes should be added, but I do often add postcodes
e.g. on specific shops or addresses where I've got it first-hand (e.g.
from the shop window)

Best
Dan


> On Fri, 9 Nov 2018 at 09:38, Tom Hughes  wrote:
>>
>> On 09/11/2018 09:09, Phoenix830 wrote:
>>
>> > I want to add postcodes but I am aware of issues with this being
>> > copyrighted material.
>>
>> Add them to what exactly?
>>
>> > I have come across https://postcodes.io which states it is from open
>> > sources. I have contacted them here
>> > https://ideal-postcodes-support.herokuapp.com/channel/support .
>> >
>> > They have confirmed that this data is released under the Open Government
>> > Licence
>> > http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/ .
>>
>> That data set only gives a centroid for each post code though, it
>> doesn't tell you what postcode a particular building has.
>>
>> > I am not bulk adding these (I do not have the technical knowledge or
>> > time) I am just adding postcodes to properties as I add them.
>>
>> So how are you working out which postcode to use? Sometimes it is
>> fairly obvious from the centroid location but it often isn't.
>>
>> Tom
>>
>> --
>> Tom Hughes (t...@compton.nu)
>> http://compton.nu/
>>
>> ___
>> Talk-GB mailing list
>> Talk-GB@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk-gb
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread David Woolley

On 09/11/18 11:34, David Woolley wrote:
if you are only dealing with centroids, I think many have been mapped 
already,


 
indicates that at least 2500 have been mapped.


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread David Woolley

On 09/11/18 09:09, Phoenix830 wrote:
They have confirmed that this data is released under the Open Government 
Licence 
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/ .





There is a gotcha in the OGL regarding restricted upstream sources, so 
OGL is probably not enough.  In any case, if you are only dealing with 
centroids, I think many have been mapped already, and, if not, you 
should use the OS Open Data source for those, not take them from a site 
whose business model depends on accumulating their own database of 
detailed postcode information.


As pointed out, you cannot say that a particular property has a 
particular postcode just because the nearest postcode centroid has that 
postcode.  You need to individually verify each property.




___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Paul Berry
Would the etiquette here be to tag the objects with *source=local knowledge*
if you happen to know the postcode without looking it up (or it's on
signage, etc)?

Regards,
*Paul*

On Fri, 9 Nov 2018 at 09:38, Tom Hughes  wrote:

> On 09/11/2018 09:09, Phoenix830 wrote:
>
> > I want to add postcodes but I am aware of issues with this being
> > copyrighted material.
>
> Add them to what exactly?
>
> > I have come across https://postcodes.io which states it is from open
> > sources. I have contacted them here
> > https://ideal-postcodes-support.herokuapp.com/channel/support .
> >
> > They have confirmed that this data is released under the Open Government
> > Licence
> >
> http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/
>  .
>
> That data set only gives a centroid for each post code though, it
> doesn't tell you what postcode a particular building has.
>
> > I am not bulk adding these (I do not have the technical knowledge or
> > time) I am just adding postcodes to properties as I add them.
>
> So how are you working out which postcode to use? Sometimes it is
> fairly obvious from the centroid location but it often isn't.
>
> Tom
>
> --
> Tom Hughes (t...@compton.nu)
> http://compton.nu/
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb
>
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2018-11-09 Thread Tom Hughes

On 09/11/2018 09:09, Phoenix830 wrote:

I want to add postcodes but I am aware of issues with this being 
copyrighted material.


Add them to what exactly?

I have come across https://postcodes.io which states it is from open 
sources. I have contacted them here 
https://ideal-postcodes-support.herokuapp.com/channel/support .


They have confirmed that this data is released under the Open Government 
Licence 
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/ .


That data set only gives a centroid for each post code though, it
doesn't tell you what postcode a particular building has.

I am not bulk adding these (I do not have the technical knowledge or 
time) I am just adding postcodes to properties as I add them.


So how are you working out which postcode to use? Sometimes it is
fairly obvious from the centroid location but it often isn't.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


[Talk-GB] Postcodes

2018-11-09 Thread Phoenix830
Hello
I have started added properties in my local area from my own knowledge. Either 
gathered from my own residing or from friends and from lots of walks.
I want to add postcodes but I am aware of issues with this being copyrighted 
material.
I have come across https://postcodes.io which states it is from open sources. I 
have contacted them here 
https://ideal-postcodes-support.herokuapp.com/channel/support .
They have confirmed that this data is released under the Open Government 
Licence 
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/ .
I understand the complications will be huge if I use the wrong data source so I 
simply want clarification if the postcodes found on this site would be safe and 
legal to do so.
I am not bulk adding these (I do not have the technical knowledge or time) I am 
just adding postcodes to properties as I add them.
Kind Regards___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2016-12-06 Thread Robert Whittaker (OSM lists)
On 5 December 2016 at 20:19, Dave Barter  wrote:
> Excuse the noob question as I’ve not been on the list long.
>
> I’m doing a bit of work trying to create an open version of the OS Codepoint 
> Polygons. To do this I need as much postcode data as possible. I’ve been 
> looking at extracting this from OSM and as far as I can tell I’m looking for 
> the following tags:-
>
> -addr:postal_code
> -addr:postcode
> -postal_code
> -postcode
>
> Are there any others I’m missing? And I guess I am (sadly) right in thinking 
> there is not a huge amount of data in there, circa 40-50k records?

addr:postcode is the most common tag. postal_code is still used a lot,
particularly as a hangover from edits made before the addr:* tags were
introduced. Though some may continue to use it in a slightly different
context. postcode=* and addr:postal_code=* have far fewer uses, and
are probably only used by mistake.

From just addr:postcode alone, there are around 725k objects tagged
with around 111k different postcode values in Great Britain (excluding
NI) and some surrounding islands. See
http://taginfo.openstreetmap.org.uk/keys/addr%3Apostcode for the
stats. That's still quite a way off the 28 million addresses and 1.7
million postcodes in AddressBase/PAF. Not all the postcodes in OSM are
complete or accurate though -- see my tools at
http://robert.mathmos.net/osm/postcodes/osm-errors.html and
http://robert.mathmos.net/osm/postcodes/location-errors.cgi .

Robert.

-- 
Robert Whittaker

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2016-12-05 Thread David Woolley

On 05/12/16 20:19, Dave Barter wrote:

-addr:postal_code
-addr:postcode
-postal_code
-postcode


Used correctly, postal_code won't tell you much, as it is only basically 
the outbound part as used to qualify the names of streets and pillar 
boxes.  It should never contain a full code.


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2016-12-05 Thread SK53
You may also not be aware of Geolytix set of postcode areas/districts &
sectors which is built from the ONS data and other OS OpenData sets:
https://www.geolytix.co.uk/ look in Geodata menu.

You also have to process the centroids to remove very noisy data (RM
Delivery centres, some local govt offices, some businesses) where many
postcodes share a centroid. Also be aware of oddities such as NG80 & NG90
(& formerly I think L99) for businesses with high mail volumes (Boots,
Experian & the Liverpool pools companies).

There are algorithms to assign postcodes to roads which work for roads with
only one postcode or two postcodes for evens/odds. This would have been a
lot easier if the Land Registry Prices Paid data did not turn out to be
tainted. 3 datasets which do help are Companies House, FHRS & National
Register of Social Housing, but I'd be surprised if this covered more than
30% of postcodes in E Obviously many centroids can be assigned
provisionally to a road just by using st_shortestline, but quite a lot of
iteration is required to deal with the errors.

Once assigned to roads buffers can be used to approximate geometries, but
more work & iteration to then tessellate the country. Always the
fly-in-the-ointment is that a postcode is not a true polygon but a
collection of delivery points, so it's actually fairly meaningless to place
a road lacking any addresses with a given postcode.

Jerry

On 5 December 2016 at 20:32, Chris Hill  wrote:

> On 05/12/16 20:19, Dave Barter wrote:
>
>> Excuse the noob question as I’ve not been on the list long.
>>
>> I’m doing a bit of work trying to create an open version of the OS
>> Codepoint Polygons. To do this I need as much postcode data as possible.
>> I’ve been looking at extracting this from OSM and as far as I can tell I’m
>> looking for the following tags:-
>>
>> -addr:postal_code
>> -addr:postcode
>> -postal_code
>> -postcode
>>
>> Are there any others I’m missing? And I guess I am (sadly) right in
>> thinking there is not a huge amount of data in there, circa 40-50k records?
>>
>> Thanks
>> Dave
>>
>>
> Have you looked at the OS Opendata Codepoint? They are centroids, not
> polygons. You can see an overlay on OSM on my map here:
>
> http://oscompare.raggedred.net/?zoom=15=53.73731=-0.
> 48844=BFFTFF I have a simple overlay, that the map uses, too. More
> details here: http://codepoint.raggedred.net/
>
> There are Office of National Statistics postcode files too under Open Gov
> licence. They have the same active postcode centroids as Codepoint but with
> extra detail for each postcode and expired postcodes too.
>
> --
> Cheers, Chris (chillly)
>
>
> ___
> Talk-GB mailing list
> Talk-GB@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb
>
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2016-12-05 Thread Chris Hill

On 05/12/16 20:19, Dave Barter wrote:

Excuse the noob question as I’ve not been on the list long.

I’m doing a bit of work trying to create an open version of the OS Codepoint 
Polygons. To do this I need as much postcode data as possible. I’ve been 
looking at extracting this from OSM and as far as I can tell I’m looking for 
the following tags:-

-addr:postal_code
-addr:postcode
-postal_code
-postcode

Are there any others I’m missing? And I guess I am (sadly) right in thinking 
there is not a huge amount of data in there, circa 40-50k records?

Thanks
Dave



Have you looked at the OS Opendata Codepoint? They are centroids, not 
polygons. You can see an overlay on OSM on my map here:


http://oscompare.raggedred.net/?zoom=15=53.73731=-0.48844=BFFTFF 
I have a simple overlay, that the map uses, too. More details here: 
http://codepoint.raggedred.net/


There are Office of National Statistics postcode files too under Open 
Gov licence. They have the same active postcode centroids as Codepoint 
but with extra detail for each postcode and expired postcodes too.


--
Cheers, Chris (chillly)


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


[Talk-GB] Postcodes

2016-12-05 Thread Dave Barter
Excuse the noob question as I’ve not been on the list long.

I’m doing a bit of work trying to create an open version of the OS Codepoint 
Polygons. To do this I need as much postcode data as possible. I’ve been 
looking at extracting this from OSM and as far as I can tell I’m looking for 
the following tags:-

-addr:postal_code
-addr:postcode
-postal_code
-postcode

Are there any others I’m missing? And I guess I am (sadly) right in thinking 
there is not a huge amount of data in there, circa 40-50k records?

Thanks
Dave
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2014-06-11 Thread Shaun McDonald
Personally I’d say it’s better to place the postcode on the buildings, as they 
are delivery points, that the postcode relates to, whereas adding them to the 
street is both more complex, error prone and not tagging what the postcode 
actually relates to (i.e. the collection of delivery points).

Shaun

On 20 May 2014, at 00:33, Rob Nickerson rob.j.nicker...@gmail.com wrote:

 I personally put postcodes on buildings as in my two most common use cases 
 (getting something delivered to my house, and using my GPS to get somewhere) 
 I have become accustomed to being asked for a house number after supplying a 
 postcode.
 
 I guess that tagging the street works (although you may need to split it into 
 sections and add :right and :left tag extensions), but it's not something I 
 do. You mentioned the postman walking up the street - well I guess you could 
 say that the walk also includes the driveway up to the front of each 
 house/letterbox.
 
 Whether nominatim works or not is a search problem, not a mapping one (i.e. 
 not mapping for the nominatim).
 
 Rob
 ___
 Talk-GB mailing list
 Talk-GB@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/talk-gb


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes

2014-06-11 Thread Lester Caine
On 10/06/14 08:47, Shaun McDonald wrote:
 Personally I’d say it’s better to place the postcode on the buildings, as 
 they are delivery points, that the postcode relates to, whereas adding them 
 to the street is both more complex, error prone and not tagging what the 
 postcode actually relates to (i.e. the collection of delivery points).

Each building gets a postcode and building identity - number or name.
BUT NO STREET. The postcode is attached to the relevant street, which
then goes on to provide the additional location hierarchy. That the
street may have more than one postcode is not a problem as the location
of the buildings gives that fine detail. The problem is how to add
multiple postcodes to a single street object? Spliting the street where
 buildings lie on a sub section is one option, and since we are
splitting it for speed limits and other physical boundaries is a given,
but a 'relation' that combines all the elements of 'the street' and
would allow all of the higher level links to have a single target. This
opens the need to allow multiple copies of some tags on a single object?
Micro mapping would allow bother sides of a street to be mapped, and if
necessary, the correct postcode would tag each side, but the macro view
needs both postcodes on a macro view of the way.

 On 20 May 2014, at 00:33, Rob Nickerson rob.j.nicker...@gmail.com wrote:
 
 I personally put postcodes on buildings as in my two most common use cases 
 (getting something delivered to my house, and using my GPS to get somewhere) 
 I have become accustomed to being asked for a house number after supplying a 
 postcode.

 I guess that tagging the street works (although you may need to split it 
 into sections and add :right and :left tag extensions), but it's not 
 something I do. You mentioned the postman walking up the street - well I 
 guess you could say that the walk also includes the driveway up to the front 
 of each house/letterbox.

 Whether nominatim works or not is a search problem, not a mapping one (i.e. 
 not mapping for the nominatim).

-- 
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


[Talk-GB] Postcodes

2014-05-19 Thread Rob Nickerson
I personally put postcodes on buildings as in my two most common use cases
(getting something delivered to my house, and using my GPS to get
somewhere) I have become accustomed to being asked for a house number after
supplying a postcode.

I guess that tagging the street works (although you may need to split it
into sections and add :right and :left tag extensions), but it's not
something I do. You mentioned the postman walking up the street - well I
guess you could say that the walk also includes the driveway up to the
front of each house/letterbox.

Whether nominatim works or not is a search problem, not a mapping one (i.e.
not mapping for the nominatim).

Rob
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes to Shapefile

2011-03-18 Thread Jerry Clough : SK53 on OSM

On 18/03/2011 22:56, Kev js1982 wrote:
Resurrecting an old thread I know but with the NSPD Open data also 
being available allowing Northern Ireland to be generated and having 
access to an otherwise idle 64bit server I've taken the opportunity to 
revisit this, and have successfully created the shapefiles (it only 
took the server 12 days to generate the blighters - it managed to 
generate Z16 tiles for the whole of Europe and Z18 for the British 
Isles in just 36 hours - meh!) but now have one more obstacle to 
overcome...


The Veroni thingy obviously generates the tiles so they butt up 
against one another which works perfectly here in the landlocked East 
Midlands, but goes somewhat wrong in coastal areas (Fig 1).


My thought here is that the World Boundaries shape file can be used 
to trim the coastal boundaries to be locked to land so that the map 
looks nice (i.e. postcodes don't end up in the sea save for a little 
overlap on beaches) - Indeed if you add the World Boundaries file to 
Quantum GIS and use the Clip Tool you end up with what visually 
looks correct ( Fig. 3) but if you then hide the World Boundaries file 
the problem becomes obvious (Fig 2.)


What I want to know, is it possible to trim the postcode shapes so 
that nothing outside another set of shapes (i.e. the British Isles 
landmass) is included, but instead of leaving gaps the postcode shapes 
(e.g. FY3 1) are adjusted so that the line runs along the coast line?  
i.e. I would be left with something visually the same as Fig. 3 but 
with the coastlines part of the NNXX-X shapefile layer, and more 
specifically the correct polygon (e.g. the FY3 1 polygon).


Kev


Fig 1 - Postcode areas in south west Lancashire and the north Wales 
coast (green = NNXX-X shapefile, blackline and dotted area uses the 
worldboundaries file)

http://kjs.me.uk/3rdparty/osm/SouthWestLancs-NNXX-X.png

Fig 2 - After using Quantum GIS's Clip tool - 
http://kjs.me.uk/3rdparty/osm/SouthWestLancs-NNXX-X_trimmed.png


Fig 3 - After adding the World Boundaries back on. - 
SouthWestLancs-NNXX-X_trimmed_withwb.png


/Open Street Map data licenced under the Creative Commons 
Attribution-Share Alike 2.0 license 
http://creativecommons.org/licenses/by-sa/2.0/ by the OpenStreetMap 
http://openstreetmap.org// project and its contributors. /Maps 
contain Ordnance Survey OpenData 
http://www.ordnancesurvey.co.uk/oswebsite/opendata/ © Crown 
copyright and database right 2010./ /Postcode data in Great Britain is 
provided by Code-Point Open which contains Royal Mail data © Royal 
Mail copyright and database right 2010./ /Postcode data in Northern 
Ireland is from the NSPD Open 
http://www.ons.gov.uk/about-statistics/geography/products/geog-products-postcode/nspd/ 
which contains National Statistics data © Crown copyright and database 
right 2010. /


On Fri, Apr 30, 2010 at 12:30, Kev js1982 o...@kevswindells.eu 
mailto:o...@kevswindells.eu wrote:


Hi Dave,

Thanks for providing the shapefiles for download - they did the
job nicely.

One thing I have noticed (which also afflicts
random.dev.openstreetmap.org
http://random.dev.openstreetmap.org) is that a few postcode
area/districts are missing - namely

FY2 - (North Shore) Blackpool, Lancs
PE11 - Spalding, Lincs
PL17 - Callington, Cornwall

Using the code point download (which I got via the MySociety
mirror) shows that these postcodes do exist.

Also one of the AB ones (12 or 21 IIRC) for some reason includes
parts of Éire, Spain, Portugal and atlantic; while HS includes
Reykjavik

Just thought you'd like to know there is a possible error with the
conversion process.

Nice work though - been after a postcode map for a while, and to
go from an A5 diagram to full google maps goodness in one swoop
is awesome!

Regards

Kev Swindells.


On Mon, Apr 26, 2010 at 5:29 PM, Dave Stubbs
d...@randomjunk.co.uk mailto:d...@randomjunk.co.uk wrote:

On Mon, Apr 26, 2010 at 5:15 PM, Kev js1982
o...@kevswindells.eu mailto:o...@kevswindells.eu wrote:
 On Mon, Apr 26, 2010 at 5:00 PM, Kev js1982
o...@kevswindells.eu mailto:o...@kevswindells.eu wrote:

 Thanks for that Dave - really useful.

 One question though - which prj string/file do I need for
these?


 Answering my own question - looks to be Google Mercator.

 http://spatialreference.org/ref/sr-org/6627/

 Kev Swindells



Actually, for some obscure historical reason it's projected into
+proj=merc which is srs 3395.

Close to 900913, but not quite the same -- my mapnik stylesheet is
then set to reproject to google mercator for the tile generation.

Dave




___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb
You ought 

Re: [Talk-GB] Postcodes to Shapefile

2010-04-26 Thread Kev js1982
On Mon, Apr 26, 2010 at 12:00 PM, Kev js1982 o...@kevswindells.eu wrote:

 I am currently trying to create a series of shapefiles from postcodes
 (using OS Open Geo Data) using the code from Random Junk (
 http://random.dev.openstreetmap.org/postcodes/#) running on Ubuntu 9.10
 but I can't get it working.

 lots of blah blah about what I did...


Think i've sussed most of it...

I zapped my pyshapelib folder and downloaded both it and shapelib again

With the shapelib and pyshapelib tar gzs inside my osm folder I then issued
the following commands

tar -xvzf shapelib-1.2.10.tar.gz
mv shapelib-1.2.10 shapelib
tar -xvzf pyshapelib-0.3.tar.gz
mv pyshapelib-0.3 shapelib/pyshapelib/
cd shapelib
make
cd pyshapelib
python setup.py build
sudo python setup.py install
cd ../../
# The next line is really important if you want python to think this folder
has python scripts
touch shapelib/__init__.py
cp shapelib/pyshapelib/* shapelib/

This seamed to get over the original problem

Then you need to ensure you input file has no trailing lines

And now to work out why I'm getting

Traceback (most recent call last):
  File makeShapeColoured.py, line 349, in module
result = voronoi.computeVoronoiDiagram(pts)
  File /home/kev/osm/voronoi.py, line 746, in computeVoronoiDiagram
voronoi(siteList,context)
  File /home/kev/osm/voronoi.py, line 206, in voronoi
edge = Edge.bisect(bot,newsite)
  File /home/kev/osm/voronoi.py, line 404, in bisect
newedge.a = dx/dy
ZeroDivisionError: float division
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes to Shapefile

2010-04-26 Thread Dave Stubbs
On Mon, Apr 26, 2010 at 1:24 PM, Kev js1982 o...@kevswindells.eu wrote:
 On Mon, Apr 26, 2010 at 12:00 PM, Kev js1982 o...@kevswindells.eu wrote:

 I am currently trying to create a series of shapefiles from postcodes
 (using OS Open Geo Data) using the code from Random Junk
 (http://random.dev.openstreetmap.org/postcodes/#) running on Ubuntu 9.10 but
 I can't get it working.

 lots of blah blah about what I did...

 And now to work out why I'm getting

 Traceback (most recent call last):
   File makeShapeColoured.py, line 349, in module
     result = voronoi.computeVoronoiDiagram(pts)
   File /home/kev/osm/voronoi.py, line 746, in computeVoronoiDiagram
     voronoi(siteList,context)
   File /home/kev/osm/voronoi.py, line 206, in voronoi
     edge = Edge.bisect(bot,newsite)
   File /home/kev/osm/voronoi.py, line 404, in bisect
     newedge.a = dx/dy
 ZeroDivisionError: float division



These are caused by more than one postcode for the same point --
you'll need to preprocess the input files to remove any duplicates
coordinates. There's quite a lot of apparent PO boxes and other odd
postcodes in the OS data which result in duplicate points.

Also note that it'll use about 6GBs of RAM to run for the complete OS
dataset of 1.6 million points.

Dave

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes to Shapefile

2010-04-26 Thread Jerry Clough - OSM
GRASS seems to have some kind of Voronoi algorithm, but I find its interface 
very non-intuitive, so have not found it to try it out. This may be worth 
pursuing as an alternative route.

As an aside: I notice that virtually all postcode boundaries are obviously 
created in this way. For instance the Philips Street Atlas shows totally 
implausible boundaries along the River Trent in S. Notts. Given that postcode 
boundaries are ultimately determined by logistically sensible walks for 
postmen, in this case it's pretty safe to assume that the boundary is actually 
the river. What this means is that by applying a bit of local knowledge and the 
existing points it is possible to create better delineating zones in OSM than 
appear in current mapping. Whether this is a good thing to do, or not, I leave 
for others to decide.





From: Kev js1982 o...@kevswindells.eu
To: OSM - Talk GB talk-gb@openstreetmap.org
Sent: Mon, 26 April, 2010 12:24:26
Subject: Re: [Talk-GB] Postcodes to Shapefile


On Mon, Apr 26, 2010 at 12:00 PM, Kev js1982 o...@kevswindells.eu wrote:

I am currently trying to create a series of shapefiles from postcodes (using 
OS Open Geo Data) using the code from Random Junk 
(http://random.dev.openstreetmap.org/postcodes/#) running on Ubuntu 9.10 but I 
can't get it working.

lots of blah blah about what I did...


Think i've sussed most of it...

I zapped my pyshapelib folder and downloaded both it and shapelib again

With the shapelib and pyshapelib tar gzs inside my osm folder I then 
issued the following commands

tar -xvzf shapelib-1.2.10.tar.gz
mv shapelib-1.2.10 shapelib
tar -xvzf pyshapelib-0.3.tar.gz
mv pyshapelib-0.3 shapelib/pyshapelib/
cd shapelib
make
cd pyshapelib
python setup.py build
sudo python setup.py install
cd ../../
# The next line is really important if you want python to think this folder has 
python scripts
touch shapelib/__init__.py
cp shapelib/pyshapelib/* shapelib/

This seamed to get over the original problem

Then you need to ensure you input file has no trailing lines

And now to work out why I'm getting

Traceback (most recent call last):
  File makeShapeColoured.py, line 349, in module
result = voronoi.computeVoronoiDiagram(pts)
  File /home/kev/osm/voronoi.py, line 746, in computeVoronoiDiagram
voronoi(siteList,context)
  File /home/kev/osm/voronoi.py, line 206, in voronoi
edge = Edge.bisect(bot,newsite)
  File /home/kev/osm/voronoi.py, line 404, in bisect
newedge.a = dx/dy
ZeroDivisionError: float division 


  ___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes to Shapefile

2010-04-26 Thread Emilie Laffray
On 26 April 2010 15:13, Jerry Clough - OSM sk53_...@yahoo.co.uk wrote:

 GRASS seems to have some kind of Voronoi algorithm, but I find its
 interface very non-intuitive, so have not found it to try it out. This may
 be worth pursuing as an alternative route.

 As an aside: I notice that virtually all postcode boundaries are obviously
 created in this way. For instance the Philips Street Atlas shows totally
 implausible boundaries along the River Trent in S. Notts. Given that
 postcode boundaries are ultimately determined by logistically sensible walks
 for postmen, in this case it's pretty safe to assume that the boundary is
 actually the river. What this means is that by applying a bit of local
 knowledge and the existing points it is possible to create better
 delineating zones in OSM than appear in current mapping. Whether this is a
 good thing to do, or not, I leave for others to decide.


I think that GEOS has now implemented both voronoi and Delaunay
triangulation algorithms. I am not quite though that they have a Python
Binding. Some part of GEOS is expose through the GDAL binding, but it is
incomplete.

Emilie Laffray
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-09-14 Thread Dave Stubbs
On Mon, Aug 17, 2009 at 12:00 PM, Tom Chance t...@acrewoods.net wrote:

 Hi,

 I set about correcting a few dozen post code entries in NPE for south east
 London, but the postcodes map doesn't seem to be updating:

 http://dev.openstreetmap.org/~random/postcodes/?zoom=13lat=51.48557lon=-0.07888layers=B00T0F0F

 Have the hopefully weekly updates stopped? Any plans to restart them?

 Tom



OK, back up and running now.

Was updated lunch time today with the latest available geofabrik
great_britain extract.

It's now processing:

postal_code on nodes/ways
addr:postcode on nodes/ways
first part of ref on amenity=post_box nodes

Should hopefully continue to update now every Monday by about 14:30.


Dave

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-09-14 Thread Dave Stubbs
On Mon, Sep 14, 2009 at 3:51 PM, Dan Karran d...@karran.net wrote:
 2009/9/14 Dave Stubbs osm.l...@randomjunk.co.uk:

 OK, back up and running now.

 Thanks for getting that up and running again Dave.

 Would it be possible for you to include labels for the postal sectors
 on there as well, so that we can see which sector the polygons refer
 to?


There's actually more than a few bugs with those sectors because of
the number of partial postcodes. They mostly just make a mess at the
moment if you turn them on. I am planning on improving the algorithm
at some point so I might turn them on then.
They'd probably currently work for the IoM and NPE, but London on OSM
would be a disaster thanks to all the street sign partial postcodes
that have been entered.

Dave

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-09-14 Thread Jack Stringer
Is it possible to do another map with all the partials on it. That way we
can check them for errors as well. Don't worry if it takes too much effort.

Jack

On Sep 14, 2009 4:59 PM, Dave Stubbs osm.l...@randomjunk.co.uk wrote:

On Mon, Sep 14, 2009 at 3:51 PM, Dan Karran d...@karran.net wrote: 
2009/9/14 Dave Stubbs osm.lis...
There's actually more than a few bugs with those sectors because of
the number of partial postcodes. They mostly just make a mess at the
moment if you turn them on. I am planning on improving the algorithm
at some point so I might turn them on then.
They'd probably currently work for the IoM and NPE, but London on OSM
would be a disaster thanks to all the street sign partial postcodes
that have been entered.

Dave

___ Talk-GB mailing list
Talk-GB@openstreetmap.org http...
___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes on whois records?

2009-09-07 Thread James Davis
Gregory Williams wrote:
 I just happen to have looked up a whois record for a domain and it
 helpfully has the registrant’s physical address and postcode. OSM is
 always ticking away in the back of my mind, so I thought: I can
 physically get to that address quite easily for mapping purposes, so
 that postcode is helpful. I’m just wondering what the views of others
 are on using whois records as means for getting a little geo-located
 postcode data? The data in the record has probably been provided by the
 registrant and not inadvertently derived from a copyright source in my view.

It may be okay with other tld's but not within .uk - from nominet's
whois details...

This WHOIS information is provided for free by Nominet UK the central
registry for .uk domain names. This information and the .uk WHOIS are:

Copyright Nominet UK 1996 - 2009.

You may not access the .uk WHOIS or use any data from it except as
permitted by the terms of use available in full at
http://www.nominet.org.uk/whois, which includes restrictions on: (A) use
of the data for advertising, or its repackaging, recompilation,
redistribution or reuse (B) obscuring, removing or hiding any or all of
this notice and (C) exceeding query rate or volume limits. The data is
provided on an 'as-is' basis and may lag behind the register. Access may
be withdrawn or restricted at any time.

Regards,

James

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-08-20 Thread Andy Street
On Mon, 2009-08-17 at 13:27 +0100, Dave Stubbs wrote:
 On Mon, Aug 17, 2009 at 1:06 PM, Ciarán
 Mooneygeneral.moo...@googlemail.com wrote:
  Hi,
 
  Seen this map before, very cool. Do you use the postcode=* or
  add:postcode=* to pull out the areas?
 
 
 postal_code and addr:postcode taken from either nodes or ways -- they
 all get turned into points then it creates a giant voronoi diagram and
 pieces together polygons from continuous cells.
 
 There's lots of streets tagged postal_code in the UK (mostly with just
 the prefix from a street sign) and then recently there's lots of
 buildings and points tagged with addr:postcode so those are included
 too.
 
 There are layers for data from the NPE and FTP projects too.
 
 Last updated in May.
 
 Dave

When you find time to fix the map would it be possible to add post boxes
as an additional data source for the OSM layer?

Many thanks,

Andy


___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


[Talk-GB] Postcodes map moribund?

2009-08-17 Thread Tom Chance

Hi,

I set about correcting a few dozen post code entries in NPE for south east
London, but the postcodes map doesn't seem to be updating:

http://dev.openstreetmap.org/~random/postcodes/?zoom=13lat=51.48557lon=-0.07888layers=B00T0F0F

Have the hopefully weekly updates stopped? Any plans to restart them?

Tom

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-08-17 Thread Dave Stubbs
On Mon, Aug 17, 2009 at 12:00 PM, Tom Chancet...@acrewoods.net wrote:

 Hi,

 I set about correcting a few dozen post code entries in NPE for south east
 London, but the postcodes map doesn't seem to be updating:

 http://dev.openstreetmap.org/~random/postcodes/?zoom=13lat=51.48557lon=-0.07888layers=B00T0F0F

 Have the hopefully weekly updates stopped? Any plans to restart them?


Yes, the hopefulness wasn't enough :-(

Currently got an issue compiling mapnik on my dev box that generates
them.. some conflict with latest ubuntu... probably easy to fix just
haven't got round to it.
I do /plan/ to fix it... I just don't know when it'll happen :-)

Dave

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-08-17 Thread Ciarán Mooney
Hi,

Seen this map before, very cool. Do you use the postcode=* or
add:postcode=* to pull out the areas?

Ciarán

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb


Re: [Talk-GB] Postcodes map moribund?

2009-08-17 Thread Tom Chance

On Mon, 17 Aug 2009 12:53:52 +0100, Dave Stubbs wrote:
 Currently got an issue compiling mapnik on my dev box that generates
 them.. some conflict with latest ubuntu... probably easy to fix just
 haven't got round to it.
 I do /plan/ to fix it... I just don't know when it'll happen :-)

Aha, thanks for the update  good luck fixing it when you get around to it!
It's a very handy tool to check up on the data and to motivate better
tagging :-)

Tom

___
Talk-GB mailing list
Talk-GB@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb