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 have table with latitude & longitude columns in sql. how can i select all records with lat-long 60 degree north> ( Arctic Region )

Thanks Pragnesh

share|improve this question
add comment

2 Answers

One thing to consider is that if you have a large dataset then defining your data using lat / long, instead of using a real GIS geometry like PostGIS geography or geometry, prevents you from building spatial indexes on your data. You could get by with building a B+-tree index on your latitude field for the query iant provided, but the moment you need to start doing queries involving both longitude and latitude your indexes will perform sub-par (even if you have two separate indexes on both lat and lon).

share|improve this answer
add comment

how about:

select * from table where latitude > 60.0;
share|improve this answer
    
its not giving correct result. –  Pragnesh Patel Jun 13 '11 at 8:55
1  
in what way is it not correct? –  iant Jun 13 '11 at 17:01
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.