Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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!

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
    
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 May 21 '11 at 18:24
2  
Yes, PostGIS is a database like MySQL. Just better ;) –  underdark May 21 '11 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'; –  MerseyViking May 22 '11 at 14:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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