# Hemisphere problem with map refresh/SQL2008

**URL:** <https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502>\
**Category:** WinForms\
**Created:** [November 18, 2010, 9:52pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502 "2010-11-18T21:52:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 18, 2010, 9:52pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/1 "2010-11-18T21:52:39Z")

</div>

When&nbsp;I&nbsp;execute&nbsp;the&nbsp;following&nbsp;command:

WinformsMap1.Refresh()

I&nbsp;get&nbsp;this&nbsp;error:

A&nbsp;first&nbsp;chance&nbsp;exception&nbsp;of&nbsp;type&nbsp;'System.Data.SqlClient.SqlException'&nbsp;occurred&nbsp;in&nbsp;MapSuiteCore.dll  
  
System.Transactions&nbsp;Critical:&nbsp;0&nbsp;:&nbsp;\<TraceRecord&nbsp;&nbsp;xmlns="schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"&nbsp;&nbsp;Severity="Critical"\>\<TraceIdentifier\>msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled\</TraceIdentifier\>\<Description\>Unhandled&nbsp;&nbsp;&nbsp;exception\</Description\>\<AppDomain\>TestSQLServer2.vshost.exe\</AppDomain\>\<Exception\>\<ExceptionType\>System.Data.SqlClient.SqlException,&nbsp;&nbsp;System.Data,&nbsp;Version=4.0.0.0,&nbsp;Culture=neutral,&nbsp;&nbsp;PublicKeyToken=b77a5c561934e089\</ExceptionType\>\<Message\>A&nbsp;&nbsp;.NET&nbsp;Framework&nbsp;error&nbsp;occurred&nbsp;during&nbsp;execution&nbsp;of&nbsp;user-defined&nbsp;routine&nbsp;&nbsp;or&nbsp;aggregate&nbsp;"geography":&nbsp;  
  
Microsoft.SqlServer.Types.GLArgumentException:&nbsp;24205:&nbsp;The&nbsp;specified&nbsp;&nbsp;input&nbsp;does&nbsp;not&nbsp;represent&nbsp;a&nbsp;valid&nbsp;geography&nbsp;instance&nbsp;because&nbsp;it&nbsp;exceeds&nbsp;a&nbsp;&nbsp;single&nbsp;hemisphere.&nbsp;Each&nbsp;geography&nbsp;instance&nbsp;must&nbsp;fit&nbsp;inside&nbsp;a&nbsp;single&nbsp;&nbsp;hemisphere.&nbsp;A&nbsp;common&nbsp;reason&nbsp;for&nbsp;this&nbsp;error&nbsp;is&nbsp;that&nbsp;a&nbsp;polygon&nbsp;has&nbsp;the&nbsp;&nbsp;wrong&nbsp;ring&nbsp;orientation.

I&nbsp;have&nbsp;read&nbsp;a&nbsp;similar&nbsp;posting&nbsp;in&nbsp;the&nbsp;ThinkGeo&nbsp;web&nbsp;control&nbsp;section&nbsp;and&nbsp;I&nbsp;am&nbsp;guessing&nbsp;it&nbsp;is&nbsp;related.&nbsp;However,&nbsp;I&nbsp;am&nbsp;only&nbsp;using&nbsp;points,&nbsp;not&nbsp;polygons&nbsp;and&nbsp;am&nbsp;using&nbsp;the&nbsp;Desktop&nbsp;Edition.

My&nbsp;&nbsp;map&nbsp;consists&nbsp;of&nbsp;a&nbsp;world&nbsp;base&nbsp;map&nbsp;as&nbsp;well&nbsp;as&nbsp;a&nbsp;selction&nbsp;of&nbsp;about&nbsp;360&nbsp;&nbsp;points&nbsp;read&nbsp;from&nbsp;a&nbsp;SQL2008&nbsp;database&nbsp;-&nbsp;all&nbsp;the&nbsp;points&nbsp;are&nbsp;within&nbsp;a&nbsp;&nbsp;boundary&nbsp;of&nbsp;+/-10°&nbsp;in&nbsp;Lat&nbsp;&&nbsp;Long&nbsp;so&nbsp;no&nbsp;points&nbsp;are&nbsp;being&nbsp;drawn&nbsp;off&nbsp;&nbsp;the&nbsp;map.

The&nbsp;error&nbsp;occurs&nbsp;when&nbsp;I&nbsp;maximise&nbsp;&nbsp;my&nbsp;form&nbsp;which&nbsp;also&nbsp;makes&nbsp;the&nbsp;map&nbsp;bigger&nbsp;(and&nbsp;show&nbsp;more&nbsp;of&nbsp;the&nbsp;world)&nbsp;&nbsp;but&nbsp;the&nbsp;points&nbsp;are&nbsp;still&nbsp;within&nbsp;the&nbsp;+/-10°&nbsp;Lat/Long&nbsp;boundary&nbsp;so&nbsp;no&nbsp;points&nbsp;are&nbsp;being&nbsp;drawn&nbsp;outside&nbsp;the&nbsp;map&nbsp;area.

Can&nbsp;&nbsp;anyone&nbsp;tell&nbsp;me&nbsp;what&nbsp;actually&nbsp;is&nbsp;going&nbsp;on&nbsp;to&nbsp;cause&nbsp;this&nbsp;error?&nbsp;Is&nbsp;the&nbsp;&nbsp;Thinkgeo&nbsp;map&nbsp;control&nbsp;passing&nbsp;some&nbsp;info&nbsp;to&nbsp;SQL&nbsp;Server&nbsp;that&nbsp;SQL&nbsp;Server&nbsp;&nbsp;cannot&nbsp;handle?&nbsp;Asking&nbsp;it&nbsp;to&nbsp;look&nbsp;for&nbsp;points&nbsp;within&nbsp;a&nbsp;certain&nbsp;boundary&nbsp;&nbsp;rather&nbsp;than&nbsp;just&nbsp;asking&nbsp;for&nbsp;every&nbsp;point?&nbsp;And&nbsp;that&nbsp;boundary&nbsp;is&nbsp;invalid?

And&nbsp;if&nbsp;that&nbsp;is&nbsp;true,&nbsp;how&nbsp;do&nbsp;I&nbsp;stop&nbsp;the&nbsp;map&nbsp;control&nbsp;doing&nbsp;that?&nbsp;I&nbsp;do&nbsp;want&nbsp;to&nbsp;have&nbsp;a&nbsp;map&nbsp;of&nbsp;the&nbsp;whole&nbsp;workd&nbsp;on&nbsp;display,&nbsp;not&nbsp;just&nbsp;a&nbsp;sngle&nbsp;hemisphere&nbsp;(which&nbsp;I&nbsp;am&nbsp;&nbsp;not&nbsp;sure&nbsp;of&nbsp;the&nbsp;definition&nbsp;of&nbsp;that&nbsp;-&nbsp;my&nbsp;map&nbsp;starts&nbsp;off&nbsp;already&nbsp;showing&nbsp;&nbsp;points&nbsp;in&nbsp;both&nbsp;N&nbsp;&&nbsp;S&nbsp;hemispheres&nbsp;as&nbsp;well&nbsp;as&nbsp;E&nbsp;&&nbsp;W&nbsp;hemispheres.

This&nbsp;screen&nbsp;dump&nbsp;shows&nbsp;all&nbsp;the&nbsp;points&nbsp;-&nbsp;to&nbsp;get&nbsp;the&nbsp;crash&nbsp;all&nbsp;I&nbsp;do&nbsp;is&nbsp;Maximize&nbsp;the&nbsp;form&nbsp;which&nbsp;makes&nbsp;the&nbsp;map&nbsp;bigger.

 ![](https://community.thinkgeo.com/uploads/default/original/1X/3b74e4381f704c7924d1df8c150f1a2033596370.png)

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 22, 2010, 8:08am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/2 "2010-11-22T08:08:55Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;sorry&nbsp;for&nbsp;the&nbsp;delay.&nbsp;  
&nbsp;&nbsp;  
&nbsp;1)Could&nbsp;you&nbsp;show&nbsp;us&nbsp;the&nbsp;code&nbsp;to&nbsp;create&nbsp;the&nbsp;MsSql2008FeatureLayer?&nbsp;  
&nbsp;2)It&nbsp;is&nbsp;possible&nbsp;to&nbsp;get&nbsp;all&nbsp;the&nbsp;features&nbsp;out&nbsp;from&nbsp;the&nbsp;layer&nbsp;and&nbsp;save&nbsp;all&nbsp;their&nbsp;wkts&nbsp;into&nbsp;a&nbsp;file&nbsp;and&nbsp;upload&nbsp;it?&nbsp;We&nbsp;will&nbsp;take&nbsp;a&nbsp;try&nbsp;to&nbsp;save&nbsp;these&nbsp;into&nbsp;MsSql2008&nbsp;table&nbsp;to&nbsp;recreate&nbsp;this&nbsp;problem.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 23, 2010, 8:47am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/3 "2010-11-23T08:47:16Z")

