ThinkGeo.com    |     Documentation    |     Premium Support

WFSFeatureSource

Hello,


In much the same way you can create a ShapeFileFeatureSource and detect a given ShapeFile DbfColumn Type, I am wondering if it is possible to implement a similar system where the column type of a WFSFeatureSource's column. It would be extremely helpful.


 



Nelson,


Thanks for your post!
 
I think now, you can get the type from the returned FeatureSourceColumn shown below:

WfsFeatureLayer wfsFeatureLayer = new WfsFeatureLayer(@"datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGIS_DataFinder_WFS_Water_Resources", "Watersheds-watersheds_2_a");
wfsFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
wfsFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Collection<FeatureSourceColumn> columns = wfsFeatureLayer.FeatureSource.GetColumns();
string columnType = columns[0].TypeName;

Let me know if any more questions.


Thanks.
 
Yale

Very good. I will have to do some trial and error to get a nice list of possible results but this will do. Thanks, Yale.

Nelson, 
  
 Thanks for letting me know your status! 
  
 Any more problems just let me know. 
  
 Thanks. 
  
 Yale