3

I have a shapefile with lines (these are administrative borders in India). I want to split each line into a max length of 10 kilometres.

I am using the GRASS tool, v.split.length, following advice here: How to split a line into a specific number of parts?

However, I get a really large number of segments; whatever change I make to the 'Maximum segment length' option seems to have no effect.

One mistake could be using the wrong projection: I was earlier using the coordinate projection EPSG::4326. Is that it, if I use an equidistant projection for India, will that allow me to create 10 km segments?

Which equidistant projection can I use?

4

The v.split GRASS module has a "units" parameter which can be "map","meters","kilometers" etc. This parameter is not exposed in the QGIS Processing Toolbox. The default is "map", so the QGIS Processing dialog is running the GRASS command with map units. If your projection is in a meters-based coordinate system, the value 10 means 10 meters. In this case, you should enter 10000 for the segment length in order to get 10 km segments.

If your administrative boundaries are in EPSG:4326, then I would suggest to first re-project to a projected coordinate system, whatever is used in your area, then try the module on the re-projected vector.

| improve this answer | |
  • Thanks! Is it possible to change the "units" parameter using QGIS Processing Toolbox? My other challenge is, even when I change the value "10", the processing dialog continues to use "10". How can I change this? – Karan Nagpal Sep 11 '17 at 14:32

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.