</div>

I&nbsp;will&nbsp;strip&nbsp;out&nbsp;all&nbsp;the&nbsp;un-needed&nbsp;code&nbsp;from&nbsp;a&nbsp;small&nbsp;project&nbsp;that&nbsp;creates&nbsp;the&nbsp;layer&nbsp;and&nbsp;post&nbsp;the&nbsp;project,&nbsp;maybe&nbsp;tomorrow.&nbsp;It&nbsp;also&nbsp;creates&nbsp;the&nbsp;full&nbsp;database&nbsp;&&nbsp;table&nbsp;and&nbsp;populates&nbsp;it&nbsp;with&nbsp;data&nbsp;so&nbsp;as&nbsp;long&nbsp;as&nbsp;you&nbsp;have&nbsp;SQL&nbsp;Server&nbsp;it&nbsp;should&nbsp;run.&nbsp;  
&nbsp;&nbsp;  
&nbsp;saving&nbsp;wkts&nbsp;into&nbsp;a&nbsp;file…that&nbsp;might&nbsp;take&nbsp;longer,&nbsp;mainly&nbsp;because&nbsp;I&nbsp;have&nbsp;no&nbsp;idea&nbsp;how&nbsp;to&nbsp;do&nbsp;that!&nbsp;:-)&nbsp;I&nbsp;am&nbsp;not&nbsp;using&nbsp;wkt&nbsp;at&nbsp;all&nbsp;so&nbsp;I&nbsp;haven’t&nbsp;really&nbsp;paid&nbsp;any&nbsp;attention&nbsp;to&nbsp;how&nbsp;to&nbsp;work&nbsp;with&nbsp;it.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 26, 2010, 7:30am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/4 "2010-11-26T07:30:24Z")

</div>

