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 a grid and some lines within a grid and I was wondering how to measure the length of the lines inside the grid. I can use the measure tool for a straight line, however in the future I will not have straight lines. Is there still a way to find the length of the line? I've tried using the tabulate intersection tool only to receive a "the geometry is not M aware error". Thanks for your help!

share|improve this question
    
Welcome to GIS Stack Exchange! What GIS software and version are you using? –  PolyGeo Jun 28 '13 at 2:22
add comment

1 Answer

The easiest way to calculate shape length is to import your polylines into a file geodatabase. Once you import your shapefile as a featureclass, length is automatically calculated for every feature. If you are interested in calculating shape length within a grid, first run Intersect which will split the polylines into segments within grid. Then Dissolve by the newly created field ID (i.e. the code indicating which polygon grid cell the segments belong to). The resulting featureclass will be multipart features by grid ID including the total shape length by grid.

enter image description here


enter image description here

share|improve this answer
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.