Hi...can any one plz tell me, how can I get the polygon ID from coordinates for certain towns.Thank you. asked 02 Jul '13, 18:46 Uma Maheswari K |
You can import the data into a PostGIS database (using
A similar query is possible with a database imported for Nominatim use. answered 02 Jul '13, 19:41 Frederik Ramm ♦ |
If you want to do such a query by hand, try the following: go to nominatim.openstreetmap.org and type the name of the town in there. See the results whether you get an entry with a little symbol like this: Then choose "details" about it and you will see its OSM id. Be aware: not all towns in the world have a valid boundary relation around. answered 02 Jul '13, 21:02 stephan75 Hi,I want to get polygon ID for some towns in Canada. 'nominatim.openstreetmap.org' ,this link only gave me the polygon ID for states in Canada...When I looking for towns it will give town node ID only..How can get polygon ID for towns...Please clear doubt. Thank you.
(04 Jul '13, 07:46)
Uma Maheswari K
Could you give some examples of what queries you've tried and what they return?
(04 Jul '13, 09:08)
SomeoneElse ♦
1
Ya,sure I searched for a town named 'Calmar' ( It is situated in Alberta,Canada) It returns the following, "Address Calmar (Type: place:town, node 1135364356, 15, 0 GOTO) Alberta (Type: boundary:administrative, relation 391186, 4, 2.03038389612396 GOTO) Canada (Type: boundary:administrative, relation 1428125, 2, 20.1577291628353 GOTO" When I click GOTO for Alberta it gives the boundary. But for Calmar it gives a node.I want boundary for Calmar But it returns node only.I want Polygon ID for this town to get that town boundary. Could you plz guide me...?
(04 Jul '13, 11:35)
Uma Maheswari K
1
Some settlements/places may only have been mapped with a node, not a polygon. Since the boundaries of some settlements are vague or ambiguous, some mappers feel this is a less misleading way of showing towns and villages. This means the polygon you're looking for simply may not exist.
(04 Jul '13, 12:38)
Jonathan Ben...
Uma, you can try webservices like http://www.flosm.de/en/Administrative-Boundaries.html or http://openmapsurfer.uni-hd.de to see whether there are already any administartive boundaries around the towns you are looking for. If is quite possible that not all towns or places in Canada have already boundary relations.
(04 Jul '13, 16:47)
stephan75
|