Closed dhuantes closed 7 years ago
Ok... I figured out that each Layer has a FeatureSet property this the Shapefile. I used the MW5.Plugins.TableEditor as my guide. Was able to update quite a bit of code with that knowledge and now am trying to figure out the replacement for the Shapefile.get_CellValue(int,int). So if you know that answer that would be helpful too... But I'll run it down eventually too...:-D...
OK.. Figured that one out too.... The FeatureSet has a Table Property and the Table object provides access to the CellValue. Getting there...
I'm currently porting a MapWindow4 Plugin that had code that would look for a specific field name in the shapefile. The general code flow is shown below
How is this supposed to be done with MW5? I ask because the I'm now using the IAppContext to gain access to the Layers but ILayer does not have a GetObject method and also not sure whether Shapefile is still part of MapWinGIS or not. I'm sure I'll find it but figured I'd ask now just in case I don't. My reference is the plugin example codes that include the PluginTemplate. Thanks!