I am trying to digitise raster images by tracing over its features - think plant roots or branches - with lines (and I am willing to use all freehand curves or segmented lines). I am planning to group the lines into different categories by using layers in the Inkscape document.
Next, I would like to measure the total length of the lines in each group. Having a scale to convert from pixels to, say, centimetres is nice but not necessary.
I found this forum post which suggested using the Extensions -> Visualise Path -> Measure tool. However:
(1) It didn't work for me running Inkscape 0.48.2 r9819 installed via .dmg download from the Inkscape website on Mac OS X 10.6.8 with XQuartz 2.7.2 (xorg-server 1.12.2). When I select a curve and run the tool, this error pops up:
Traceback (most recent call last):
File "measure.py", line 35, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 494, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
It looks like some sort of locale setting issue, but I have no idea how to fix it.
(2) The tool says it will measure the length of a path and add a text-on-path object with the length. However, my goal is to measure the *sum* of all lines in a layer, and be able to easily tabulate that into a spreadsheet. Would this tool work for that purpose, assuming I get it to work?
The forum post I referenced also suggested using the ImageJ tool for this kind of measurements. I tried it, including an enhanced version called Fiji, but the problem is that it is difficult to manipulate the paths once you make them. For example, the UI makes it difficult to move the paths on the canvas, and impossible to slice paths unless you do some fancy scripting, among other issues.
I hope this describes my issue. Any suggestions on how I can measure the sum of lengths for a select group of paths in Inkscape would be appreciated. Thank you in advance for your replies.