ThinkGeo.com    |     Documentation    |     Premium Support

Compile warnings in latest production build 9.0.0.401

Is there going to be a new major release this summer? Last year when version 9.0.0 was released, it produced several compile warnings regarding the use of obsolete area and line styles. Today I downloaded the latest production build 9.0.0.401. It still produces these warnings:

- Public Shared ReadOnly Property Water2 As
ThinkGeo.MapSuite.Core.AreaStyle’ is obsolete

In addition, there are some new warnings:

  • Public ReadOnly Property Columns As
    System.Collections.ObjectModel.Collection(Of
    ThinkGeo.MapSuite.Core.FeatureSourceColumn)’ is obsolete: 'This
    property is obsolete and might be removed in or after Version 10.0.

I am developing in Visual Studio 2013, Visual Basic.NET. Please advise.

Serena Lucy
Trapeze Software Group

HI Serena,

Please don’t worry something like Water2, we get some feedback from our users, so it won’t be removed in coming 10.0.

About the Columns could you please let me know it is contained by which class? Because I did a quickly search and hadn’t found it is marked as Obsolete in some common classes.

Regards,

Don

Hi Don,
Thanks for your reply. Will the warnings go away in version 10.0?

Columns is a property of the InMemoryFeatureLayer object. Here is the definition:

Public ReadOnly Property Columns As System.Collections.ObjectModel.Collection(Of ThinkGeo.MapSuite.Core.FeatureSourceColumn)
Member of ThinkGeo.MapSuite.Core.InMemoryFeatureLayer

Hi Serena,

Yes, this API might be removed in 10.0. But I am not sure whether this warning will keep if it hadn’t been removed, I will let our developer knows it and I think they will handle this in 10.0 release.

For columns in InMemoryFeatureLayer, We don’t suggest directly operate the collection now, you can handle the columns like this:

InMemoryFeatureLayer layer;
layer.FeatureSource.GetColumns();
layer.FeatureSource.AddColumn();
layer.FeatureSource.DeleteColumn();
layer.FeatureSource.UpdateColumn();

Wish that’s helpful.

Regards,

Don