David,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;feedback.  
It&nbsp;definitely&nbsp;would&nbsp;be&nbsp;helpful&nbsp;to&nbsp;figure&nbsp;out&nbsp;the&nbsp;problem&nbsp;if&nbsp;a&nbsp;sample&nbsp;with&nbsp;data&nbsp;attached&nbsp;can&nbsp;be&nbsp;provided&nbsp;to&nbsp;recreate&nbsp;the&nbsp;problem.&nbsp;What&nbsp;I&nbsp;meant&nbsp;is&nbsp;to&nbsp;get&nbsp;all&nbsp;the&nbsp;points&nbsp;out&nbsp;from&nbsp;the&nbsp;sql&nbsp;server&nbsp;and&nbsp;get&nbsp;the&nbsp;wkts&nbsp;using&nbsp;the&nbsp;API&nbsp;provided&nbsp;and&nbsp;save&nbsp;those&nbsp;wkts&nbsp;into&nbsp;txt&nbsp;file,&nbsp;&nbsp;any&nbsp;all,&nbsp;I&nbsp;think&nbsp;a&nbsp;sql&nbsp;table&nbsp;should&nbsp;also&nbsp;work&nbsp;for&nbsp;us.  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
Thanks.  
Yale

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 30, 2010, 12:27am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/5 "2010-11-30T00:27:07Z")

</div>

[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/8452/afv/topic/Default.aspx#21805](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/8452/afv/topic/Default.aspx#21805)&nbsp;has&nbsp;a&nbsp;sample&nbsp;project&nbsp;which&nbsp;exhibits&nbsp;this&nbsp;problems&nbsp;(and&nbsp;2&nbsp;others&nbsp;-&nbsp;didn’t&nbsp;want&nbsp;to&nbsp;post&nbsp;the&nbsp;project&nbsp;3&nbsp;times).

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [December 1, 2010, 9:12pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/6 "2010-12-01T21:12:25Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;can&nbsp;find&nbsp;which&nbsp;record&nbsp;cause&nbsp;this&nbsp;problem&nbsp;that&nbsp;will&nbsp;be&nbsp;very&nbsp;helpful,&nbsp;or&nbsp;could&nbsp;you&nbsp;backup&nbsp;your&nbsp;database&nbsp;and&nbsp;send&nbsp;to&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com)&nbsp;and&nbsp;let&nbsp;he&nbsp;forward&nbsp;to&nbsp;James&nbsp;and&nbsp;Yale,&nbsp;then&nbsp;we&nbsp;can&nbsp;restore&nbsp;your&nbsp;database&nbsp;to&nbsp;our&nbsp;local&nbsp;server&nbsp;to&nbsp;find&nbsp;the&nbsp;wrong&nbsp;data&nbsp;and&nbsp;find&nbsp;the&nbsp;exactly&nbsp;reason.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;James

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [December 2, 2010, 5:11pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/7 "2010-12-02T17:11:20Z")

</div>

My&nbsp;posting&nbsp;above&nbsp;from&nbsp;11-30-2010&nbsp;01:27&nbsp;AM&nbsp;has&nbsp;a&nbsp;link&nbsp;to&nbsp;where&nbsp;I&nbsp;posted&nbsp;a&nbsp;sample&nbsp;project.&nbsp;That&nbsp;sample&nbsp;project&nbsp;(follow&nbsp;the&nbsp;link&nbsp;to&nbsp;the&nbsp;other&nbsp;topic)&nbsp;actually&nbsp;creates&nbsp;a&nbsp;database&nbsp;which&nbsp;has&nbsp;the&nbsp;‘wrong’&nbsp;data&nbsp;and&nbsp;instructions&nbsp;on&nbsp;how&nbsp;to&nbsp;trigger&nbsp;the&nbsp;crash&nbsp;-&nbsp;basically&nbsp;panning&nbsp;off&nbsp;the&nbsp;edge&nbsp;of&nbsp;the&nbsp;world.&nbsp;As&nbsp;far&nbsp;as&nbsp;I&nbsp;can&nbsp;see,&nbsp;there&nbsp;isn’t&nbsp;any&nbsp;wrong&nbsp;data&nbsp;though&nbsp;-&nbsp;other&nbsp;applications&nbsp;which&nbsp;map&nbsp;the&nbsp;data&nbsp;have&nbsp;no&nbsp;problem&nbsp;with&nbsp;it,&nbsp;including&nbsp;Microsoft&nbsp;SQL&nbsp;Server&nbsp;Management&nbsp;Studio&nbsp;which&nbsp;has&nbsp;a&nbsp;“Spatial&nbsp;results”&nbsp;window.&nbsp;The&nbsp;crash&nbsp;doesn’t&nbsp;occur&nbsp;with&nbsp;the&nbsp;data&nbsp;being&nbsp;put&nbsp;into&nbsp;the&nbsp;ThinkGeo&nbsp;map&nbsp;but&nbsp;when&nbsp;the&nbsp;user&nbsp;pans&nbsp;around&nbsp;the&nbsp;map&nbsp;or&nbsp;zooms&nbsp;out.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Dave&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [December 2, 2010, 11:38pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/8 "2010-12-02T23:38:04Z")

</div>

David,

I&nbsp;don't&nbsp;think&nbsp;it&nbsp;will&nbsp;crash&nbsp;from&nbsp;the&nbsp;screen-shot&nbsp;you&nbsp;attached&nbsp;and&nbsp;zoom&nbsp;out&nbsp;a&nbsp;little,&nbsp;I&nbsp;attached&nbsp;my&nbsp;screen-shot,&nbsp;it&nbsp;works.&nbsp;The&nbsp;exception&nbsp;will&nbsp;throw&nbsp;is&nbsp;when&nbsp;you&nbsp;zoom-out&nbsp;or&nbsp;pan&nbsp;very&nbsp;far,&nbsp;the&nbsp;extent&nbsp;of&nbsp;current&nbsp;map&nbsp;is&nbsp;out&nbsp;of&nbsp;the&nbsp;Earth,&nbsp;MapSuite&nbsp;will&nbsp;pass&nbsp;in&nbsp;map's&nbsp;extent&nbsp;to&nbsp;Sql&nbsp;server&nbsp;to&nbsp;retrieve&nbsp;data,&nbsp;but&nbsp;actually&nbsp;the&nbsp;data&nbsp;is&nbsp;fine&nbsp;which&nbsp;all&nbsp;of&nbsp;them&nbsp;inside&nbsp;the&nbsp;Earth,&nbsp;but&nbsp;it&nbsp;still&nbsp;throw&nbsp;exception,&nbsp;such&nbsp;as&nbsp;Latitude&nbsp;values&nbsp;are&nbsp;out&nbsp;of&nbsp;-90&nbsp;and&nbsp;90&nbsp;degrees.

This&nbsp;one&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;yours,&nbsp;no&nbsp;exception.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/7/79fef220cc7106b3d9ae8b093f991457f168f51a.jpg)

This&nbsp;one&nbsp;is&nbsp;no&nbsp;exception&nbsp;too,&nbsp;I&nbsp;zoom&nbsp;out&nbsp;to&nbsp;upper&nbsp;zoom&nbsp;level.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/d/d2324a3778e6aa2fde70f67853e29e7ec03297f0.jpg)

