yamuna83

SQL geometry to esri.geometry.Point

Discussion created by yamuna83 on May 1, 2013
Latest reply on May 1, 2013 by DSwingley-esristaff
I am storing a point in SQL server as Geometry column. and i am using entity framwroks to get that table through api calls.
and in my javascript class i am getting the geometry column which is not in right json format to use to create esri.geometry.Point(json);

The result looks like this:

MyPoint
Geometry                                 {...}
   CoordinateSystemId                3333
   WellKnownText                        "POINT (6438089.715 1801515.828)"
   WellKnownBinary                      null

I would like to draw this point on map. I can create a parser to parse the WellKnownText and create geometry but is there any other method to convert?

Outcomes