The shapefile is in orange and I need to export them into (1.csv and 2.csv etc...) corresponding to each grid I drew in the map. Is there any way this can be done in a single process?

Map of spandau

  • Why draw the grid in the image? And if you drew it yourself, is it really necessary to use exactly that grid, or could you build a new grid? – Erik Dec 6 '18 at 13:57
  • what do you mean a new grid? Am new to qgis .. could you please explain :-) ... But the idea is to split the shapefile into chunks and save them as .csv files – Jeevanantham Saravanan Dec 6 '18 at 14:08
  • Do you need exactly this grid, or could it be slightly different? – Erik Dec 6 '18 at 14:13
  • could be slightly different – Jeevanantham Saravanan Dec 6 '18 at 14:30
  1. Create a grid (vector -> research tools -> create grid) covering the area of the city you need to be covered. Your gridsize seems to be about 100 by 100 m, use this for vertical and horizontal distances. Make sure you get polgyons, not any other type of grid.
  2. Make sure your grid-polygons all have an ID.
  3. Use vector -> data management tools -> join attributes by location to add the ID of your grid-polygons to your point layer.
  4. Again from the data management tools choose split vector layer and use the added ID-field as a base for splitting your point layer into small chunks.

You might need to convert to csv manually.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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