Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to divide a certain country into grids 1,2,3,..., which are divided equally - in other words, have the same width and length. Then, I want to know into which grid a point coordinate will fall and put a mark into that grid. The grids lines will not be visible. For example, if I have points a,b,c, I need to put these points into the grids according to their coordinates. Accuracy is not an issue. I prefer a way that does not require any paid or rate limited services if possible. My application programming languages are Python and JavaScript. I'm using OpenLayers to draw markers on the map.

I'm totally new to GIS systems and maps. I need something to start with. Any suggestion is appreciated.

share|improve this question

Using python you can manipulate Quantum GIS (QGIS) functions, but it is very simple for a GIS Desktop user,here is just an example to help you understand better:

1 - To create a GRID, Using QGIS, see figures below:

Vector Grid

Vector Grid - Options

2 - Now, enable this plugin:

Spatial Query Plugin

3 - Add your point Layer and Use this Tool:

Adding a point layer

4 - Make the spatial query

enter image description here

5 - Here is the result

enter image description here

I hope this will help a little bit

share|improve this answer
This is what I needed. I created a vector grid on country X and then I exported the grid layer as sqlite file to use it from within my project. Thank you sir. – Rami Feb 24 '13 at 15:47

Your Answer


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.