Thanks

James

&nbsp;

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [December 3, 2010, 12:02am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/9 "2010-12-03T00:02:00Z")

</div>

Yes,&nbsp;I&nbsp;agree&nbsp;with&nbsp;your&nbsp;statement&nbsp;-&nbsp;"MapSuite&nbsp;will&nbsp;pass&nbsp;in&nbsp;map's&nbsp;extent&nbsp;to&nbsp;Sql&nbsp;server&nbsp;to&nbsp;retrieve&nbsp;data,&nbsp;but&nbsp;actually&nbsp;the&nbsp;data&nbsp;is&nbsp;fine&nbsp;which&nbsp;all&nbsp;of&nbsp;them&nbsp;inside&nbsp;the&nbsp;Earth,&nbsp;but&nbsp;it&nbsp;still&nbsp;throw&nbsp;exception,&nbsp;such&nbsp;as&nbsp;Latitude&nbsp;values&nbsp;are&nbsp;out&nbsp;of&nbsp;-90&nbsp;and&nbsp;90&nbsp;degrees."&nbsp;  
  
  
  
That&nbsp;is&nbsp;what&nbsp;I&nbsp;am&nbsp;having&nbsp;trouble&nbsp;understanding:&nbsp;  
  
-&nbsp;why&nbsp;is&nbsp;MapSuite&nbsp;passing&nbsp;something&nbsp;that&nbsp;will&nbsp;cause&nbsp;SQL&nbsp;Server&nbsp;to&nbsp;crash?&nbsp;  
  
-&nbsp;what&nbsp;exactly&nbsp;does&nbsp;it&nbsp;pass?&nbsp;  
  
  
  
