Furthermore when I check the resultant shapefile it is Nothing. So
Dim sfRes As MapWinGIS.Shapefile = sfZones.GetIntersection(False, sfTrack, False, MapWinGIS.ShpfileType.SHP_POLYLINE)
returns sfRes = Nothing so I cant even track down what error might be causing it. I just ran it against ArcGIS and the results on that are good.
Edited 1 time(s). Last edit at 04/23/2012 03:49PM by sindizzy.
Edit: here is something neat
Dim sfRes As MapWinGIS.Shapefile = sfZones.GetIntersection(False, sfTrack, False, MapWinGIS.ShpfileType.SHP_POLYLINE) bombs with a null return value.
If I try
Dim sfRes As MapWinGIS.Shapefile = sfZones.GetIntersection(False, sfTrack, False, Nothing) then i get something back.
Why does that happen?
Edited 1 time(s). Last edit at 04/25/2012 04:30PM by sindizzy.
I am just having the same problem and it seems to me that Function GetIntersection is returning NULL if there is no shape in the result set. Which means:
Trying to intersect for example a Point shapefile with a polygon shapefile where none of the points is located inside the polygon shapefile is returning NULL instead of an empty result file (with all the fields in it but no record).
Why would you want to return an empty result?
You can check if the result is NULL or not.
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
Follow me on Twitter MapWindow_nl to read when a new installer is published.
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
View my profile on LinkedIn