I want to perform the simple operation of taking a line feature and cutting using a polygon feature to return the portion of the line feature that lies inside the polygon. I am using v. 2 because this is part of a very large application that is not easily ported to v. 4.
The strange thing is that there is an "overlap" method to clip a polygon using a second polygon. Why isn't there a similar method to clip a line feature using a polygon?
What a coincidence that I needed this just a few days after the prior posting. I’m using 4.5.80 and when I try GetIntersection it’s throwing a NullReferenceException. I’m trying to clip a line to the extent of the map, like this:
I am doing this in the DrawingFeatures event to clip all the features to the extent so more labels are placed. The feature comes from DrawingFeaturesEventArgs.FeaturesToDraw.
Sorry for the inconvenient, I have re-created this exception and fixed it, please contact the ThinkGeo Support to get the latest version of DesktopEdition and re-reference the MapSuiteCore.dll and DesktopEdition.dll.
Ah, it’s good to hear that you could duplicate this. I thought maybe I was doing something wrong. We were experimenting with a technique that might or might not make it into our production code, so the need is not urgent. If I wait a few days will this fix be in the daily build? I have plenty of other things to keep me busy.