I&nbsp;am&nbsp;trying&nbsp;to&nbsp;understand&nbsp;what&nbsp;is&nbsp;actually&nbsp;happening&nbsp;as&nbsp;there&nbsp;is&nbsp;no&nbsp;way&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;stop&nbsp;my&nbsp;users&nbsp;trying&nbsp;to&nbsp;pan&nbsp;off&nbsp;the&nbsp;edge&nbsp;of&nbsp;the&nbsp;earth&nbsp;every&nbsp;so&nbsp;often.&nbsp;I&nbsp;don't&nbsp;really&nbsp;understand&nbsp;what&nbsp;MapSuite&nbsp;is&nbsp;sending&nbsp;to&nbsp;SQL&nbsp;Server.&nbsp;Shouldn't&nbsp;MapSuite&nbsp;limit&nbsp;the&nbsp;extents&nbsp;it&nbsp;sends&nbsp;to&nbsp;SQL&nbsp;Server&nbsp;to&nbsp;either&nbsp;the&nbsp;extents&nbsp;of&nbsp;the&nbsp;earth&nbsp;(if&nbsp;in&nbsp;degrees&nbsp;then&nbsp;that&nbsp;is&nbsp;easy&nbsp;to&nbsp;know&nbsp;-&nbsp;might&nbsp;not&nbsp;be&nbsp;so&nbsp;easy&nbsp;with&nbsp;a&nbsp;different&nbsp;projection!)?&nbsp;Is&nbsp;there&nbsp;any&nbsp;way&nbsp;to&nbsp;force&nbsp;MapSuite&nbsp;to&nbsp;send&nbsp;a&nbsp;'smaller'&nbsp;extent,&nbsp;limited&nbsp;to&nbsp;the&nbsp;extents&nbsp;of&nbsp;the&nbsp;earth&nbsp;without&nbsp;limiting&nbsp;my&nbsp;users&nbsp;from&nbsp;being&nbsp;able&nbsp;to&nbsp;pan&nbsp;or&nbsp;zoom&nbsp;outside&nbsp;the&nbsp;earth&nbsp;boundaries?

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [December 3, 2010, 2:35am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/10 "2010-12-03T02:35:09Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;hook&nbsp;up&nbsp;the&nbsp;event&nbsp;CurrentExtentChanging&nbsp;and&nbsp;set&nbsp;the&nbsp;smaller&nbsp;extent&nbsp;pass&nbsp;back&nbsp;to&nbsp;e.NewExtent.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;&nbsp;  
&nbsp;James

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [December 3, 2010, 7:37am UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/11 "2010-12-03T07:37:48Z")

</div>

Ok,&nbsp;I&nbsp;will&nbsp;try&nbsp;that.&nbsp;I&nbsp;guess&nbsp;this&nbsp;will&nbsp;actually&nbsp;restrict&nbsp;the&nbsp;pan&nbsp;&&nbsp;zoom&nbsp;rather&nbsp;than&nbsp;just&nbsp;stop&nbsp;the&nbsp;invalid&nbsp;extents&nbsp;being&nbsp;sent&nbsp;to&nbsp;the&nbsp;SQL&nbsp;Server.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Can&nbsp;you&nbsp;actually&nbsp;restrict&nbsp;the&nbsp;extents&nbsp;in&nbsp;CurrentExtentChanging?&nbsp;I&nbsp;try&nbsp;the&nbsp;following&nbsp;code&nbsp;&&nbsp;zoom&nbsp;out&nbsp;until&nbsp;I&nbsp;get&nbsp;a&nbsp;crash:&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print(“WinformsMap1\_CurrentExtentChanging&nbsp;-&nbsp;before&nbsp;change”)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print(e.CurrentExtent.GetBoundingBox.UpperRightPoint.X.ToString&nbsp;+&nbsp;",&nbsp;"&nbsp;+&nbsp;e.NewExtent.GetBoundingBox.UpperRightPoint.X.ToString)&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;e.NewExtent.GetBoundingBox.UpperRightPoint.X&nbsp;\>&nbsp;179&nbsp;Then&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print("UR&nbsp;X&nbsp;too&nbsp;high:&nbsp;"&nbsp;+&nbsp;e.NewExtent.GetBoundingBox.UpperRightPoint.X.ToString)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.NewExtent.GetBoundingBox.LowerRightPoint.X&nbsp;=&nbsp;180&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.NewExtent.GetBoundingBox.UpperRightPoint.X&nbsp;=&nbsp;180&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print(“WinformsMap1\_CurrentExtentChanging&nbsp;-&nbsp;after&nbsp;change”)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print(e.CurrentExtent.GetBoundingBox.UpperRightPoint.X.ToString&nbsp;+&nbsp;",&nbsp;"&nbsp;+&nbsp;e.NewExtent.GetBoundingBox.UpperRightPoint.X.ToString)&nbsp;  
&nbsp;&nbsp;  
&nbsp;and&nbsp;get&nbsp;the&nbsp;following&nbsp;results:&nbsp;  
&nbsp;&nbsp;  
&nbsp;WinformsMap1\_CurrentExtentChanging&nbsp;-&nbsp;before&nbsp;change&nbsp;  
&nbsp;143.279197603464,&nbsp;186.169822603464&nbsp;  
&nbsp;UR&nbsp;X&nbsp;too&nbsp;high:&nbsp;186.169822603464&nbsp;  
&nbsp;WinformsMap1\_CurrentExtentChanging&nbsp;-&nbsp;after&nbsp;change&nbsp;  
&nbsp;143.279197603464,&nbsp;186.169822603464&nbsp;  
&nbsp;&nbsp;  
&nbsp;As&nbsp;you&nbsp;can&nbsp;see,&nbsp;X&nbsp;is&nbsp;higher&nbsp;than&nbsp;180&nbsp;after&nbsp;the&nbsp;zoom&nbsp;out&nbsp;so&nbsp;I&nbsp;get&nbsp;the&nbsp;crash.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;It&nbsp;seems&nbsp;setting&nbsp;the&nbsp;X&nbsp;for&nbsp;upper&nbsp;right&nbsp;and&nbsp;lower&nbsp;right&nbsp;corners&nbsp;to&nbsp;180&nbsp;in&nbsp;this&nbsp;event&nbsp;routine&nbsp;doesn’t&nbsp;actually&nbsp;change&nbsp;the&nbsp;X&nbsp;value.&nbsp;I&nbsp;can&nbsp;use&nbsp;the&nbsp;following&nbsp;code:&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.Cancel&nbsp;=&nbsp;minLon&nbsp;\<&nbsp;-180&nbsp;Or&nbsp;maxLon&nbsp;\>&nbsp;180&nbsp;Or&nbsp;minLat&nbsp;\<&nbsp;-90&nbsp;Or&nbsp;maxLat&nbsp;\>&nbsp;90&nbsp;  
&nbsp;&nbsp;  
&nbsp;(as&nbsp;provided&nbsp;by&nbsp;Jeff&nbsp;in&nbsp;a&nbsp;different&nbsp;topic)&nbsp;This&nbsp;stops&nbsp;the&nbsp;zoom&nbsp;out&nbsp;taking&nbsp;place&nbsp;completely&nbsp;which&nbsp;is&nbsp;a&nbsp;workaround&nbsp;but&nbsp;I&nbsp;would&nbsp;prefer&nbsp;rather&nbsp;than&nbsp;just&nbsp;stop&nbsp;the&nbsp;zoom,&nbsp;that&nbsp;the&nbsp;application&nbsp;would&nbsp;zoom&nbsp;out&nbsp;to&nbsp;the&nbsp;maximum&nbsp;allowable.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [December 5, 2010, 7:38pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/12 "2010-12-05T19:38:38Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;you&nbsp;detail&nbsp;code&nbsp;and&nbsp;description&nbsp;that&nbsp;make&nbsp;it&nbsp;very&nbsp;clear.&nbsp;  
&nbsp;I&nbsp;think&nbsp;the&nbsp;extent&nbsp;has&nbsp;been&nbsp;snapped&nbsp;up,&nbsp;so&nbsp;you&nbsp;can&nbsp;try&nbsp;to&nbsp;set&nbsp;WinformsMap1.ZoomLevelSnapping&nbsp;=&nbsp;ZoomLevelSnappingMode.None&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;James

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 24, 2012, 1:02pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/13 "2012-09-24T13:02:43Z")

</div>

I&nbsp;am&nbsp;finally&nbsp;revisiting&nbsp;this&nbsp;and&nbsp;I&nbsp;have&nbsp;some&nbsp;code&nbsp;to&nbsp;show&nbsp;the&nbsp;problem.&nbsp;It&nbsp;is&nbsp;a&nbsp;code&nbsp;that&nbsp;sets&nbsp;up&nbsp;a&nbsp;map&nbsp;with&nbsp;a&nbsp;background&nbsp;layer&nbsp;just&nbsp;for&nbsp;reference&nbsp;then&nbsp;a&nbsp;dynamic&nbsp;layer&nbsp;and&nbsp;adds&nbsp;in&nbsp;2&nbsp;points.&nbsp;  
&nbsp;Those&nbsp;2&nbsp;points&nbsp;are&nbsp;definitely&nbsp;less&nbsp;than&nbsp;90&nbsp;degrees&nbsp;in&nbsp;Lat&nbsp;and&nbsp;Long.&nbsp;  
&nbsp;I&nbsp;then&nbsp;try&nbsp;to&nbsp;zoom&nbsp;to&nbsp;show&nbsp;both&nbsp;points.&nbsp;I&nbsp;get&nbsp;a&nbsp;failure:&nbsp;  
&nbsp;System.FormatException:&nbsp;24201:&nbsp;Latitude&nbsp;values&nbsp;must&nbsp;be&nbsp;between&nbsp;-90&nbsp;and&nbsp;90&nbsp;degrees.&nbsp;  
&nbsp;Why?&nbsp;  
&nbsp;&nbsp;  
&nbsp;`’ Minimal test platform’ Add 2 points to a SQL Server database’ Zoom to show those 2 pointsImports ThinkGeo.MapSuite.CoreImports ThinkGeo.MapSuite.DesktopEditionImports System.Data.SqlClientPublic Class Form1    Private Sub Form1_Shown(sender As Object, e As System.EventArgs) Handles Me.Shown        ’ Set up the map - Countries background and zoom to show the whole world.        Dim WorldCountriesLayer As ShapeFileFeatureLayer        Dim BackgroundOverlay As New LayerOverlay()        Dim TrailLayer As MsSql2008FeatureLayer        Dim DynamicLayerOverlay As LayerOverlay = New LayerOverlay()        Dim ConnectionString As String        Dim conn = New SqlConnection(ConnectionString)        Dim cmd As SqlCommand = Nothing        ’ Set the worldLayer with a preset Style, as AreaStyles.Country1 has YellowGreen background and black border, our worldLayer will have the same render style.          WorldCountriesLayer = New ShapeFileFeatureLayer(“C:\Program Files (x86)\ThinkGeo\Map Suite Desktop Full Edition 5.5\Samples\SampleData\Data\Countries02.shp”)        WorldCountriesLayer.Name = “WorldCountriesLayer”        WorldCountriesLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1        ’ Make ocean blue        WinformsMap1.BackgroundOverlay.Name = “BackgroundOverlay”        WinformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)        ‘This is necessary - not displayed if this line is commented out.        WorldCountriesLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20        ’ put the layer into an overlay then the overlay into the map, then set the initial extents of the map then refresh to display the map.        BackgroundOverlay.Layers.Add(“WorldCountriesLayer”, WorldCountriesLayer) ’ add the layer to the overlay        WinformsMap1.Overlays.Add(“BackgroundOverlay”, BackgroundOverlay) ’ add the overlay to the map        WinformsMap1.CurrentExtent = New RectangleShape(100, 5.5, 105, 1)        WinformsMap1.Refresh()        ’ Add TrailLayer        TrailLayer = New MsSql2008FeatureLayer(“Data Source=CM\SQLEXPRESS;Initial Catalog=MVMSuiteTest;Integrated Security=True;Connection Timeout=0”, “Trails”, “ID”)        TrailLayer.Srid = 4326        TrailLayer.Name = “TrailLayer”        TrailLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.SymbolPen = New GeoPen(GeoColor.FromArgb(255, GeoColor.StandardColors.Blue), 1)        TrailLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20        DynamicLayerOverlay.Layers.Add(“TrailLayer”, TrailLayer)        ‘Adds the LayerOvelay to the Overlays collection of the map with id “VesselLyrOverlay”        WinformsMap1.Overlays.Add(“ShipLayerOverlay”, DynamicLayerOverlay)        Dim InsertPoints As Boolean = True        If InsertPoints Then            ’ Add points to TrailLayer at 90, 180 and another at -90, -180.            ‘Dim SQLString As String = "INSERT INTO Trails(ID, Name, VLon, VLat, VSpd, VCMG, Altitude, Voltage, IO, OceanRegion, VDateTime, RDateTime, WGS84Loc, Origin, MsgType, RPM01, FuelFlow01) " + “VALUES (” + VesselID.ToString + “, '” + VesselID.ToString + "’, " + Longitude.ToString + ", " + Latitude.ToString + ", " + Speed.ToString + ", " + Heading.ToString + “, '” + Altitude + "’, ‘" + Voltage.ToString + "’, ‘" + SUMIO + "’, ‘" + OceanRegion + "’, ‘" + Format(CDate(FixTime), “yyyy-MM-ddTHH:mm:ss”) + "’, ‘" + Format(CDate(PCTime), “yyyy-MM-ddTHH:mm:ss”) + "’, " & SQLString & “, '” + Origin + "’, ‘" & MsgType & ",’, ‘" & RPM01 & "’, ‘" & Fuel01 & "’)"            Dim SQLString As String = "INSERT INTO Trails(ID, Name, VLon, VLat, VSpd, VCMG, WGS84Loc) " + “VALUES (99999, ‘99999’, 89.99999, 89.99999, 0, 0,‘POINT(89.99999 89.99999)’)”            ConnectionString = “Integrated Security=SSPI;” + “Initial Catalog=MVMSuiteTest;” + “Data Source=CM\SQLEXPRESS;”            conn.ConnectionString = ConnectionString            cmd = New SqlCommand(SQLString, conn)            conn.Open()            cmd.ExecuteNonQuery()            conn.Close()            SQLString = "INSERT INTO Trails(ID, Name, VLon, VLat, VSpd, VCMG, WGS84Loc) " + “VALUES (99999, ‘99999’, -89.99999, -89.99999, 0, 0,‘POINT(-89.99999 -89.99999)’)”            ConnectionString = “Integrated Security=SSPI;” + “Initial Catalog=MVMSuiteTest;” + “Data Source=CM\SQLEXPRESS;”            conn.ConnectionString = ConnectionString            cmd = New SqlCommand(SQLString, conn)            conn.Open()            cmd.ExecuteNonQuery()            conn.Close()        End If        ’ Zoom to show both points.        Dim tempLayer As MsSql2008FeatureLayer = WinformsMap1.FindFeatureLayer(“TrailLayer”)        tempLayer.Open()        WinformsMap1.CurrentExtent = tempLayer.GetBoundingBox        tempLayer.Close()        WinformsMap1.Refresh()        ’ If it fails, zoom to 179.999 and 89.999 instead and see if it still crashes.    End SubEnd Class ` **&nbsp;**** &nbsp; ****&nbsp;**

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 24, 2012, 1:05pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/14 "2012-09-24T13:05:32Z")

