I found a bug in ClipPolygonWithLine.ClipPolygonFeatureSetWithPolygon.
When multipolygon are input to the above sub it leads to no result, although debugging the code it seems it finds the right geometry of intersection.
However the problem is evidenced in the function below
```
public static IFeature Intersection(this IFeature self, IFeature other, IFeatureSet destinationFeatureSet, FieldJoinType joinType)
{
IFeature f = Intersection(self, other);
if (f != null)
{
UpdateFields(self, other, f, destinationFeatureSet, joinType);
}
return f;
}
```
although intersection works, self and other featuretype and shapetype are polygon, the resulting Ifeature f has no specified featuretype, and going inside UpdateFields, I find the code below
```
private static void UpdateFields(IFeature self, IFeature other, IFeature result, IFeatureSet destinationFeatureSet, FieldJoinType joinType)
{
if (destinationFeatureSet.FeatureType != result.FeatureType) return;
...
```
which avoid the code to proceed because result.FeatureType turns out to be unspecified.
I don't know how to deal with such a problem, it is above my programming skills.
Oscar
Comments: Not an issue
When multipolygon are input to the above sub it leads to no result, although debugging the code it seems it finds the right geometry of intersection.
However the problem is evidenced in the function below
```
public static IFeature Intersection(this IFeature self, IFeature other, IFeatureSet destinationFeatureSet, FieldJoinType joinType)
{
IFeature f = Intersection(self, other);
if (f != null)
{
UpdateFields(self, other, f, destinationFeatureSet, joinType);
}
return f;
}
```
although intersection works, self and other featuretype and shapetype are polygon, the resulting Ifeature f has no specified featuretype, and going inside UpdateFields, I find the code below
```
private static void UpdateFields(IFeature self, IFeature other, IFeature result, IFeatureSet destinationFeatureSet, FieldJoinType joinType)
{
if (destinationFeatureSet.FeatureType != result.FeatureType) return;
...
```
which avoid the code to proceed because result.FeatureType turns out to be unspecified.
I don't know how to deal with such a problem, it is above my programming skills.
Oscar
Comments: Not an issue