ThinkGeo.com    |     Documentation    |     Premium Support

Replacement classes in ThinkGeo.Core 12.3.2

We are upgrading from MapSuiteCore (9.0.0.0) to ThinkGeo.Core (12.3.2).

We are making use of below classes throughout our code and it looks like these classes are not supported in ThinkGeo 12.3.2.

CloudFileFeatureLayer
LayerDefinition
ManagedProj4Projection
SqlTypesGeometryHelper.MakeValid(newMultipolygonShapeToCreate)

What are the available alternatives to replace this functionality?

Thanks

  1. CloudFileFeatureLayer
    This class come from GISEditor plugins. We don’t support this one any more.

  2. LayerDefinition
    This class come from GISEditor plugins. We don’t support this one any more.

  3. ManagedProj4Projection
    Proj4Projection ->ProjectionConverter.

4.SqlTypesGeometryHelper.MakeValid(newMultipolygonShapeToCreate)
We don’t support this one anymore. Here is some details.

More recourse about the upgrade is here
https://docs.thinkgeo.com/products/desktop-maps/v12.0/upgrade-guide/

Thanks

Frank

Thanks for the quick response.
Since some of the classes are not supported anymore, do you have any alternatives for the same.

Below are the classes:
CloudFileFeatureLayer
LayerDefinition
SqlTypesGeometryHelper.MakeValid(newMultipolygonShapeToCreate)

Thanks,
CloudFileFeatureLayer is removed and updated with ThinkGeoCloudVectorFeatureLayer/ThinkGeoCloudVectorOverlay in V12. The layer definitions supported in CloudFileFeatureLayer are no longer available in V12. What layer definition were you using in the old version? Maybe we can find you a workaround.

For the SqlTypesGeometryHelper.MakeValid. You can use the SqlGeometry directly.

Thanks

Frank

Thanks,
We are using .net5, Microsoft.SqlServer.Types is not supported in .NET Core.

Kindly suggest alternative which is supported in .NET Core.

We are using below code for CloudFileFeatureLayer and LayerDefinition.

LayerDefinition USTownshipAndRange = new LayerDefinition(“us_twnshp”, new RectangleShape(-178.285802, 71.468274, -80.031491, 25.138416),
GeographyUnit.DecimalDegree, 6, “http://thinkgeo-giseditor-cloudfilelayers-dev.s3-website-us-east-1.amazonaws.com/us_twnshp/”);
CloudFileFeatureLayer layerUSTownshipAndRange = new CloudFileFeatureLayer(USTownshipAndRange);
layerUSTownshipAndRange.FeatureSource.Projection = GetPLSSProjection();

Thanks,

  1. Microsoft.SqlServer.Types is not supported in .NET Core. That is the reason we didn’t port it to mapsuite 12. I think we still need wait Microsoft to support this. You can find some information here
    https://github.com/dotnet/SqlClient/issues/30 and try with https://github.com/dotMorten/Microsoft.SqlServer.Types
  2. For CloudFileFeatureLayer and LayerDefinition I talked with my supervisor. We plan to support these in ThinkGeo cloud service. We have few questions for you
    a. Do you have any roadmap for your upgrade? We need figure out if we could get this ready on time.
    b. Do you only use few areas for USTownship or you need the whole US area?

Thanks

Frank