</div>

Failure&nbsp;is&nbsp;at&nbsp;the&nbsp;second&nbsp;instance&nbsp;of&nbsp;the&nbsp;code:&nbsp;  
  
WinformsMap1.Refresh()

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [September 24, 2012, 8:44pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/15 "2012-09-24T20:44:38Z")

</div>

Hi&nbsp;David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Which&nbsp;version&nbsp;are&nbsp;you&nbsp;using?&nbsp;I&nbsp;tested&nbsp;with&nbsp;6.0.0.134&nbsp;and&nbsp;6.0.134.0&nbsp;and&nbsp;there&nbsp;is&nbsp;no&nbsp;exception&nbsp;even&nbsp;I&nbsp;added&nbsp;the&nbsp;new&nbsp;PointShape(185,&nbsp;100)&nbsp;which&nbsp;is&nbsp;out&nbsp;of&nbsp;the&nbsp;earth&nbsp;and&nbsp;zoom&nbsp;out&nbsp;to&nbsp;(-532.275,433.2875,612.4125,-383.4625).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Edgar

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 24, 2012, 9:00pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/16 "2012-09-24T21:00:33Z")

</div>

Thanks&nbsp;for&nbsp;the&nbsp;reply.&nbsp;I&nbsp;am&nbsp;only&nbsp;using&nbsp;5.5&nbsp;but&nbsp;I&nbsp;have&nbsp;been&nbsp;watching&nbsp;the&nbsp;change&nbsp;logs&nbsp;pretty&nbsp;closely&nbsp;-&nbsp;has&nbsp;there&nbsp;been&nbsp;any&nbsp;work&nbsp;done&nbsp;in&nbsp;this&nbsp;area?&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Also&nbsp;note&nbsp;that&nbsp;I&nbsp;am&nbsp;adding&nbsp;spatial&nbsp;records&nbsp;to&nbsp;a&nbsp;SQL&nbsp;server&nbsp;table&nbsp;-&nbsp;not&nbsp;adding&nbsp;point&nbsp;shapes&nbsp;-&nbsp;the&nbsp;crash&nbsp;occurs&nbsp;at&nbsp;the&nbsp;WinformsMap1.Refresh()&nbsp;line&nbsp;after&nbsp;records&nbsp;have&nbsp;been&nbsp;added&nbsp;to&nbsp;the&nbsp;SQL&nbsp;Server&nbsp;table&nbsp;which&nbsp;has&nbsp;spatial&nbsp;data.&nbsp;I&nbsp;am&nbsp;not&nbsp;sure&nbsp;if&nbsp;just&nbsp;adding&nbsp;a&nbsp;pointshape&nbsp;to&nbsp;some&nbsp;other&nbsp;layer&nbsp;is&nbsp;the&nbsp;same&nbsp;-&nbsp;or&nbsp;did&nbsp;you&nbsp;use&nbsp;a&nbsp;MsSql2008FeatureLayer?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Dave

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [September 24, 2012, 9:25pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/17 "2012-09-24T21:25:02Z")

