Peter6
April 9, 2010, 4:29pm
1
Would there be a reason I don't see ColumnValues for a given Feature when calling
InMemoryFeatureLayer tmpLayer = MyMap.FindFeatureLayer("layerName") as InMemoryFeatureLayer;
//does work
foreach (Feature feature in tmpLayer.InternalFeatures)
//doesn't work
(Feature feature in tmpLayer.QueryTools.GetAllFeatures(ReturningColumnsType.AllColumns))
foreach
I do see column values for a given feature if I interate through the internalfeatures of the layer though.
Any ideas?
Peter,
Thanks for your post.
I think the reason probably is that when you create your InmemoryFeatureLayer “layerName”, you did not add any column Values to it. You could add it via constructor or val following statement: inmemoryFeatureLaeyr.Columns.Add(new FeatureSourceColumn("YourColumns")); Any more questions just feel free to let me know. Thanks. Yale
Val
April 12, 2010, 11:34am
3
I also let you know that you can look at the project Decimal Degrees Formatting for example where you can find a more complete code related to Columns for InMemoryFeatureLayer.
code.thinkgeo.com/projects/show/decimaldegrees
Val, Thanks for your help. Peter, any more questions just feel free to let us know. Thanks. Yale