I have some WKT/WKB data in the MSSQL server like this and would like to show them on the map with the help of leaflet, Openlayer, OpenStreetMaps, or GoogleAPI. My data look likes this:

```
POLYGON ((1736946.0983 5923253.9175, 1736895.6852 5923333.9451, 1736936.0082 5923356.6991, ......))

```

in this format 

```
 EPSG:2193

```

as shown below

[![enter image description here](https://i.stack.imgur.com/Za6MI.png)](https://i.stack.imgur.com/Za6MI.png)
and would like to convert them to 

```
  WGS48 or EPSG:4326

```

I am trying to add them to leaflet, and seems that I need to convert this data to an appropriate format like this:

```
[[42.353770, -71.103606], [42.355447, -71.104475], [42.362681, -71.089830], [42.361829, -71.079230]]

```

Unfortuanlty, I am not sure how to do this conversion.

I have tries some approaches like these

[[1.]](https://stackoverflow.com/questions/16200746/convert-geography-to-geometry-sql-server-2008r2). Error:

```
 A .NET Framework error occurred during execution of user-defined routine or aggregate "geography": 
 System.FormatException: 24201: Latitude values must be between -90 and 90 degrees.

```

[[2.]](http://www.sql-server-helper.com/sql-server-2008/convert-latitude-longitude-to-geography-point.aspx) Query:

```
select  GEOGRAPHY::STPolyFromText ([stastxt],4326) from mytable
Error:
 A .NET Framework error occurred during execution of user-defined routine or aggregate "geography": 
 System.FormatException: 24201: Latitude values must be between -90 and 90 degrees.

```

[[3.]](https://alastaira.wordpress.com/2011/01/21/splitting-multi-geometries-into-single-geometries/)
 No success

[4.] I am able to see this data as a layer in GeoServer when I set the `Declared SRS` as `EPSG:2193`

After doing more study on this issue, 
***the question is:***

Can I do this transformation merely in MSSQL server or Leaflet or I need to use some other tools like Proj4net and replace '(' with '['?