New answers tagged vb.net
I solved it. probleme is because you use iFeatureLayer as an input. Use a IFeatureClass. Friend Function DissolveFeatures(ByVal pFC As IFeatureClass, ByVal DissolveField As String, ByVal OutName As String) As iFeatureClass Dim GP As New ESRI.ArcGIS.Geoprocessor.Geoprocessor Dim Dissolve As ESRI.ArcGIS.DataManagementTools.Dissolve = New ...
Minor Typo ,Replace esriSRGeoCSType.esriSRGeoCS_WGS1984 with esriRSGeoCSType.esriSRGeoCS_WSG1984
You get the selection set on the feature layer but then you do a feature count on the feature class, an object that does not support selections. So your current logic makes no sense. Now do you want to export an EXISTING selection or do you want to SELECT then export? If you want to export an existing selection then delete the Featurecount code as that is ...
You will have to use an if statement to check the feature count using IFeatureClass.FeatureCount Method, before exporting.
Top 50 recent answers are included