# Feature.MakeValid() not available in ThinkGeo v12

**URL:** <https://community.thinkgeo.com/t/feature-makevalid-not-available-in-thinkgeo-v12/10017>\
**Category:** ThinkGeo Cloud\
**Created:** [February 26, 2021, 10:03am UTC](https://community.thinkgeo.com/t/feature-makevalid-not-available-in-thinkgeo-v12/10017 "2021-02-26T10:03:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MyAgDevTeam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@MyAgDevTeam](https://community.thinkgeo.com/u/MyAgDevTeam)\
**Post date:** [February 26, 2021, 10:03am UTC](https://community.thinkgeo.com/t/feature-makevalid-not-available-in-thinkgeo-v12/10017/1 "2021-02-26T10:03:30Z")

</div>

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

In our code we are using Feature.MakeValid() function which is not available in ThinkGeo.Core (12.3.2).

Can you please suggest any alternate way?

Please find below code for the reference:

Feature editFeature = new Feature(editFeaturesWkt);  
BaseShape editBaseShape = editFeature.MakeValid().GetShape();

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [February 26, 2021, 3:50pm UTC](https://community.thinkgeo.com/t/feature-makevalid-not-available-in-thinkgeo-v12/10017/2 "2021-02-26T15:50:26Z")

</div>

Thanks,  
We have some discuss about this one. The main reason is that Microsoft.SqlServer.Types library we are using in the mapsuite 10 not support .net core

> [@Replacement classes in ThinkGeo.Core 12.3.2](https://community.thinkgeo.com/t/replacement-classes-in-thinkgeo-core-12-3-2/9997/5):
>
> 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/](http://thinkgeo-giseditor-cloudfilelayers-dev.s3-website-us-east-1.amazonaws.com/us_twnshp/)”); CloudFileFeat…

> [@Where is Feature.MakeValid() in ThinkGeo v12](https://community.thinkgeo.com/t/where-is-feature-makevalid-in-thinkgeo-v12/9958):
>
> There is a function MakeValid() in v10 which makes a feature valid. but I can’t find it in v12. Can anyone suggest an idea? (I have an alternative solution which used SQLGeomtery)

Thanks

Frank
