0

Im just wondering if one can make an spatial database using postgres + postGIS wherein the user can query each city in the world then get the their real coordinates(latitude&longitude) in the resulting set.

4
  • stackoverflow.com/questions/1023229/spatial-data-in-postgresql Commented Sep 20, 2013 at 7:52
  • and is there a downloadable database that contains all places in the world together with their coordinates in the globe? Commented Sep 20, 2013 at 8:37
  • 1
    Maxmind has free world Geo database. Commented Sep 20, 2013 at 8:45
  • 1
    If you want to just query for the name and return coordinates you don't need PostGIS for that. Commented Sep 20, 2013 at 14:42

1 Answer 1

1

There's a bunch of available data sets out there.

I would assume, that GeoNames is most appropriate here. This project extracts all objects from Wikipedia, that has coordinates specified. And of course, it is quite possible to query cities.

If you need more detailed info, then all depends on a particular country. Say, Netherlands state authorities can provide you extracts of the state estate database, which includes all buildings, inhabited places, living boats and some more.

I assume that building a complete list of cities will be a costy project.

Sign up to request clarification or add additional context in comments.

2 Comments

Are you aware of a similar service to 'state estate database' in the UK?
@jawr, Something here, perhaps...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.