I have two shapefiles.
- the first includes Polygons. Each polygon has a unique
"FID"
- the second has linear objects that belong exclusively to one of these polygons and they also have a
"CLASS"
attribute which takes values 1 to 6 and a"LENGTH"
attribute
For each of the polygons I need to calculate the number of linear objects that have a class value = 1, the number of linear objects that have a class value = 2 and so on.
Also for each of these classes that belong to each polygon I need the sum of their length.
For example, in the end i need to have in the polygon shapefile these values, i.e. each polygon will have 12 new values:
"FID", "Count1", "Count2", ..., "Count6", "SUM1", "SUM2", ..., "SUM6"
Is there any easy way to do this or do I have to try ArcPy?