</div>

Yes&nbsp;I’m&nbsp;using&nbsp;MsSql2008FeatureLayer,&nbsp;I&nbsp;used&nbsp;the&nbsp;sqlLayer.EditTools.Add()&nbsp;method&nbsp;to&nbsp;add&nbsp;the&nbsp;point,&nbsp;and&nbsp;in&nbsp;our&nbsp;Core&nbsp;code,&nbsp;and&nbsp;the&nbsp;spatial&nbsp;data&nbsp;of&nbsp;the&nbsp;table&nbsp;is&nbsp;geometry.&nbsp;I&nbsp;noticed&nbsp;you&nbsp;are&nbsp;using&nbsp;geography&nbsp;right?&nbsp;I’ll&nbsp;confirm&nbsp;it&nbsp;with&nbsp;geography&nbsp;and&nbsp;let&nbsp;you&nbsp;know&nbsp;the&nbsp;result.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Edgar

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 24, 2012, 9:37pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/18 "2012-09-24T21:37:16Z")

</div>

Geometry&nbsp;vs&nbsp;Geography…I&nbsp;am&nbsp;not&nbsp;a&nbsp;surveyor,&nbsp;though&nbsp;I&nbsp;do&nbsp;have&nbsp;one&nbsp;as&nbsp;Managing&nbsp;Director&nbsp;-&nbsp;I&nbsp;could&nbsp;ask&nbsp;him&nbsp;I&nbsp;guess.&nbsp;However:&nbsp;  
&nbsp;&nbsp;  
&nbsp;[msdn.microsoft.com/en-us/library/bb933790.aspx](http://msdn.microsoft.com/en-us/library/bb933790.aspx)&nbsp;says&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;geometry&nbsp;type&nbsp;represents&nbsp;data&nbsp;in&nbsp;a&nbsp;Euclidean&nbsp;(flat)&nbsp;coordinate&nbsp;system.&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;geography&nbsp;type&nbsp;represents&nbsp;data&nbsp;in&nbsp;a&nbsp;round-earth&nbsp;coordinate&nbsp;system.&nbsp;  
&nbsp;I&nbsp;am&nbsp;working&nbsp;with&nbsp;GPS&nbsp;data&nbsp;from&nbsp;all&nbsp;over&nbsp;the&nbsp;world.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Also&nbsp;  
&nbsp;[stackoverflow.com/questions/4991827/geometry-and-geography-difference-sql-server-2008](http://stackoverflow.com/questions/4991827/geometry-and-geography-difference-sql-server-2008)&nbsp;says:&nbsp;  
&nbsp;GEOMETRY&nbsp;is&nbsp;for&nbsp;planar&nbsp;spatial&nbsp;data&nbsp;(that&nbsp;is,&nbsp;data&nbsp;on&nbsp;a&nbsp;flat&nbsp;surface)&nbsp;  
&nbsp;GEOGRAPHY&nbsp;is&nbsp;for&nbsp;terrestrial&nbsp;spatial&nbsp;data&nbsp;(that&nbsp;is,&nbsp;data&nbsp;on&nbsp;the&nbsp;(curved)&nbsp;surface&nbsp;of&nbsp;the&nbsp;Earth)&nbsp;  
&nbsp;&nbsp;  
&nbsp;So,&nbsp;I&nbsp;could&nbsp;try&nbsp;Geometry&nbsp;but&nbsp;I&nbsp;am&nbsp;loathe&nbsp;to&nbsp;unless&nbsp;I&nbsp;can&nbsp;understand&nbsp;why&nbsp;I&nbsp;need&nbsp;to.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;will&nbsp;await&nbsp;the&nbsp;results&nbsp;of&nbsp;your&nbsp;Geography&nbsp;test.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Dave

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [September 24, 2012, 9:59pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/19 "2012-09-24T21:59:30Z")

</div>

I&nbsp;tested&nbsp;the&nbsp;Geography&nbsp;and&nbsp;got&nbsp;the&nbsp;exception,&nbsp;this&nbsp;is&nbsp;a&nbsp;bug&nbsp;which&nbsp;we&nbsp;just&nbsp;confirmed,&nbsp;and&nbsp;now&nbsp;it&nbsp;has&nbsp;been&nbsp;fixed,&nbsp;please&nbsp;get&nbsp;the&nbsp;6.0.135.0&nbsp;or&nbsp;6.0.0.135&nbsp;or&nbsp;higher&nbsp;and&nbsp;have&nbsp;a&nbsp;try.&nbsp;Notice&nbsp;the&nbsp;latest&nbsp;daily&nbsp;build&nbsp;won’t&nbsp;be&nbsp;available&nbsp;until&nbsp;tomorrow.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Edgar

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 24, 2012, 10:30pm UTC](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502/20 "2012-09-24T22:30:14Z")

</div>

Brilliant&nbsp;-&nbsp;that&nbsp;has&nbsp;had&nbsp;me&nbsp;confused&nbsp;since&nbsp;2010!&nbsp;I&nbsp;will&nbsp;grab&nbsp;the&nbsp;new&nbsp;version&nbsp;tomorrow.&nbsp;  
&nbsp;&nbsp;  
&nbsp;(Wow&nbsp;-&nbsp;have&nbsp;I&nbsp;been&nbsp;on&nbsp;this&nbsp;project&nbsp;that&nbsp;long?&nbsp;So&nbsp;much&nbsp;for&nbsp;my&nbsp;3&nbsp;month&nbsp;time-frame&nbsp;to&nbsp;finish&nbsp;it!)

[Next page](https://community.thinkgeo.com/t/hemisphere-problem-with-map-refresh-sql2008/1502.md?page=2)
