SQL geometry to esri.geometry.Point

798
1
05-01-2013 12:06 PM
YamunadeviRathinasamy
New Contributor II
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?
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
There's nothing in the API to do this for you�?? you'll have to parse the coordinates and wkid yourself.
0 Kudos