Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Closed Unassigned: Multipolygon intersection problem [24400]

$
0
0
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

Viewing all articles
Browse latest Browse all 1128

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>