2

I am able to query for the number of places. The problem becomes when there are over 6000 places, the system gives me an error message that the requested start row is too big.

Here is an example of a request which would generate that:

http://api.geonames.org/search?featureCode=PPL&username=genadinik&country=US&style=full&adminCode1=VA&maxRows=1000&startRow=6000

How do people usually get around this?

Thanks!

1 Answer 1

2

Download the data dump and put it into PostGIS. See http://ian01.geog.psu.edu/geoserver_docs/data/geonames/index.html for more details.

3
  • Yeah, but then how do I query the data dump if it is downloaded? Will I be able to put it into some sort of MySQL structure? Is that straight forward?
    – Genadinik
    Commented May 21, 2011 at 18:24
  • 2
    Yes, PostGIS is a database like MySQL. Just better ;)
    – underdark
    Commented May 21, 2011 at 20:19
  • @Genadinik: Yes, querying a PostgreSQL/PostGIS database is as straight forward as your URL: SELECT * FROM geoname WHERE fcode='PPL' AND country='US' AND admincode1='VA'; Commented May 22, 2011 at 14:18

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.