# Well know binary to GeoJson

**URL:** <https://community.thinkgeo.com/t/well-know-binary-to-geojson/7180>\
**Category:** Services\
**Created:** [June 24, 2013, 1:54pm UTC](https://community.thinkgeo.com/t/well-know-binary-to-geojson/7180 "2013-06-24T13:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/5daacb/32.png) [@Robert3](https://community.thinkgeo.com/u/Robert3)\
**Post date:** [June 24, 2013, 1:54pm UTC](https://community.thinkgeo.com/t/well-know-binary-to-geojson/7180/1 "2013-06-24T13:54:35Z")

</div>

I&nbsp;have&nbsp;a&nbsp;SQL&nbsp;Server&nbsp;database&nbsp;that&nbsp;I&nbsp;keep&nbsp;my&nbsp;feature&nbsp;layers&nbsp;in…I&nbsp;just&nbsp;installed&nbsp;and&nbsp;referenced&nbsp;MapSuite&nbsp;7.0,&nbsp;I’m&nbsp;hoping&nbsp;that&nbsp;there&nbsp;is&nbsp;good&nbsp;functionality&nbsp;int&nbsp;7.0&nbsp;to&nbsp;translate&nbsp;a&nbsp;BaseShape&nbsp;to&nbsp;GeoJson&nbsp;layer.&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;take&nbsp;the&nbsp;WKB&nbsp;out&nbsp;of&nbsp;my&nbsp;data&nbsp;base&nbsp;and&nbsp;turn&nbsp;it&nbsp;into&nbsp;GeoJson&nbsp;on&nbsp;the&nbsp;serverpass&nbsp;the&nbsp;geoJson&nbsp;object&nbsp;back&nbsp;to&nbsp;the&nbsp;browser&nbsp;blient&nbsp;and&nbsp;display&nbsp;the&nbsp;fields&nbsp;on&nbsp;a&nbsp;map.  
  
  
  
Any&nbsp;help&nbsp;is&nbsp;greatly&nbsp;appreciated!!!

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [June 26, 2013, 3:44am UTC](https://community.thinkgeo.com/t/well-know-binary-to-geojson/7180/2 "2013-06-26T03:44:41Z")

</div>

Hi&nbsp;Robert:&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;you&nbsp;post&nbsp;and&nbsp;welcome&nbsp;to&nbsp;Mapsuite&nbsp;World!&nbsp;Would&nbsp;you&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;7.0.15.0&nbsp;or&nbsp;7.0.0.15&nbsp;and&nbsp;try&nbsp;the&nbsp;following&nbsp;code:&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RectangleShape&nbsp;shape&nbsp;=&nbsp;new&nbsp;RectangleShape(-180,&nbsp;90,&nbsp;180,&nbsp;-90);&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature&nbsp;featuredfd&nbsp;=&nbsp;new&nbsp;Feature(shape.GetWellKnownBinary());&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;geoJsonString&nbsp;=&nbsp;featuredfd.GetGeoJson();&nbsp;  
&nbsp;&nbsp;  
&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;question&nbsp;,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;Regards&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer
