# Repositioning with CenterAt under rotation

**URL:** <https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537>\
**Category:** WinForms\
**Created:** [December 16, 2010, 7:30am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537 "2010-12-16T07:30:36Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 16, 2010, 7:30am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/1 "2010-12-16T07:30:36Z")

</div>

Hello,

I&nbsp;searched&nbsp;the&nbsp;forums&nbsp;for&nbsp;something&nbsp;like&nbsp;this&nbsp;and&nbsp;didn't&nbsp;find&nbsp;anything.

Here's&nbsp;my&nbsp;scenario:

1.&nbsp;When&nbsp;my&nbsp;application&nbsp;starts,&nbsp;it's&nbsp;positioned&nbsp;in&nbsp;the&nbsp;middle&nbsp;of&nbsp;the&nbsp;county.

2.&nbsp;I&nbsp;click&nbsp;a&nbsp;button&nbsp;and&nbsp;center&nbsp;the&nbsp;map&nbsp;on&nbsp;the&nbsp;building&nbsp;our&nbsp;office&nbsp;is&nbsp;located&nbsp;in

3.&nbsp;Once&nbsp;the&nbsp;map&nbsp;is&nbsp;centered&nbsp;on&nbsp;our&nbsp;building&nbsp;I&nbsp;apply&nbsp;15&nbsp;degrees&nbsp;of&nbsp;map&nbsp;rotation,&nbsp;then&nbsp;use&nbsp;CenterAt&nbsp;to&nbsp;recenter&nbsp;the&nbsp;map&nbsp;on&nbsp;a&nbsp;shopping&nbsp;mall&nbsp;a&nbsp;few&nbsp;miles&nbsp;away.&nbsp;The&nbsp;map&nbsp;is&nbsp;positioned&nbsp;at&nbsp;the&nbsp;wrong&nbsp;location.

4.&nbsp;I&nbsp;click&nbsp;a&nbsp;button&nbsp;to&nbsp;return&nbsp;to&nbsp;our&nbsp;office&nbsp;building&nbsp;and&nbsp;the&nbsp;location&nbsp;IS&nbsp;CORRECT.&nbsp;

If&nbsp;I&nbsp;switch&nbsp;the&nbsp;order&nbsp;and&nbsp;apply&nbsp;the&nbsp;rotation&nbsp;after&nbsp;centering&nbsp;on&nbsp;the&nbsp;shopping&nbsp;mall&nbsp;and&nbsp;CenterAt&nbsp;to&nbsp;our&nbsp;office&nbsp;building,&nbsp;the&nbsp;map&nbsp;goes&nbsp;to&nbsp;the&nbsp;wrong&nbsp;location,&nbsp;but&nbsp;if&nbsp;I&nbsp;then&nbsp;click&nbsp;on&nbsp;the&nbsp;button&nbsp;to&nbsp;go&nbsp;BACK&nbsp;to&nbsp;the&nbsp;shopping&nbsp;mall,&nbsp;the&nbsp;map&nbsp;positions&nbsp;correctly.

It&nbsp;appears&nbsp;that&nbsp;internally&nbsp;when&nbsp;the&nbsp;rotation&nbsp;is&nbsp;set&nbsp;the&nbsp;map's&nbsp;center&nbsp;is&nbsp;captured.&nbsp;&nbsp;Does&nbsp;this&nbsp;mean&nbsp;that&nbsp;each&nbsp;time&nbsp;I&nbsp;do&nbsp;a&nbsp;CenterAt&nbsp;to&nbsp;move&nbsp;to&nbsp;a&nbsp;new&nbsp;location&nbsp;I&nbsp;have&nbsp;to&nbsp;set&nbsp;RotationProjection.Angle&nbsp;to&nbsp;reestablish&nbsp;the&nbsp;map&nbsp;rotation&nbsp;point?

Thanks,

Allen&nbsp;Huber

---

<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 16, 2010, 9:16am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/2 "2010-12-16T09:16:38Z")

</div>

Allen,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;questions.  
&nbsp;  
Please&nbsp;take&nbsp;a&nbsp;look&nbsp;at&nbsp;the&nbsp;following&nbsp;topics;&nbsp;I&nbsp;think&nbsp;they&nbsp;are&nbsp;exactly&nbsp;talking&nbsp;about&nbsp;the&nbsp;same&nbsp;issue&nbsp;with&nbsp;yours:  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/7134/afv/topic/Default.aspx)  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/7755/afv/topic/Default.aspx)  
&nbsp;  
Please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;still&nbsp;have&nbsp;problems,&nbsp;it&nbsp;would&nbsp;be&nbsp;nice&nbsp;if&nbsp;we&nbsp;can&nbsp;concrete&nbsp;this&nbsp;problem&nbsp;into&nbsp;a&nbsp;sample,&nbsp;which&nbsp;definitely&nbsp;would&nbsp;be&nbsp;helpful&nbsp;and&nbsp;convenient&nbsp;to&nbsp;identify&nbsp;the&nbsp;issue&nbsp;quickly.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 16, 2010, 9:52am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/3 "2010-12-16T09:52:15Z")

</div>

Hi&nbsp;Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Actually,&nbsp;I’ve&nbsp;seen&nbsp;those&nbsp;two&nbsp;posts&nbsp;and&nbsp;I&nbsp;don’t&nbsp;think&nbsp;they’re&nbsp;really&nbsp;directly&nbsp;related.&nbsp;&nbsp;They&nbsp;both&nbsp;talk&nbsp;about&nbsp;a&nbsp;map&nbsp;that&nbsp;is&nbsp;constantly&nbsp;being&nbsp;rotated,&nbsp;and&nbsp;thus&nbsp;the&nbsp;code&nbsp;must&nbsp;constantly&nbsp;set&nbsp;the&nbsp;rotation&nbsp;angle.&nbsp;&nbsp;I&nbsp;am&nbsp;not&nbsp;doing&nbsp;that.&nbsp;&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;a&nbsp;position&nbsp;on&nbsp;the&nbsp;map,&nbsp;setting&nbsp;the&nbsp;rotation&nbsp;ONCE,&nbsp;and&nbsp;then&nbsp;simply&nbsp;using&nbsp;CenterAt&nbsp;to&nbsp;move&nbsp;back&nbsp;and&nbsp;forth&nbsp;between&nbsp;points&nbsp;on&nbsp;the&nbsp;map&nbsp;without&nbsp;further&nbsp;rotation&nbsp;changes.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’m&nbsp;getting&nbsp;ready&nbsp;for&nbsp;lunch,&nbsp;but&nbsp;when&nbsp;I&nbsp;come&nbsp;back&nbsp;I&nbsp;think&nbsp;this&nbsp;can&nbsp;be&nbsp;demonstrated&nbsp;with&nbsp;a&nbsp;simple&nbsp;example.&nbsp;&nbsp;I’ll&nbsp;work&nbsp;on&nbsp;that&nbsp;when&nbsp;I&nbsp;get&nbsp;back.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Allen

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 16, 2010, 12:18pm UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/4 "2010-12-16T12:18:01Z")

</div>

Hi&nbsp;Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’ve&nbsp;just&nbsp;finished&nbsp;a&nbsp;real&nbsp;simple&nbsp;example&nbsp;of&nbsp;this.&nbsp;&nbsp;It’s&nbsp;a&nbsp;4&nbsp;MB&nbsp;file&nbsp;(with&nbsp;the&nbsp;data&nbsp;shapefile)&nbsp;which&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;send&nbsp;to&nbsp;the&nbsp;support&nbsp;e-mail&nbsp;account&nbsp;with&nbsp;directions&nbsp;to&nbsp;forward&nbsp;it&nbsp;on&nbsp;to&nbsp;you.&nbsp;&nbsp;I&nbsp;also&nbsp;included&nbsp;a&nbsp;Word&nbsp;document&nbsp;which&nbsp;shows,&nbsp;with&nbsp;pictures,&nbsp;step-by-step&nbsp;as&nbsp;to&nbsp;what&nbsp;I’m&nbsp;talking&nbsp;about.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks…&nbsp;  
&nbsp;Allen

---

<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 17, 2010, 9:06am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/5 "2010-12-17T09:06:51Z")

</div>

Allen,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;sample&nbsp;code&nbsp;and&nbsp;guides&nbsp;to&nbsp;recreate&nbsp;this&nbsp;problem,&nbsp;I&nbsp;will&nbsp;look&nbsp;into&nbsp;it&nbsp;and&nbsp;get&nbsp;you&nbsp;updated&nbsp;as&nbsp;soon&nbsp;as&nbsp;possible.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&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 20, 2010, 7:35am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/6 "2010-12-20T07:35:10Z")

</div>

&nbsp;Allen,

Please&nbsp;take&nbsp;a&nbsp;try&nbsp;to&nbsp;use&nbsp;the&nbsp;following&nbsp;code&nbsp;snippet&nbsp;in&nbsp;sample,&nbsp;hope&nbsp;it&nbsp;works.&nbsp;Any&nbsp;feedbacks&nbsp;would&nbsp;be&nbsp;appreciated.

&nbsp;

`        private void button1_Click(object sender, EventArgs e)        {            Feature libertyFeature = new Feature(-8495264, 4846003);            rotationProjection.Open();            Feature rotatedLiberityFeature = rotationProjection.ConvertToExternalProjection(libertyFeature);             winformsMap1.CenterAt(rotatedLiberityFeature);            winformsMap1.Refresh();        }         private void button2_Click(object sender, EventArgs e)        {            Feature libertyFeature = new Feature(-8498033, 4848226);            rotationProjection.Open();            Feature rotatedPackCityFeature = rotationProjection.ConvertToExternalProjection(libertyFeature);             winformsMap1.CenterAt(rotatedPackCityFeature);            winformsMap1.Refresh();        }`

Any&nbsp;more&nbsp;questions&nbsp;or&nbsp;concerns&nbsp;please&nbsp;do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;me&nbsp;know.

Thanks.

Yale

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 20, 2010, 12:47pm UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/7 "2010-12-20T12:47:03Z")

</div>

Thanks&nbsp;Yale…&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;had&nbsp;a&nbsp;feeling&nbsp;that&nbsp;this&nbsp;might&nbsp;have&nbsp;something&nbsp;to&nbsp;do&nbsp;with&nbsp;it,&nbsp;but&nbsp;the&nbsp;exact&nbsp;purposes&nbsp;of&nbsp;ConvertToExternalProjection&nbsp;and&nbsp;ConvertToInternalProjection,&nbsp;and&nbsp;maybe&nbsp;more&nbsp;useful,&nbsp;when&nbsp;their&nbsp;use&nbsp;is&nbsp;needed,&nbsp;doesn’t&nbsp;appear&nbsp;to&nbsp;be&nbsp;well&nbsp;documented.&nbsp;&nbsp;I&nbsp;may&nbsp;not&nbsp;get&nbsp;to&nbsp;this&nbsp;today&nbsp;but&nbsp;I&nbsp;should&nbsp;be&nbsp;able&nbsp;to&nbsp;first&nbsp;thing&nbsp;tomorrow&nbsp;and&nbsp;will&nbsp;report&nbsp;back.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Allen

---

<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 21, 2010, 7:39am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/8 "2010-12-21T07:39:12Z")

</div>

Allen,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Please&nbsp;take&nbsp;a&nbsp;try&nbsp;at&nbsp;your&nbsp;convenient&nbsp;time&nbsp;and&nbsp;any&nbsp;feedbacks&nbsp;would&nbsp;be&nbsp;appreciated.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;or&nbsp;concerns&nbsp;please&nbsp;do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [December 21, 2010, 8:09am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/9 "2010-12-21T08:09:50Z")

</div>

Allen,

&nbsp;Also,&nbsp;I&nbsp;want&nbsp;to&nbsp;let&nbsp;you&nbsp;know&nbsp;that&nbsp;we&nbsp;have&nbsp;a&nbsp;Code&nbsp;Community&nbsp;sample&nbsp;that&nbsp;shows&nbsp;how&nbsp;to&nbsp;have&nbsp;the&nbsp;map&nbsp;rotated&nbsp;and&nbsp;centered&nbsp;based&nbsp;on&nbsp;the&nbsp;direction&nbsp;and&nbsp;location&nbsp;of&nbsp;a&nbsp;moving&nbsp;vehicle.&nbsp;I&nbsp;suggest&nbsp;you&nbsp;take&nbsp;a&nbsp;look&nbsp;at&nbsp;that&nbsp;also.&nbsp;The&nbsp;sample&nbsp;is&nbsp;_Centering&nbsp;and&nbsp;Rotating_&nbsp;and&nbsp;it&nbsp;is&nbsp;a&nbsp;Desktop&nbsp;application.[wiki.thinkgeo.com/wiki/Map\_Suite\_De...ng\_Samples](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_Vehicle_Tracking_Samples)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/1/130d5d0ea08da7246fdeb8bf102a65d8324343fe.jpg)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 24, 2010, 10:23am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/10 "2010-12-24T10:23:21Z")

</div>

Val,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yes,&nbsp;I’m&nbsp;familiar&nbsp;with&nbsp;that&nbsp;example.&nbsp;&nbsp;It’s&nbsp;something&nbsp;like&nbsp;what&nbsp;we’re&nbsp;doing&nbsp;in&nbsp;our&nbsp;software,&nbsp;but&nbsp;not&nbsp;quite.&nbsp;&nbsp;Our&nbsp;software&nbsp;typically&nbsp;runs&nbsp;on&nbsp;low-end&nbsp;hardware&nbsp;(perhaps&nbsp;somewhat&nbsp;equal&nbsp;to&nbsp;a&nbsp;typical&nbsp;netbook;&nbsp;maybe&nbsp;less)&nbsp;so&nbsp;redrawing&nbsp;the&nbsp;map&nbsp;each&nbsp;time&nbsp;a&nbsp;new&nbsp;GPS&nbsp;position&nbsp;comes&nbsp;in&nbsp;is&nbsp;not&nbsp;possible&nbsp;because&nbsp;the&nbsp;hardware&nbsp;can’t&nbsp;keep&nbsp;up.&nbsp;&nbsp;I’ve&nbsp;come&nbsp;to&nbsp;a&nbsp;stop&nbsp;in&nbsp;a&nbsp;parking&nbsp;lot&nbsp;and&nbsp;watched&nbsp;the&nbsp;map&nbsp;redraw&nbsp;for&nbsp;ten&nbsp;or&nbsp;fifteen&nbsp;seconds&nbsp;before&nbsp;it&nbsp;caught&nbsp;up.&nbsp;which&nbsp;of&nbsp;course&nbsp;is&nbsp;unacceptable.&nbsp;&nbsp;(Plus,&nbsp;our&nbsp;data&nbsp;source&nbsp;is&nbsp;SQL&nbsp;Server,&nbsp;which&nbsp;is&nbsp;not&nbsp;as&nbsp;speedy&nbsp;as&nbsp;shapefiles.)&nbsp;&nbsp;As&nbsp;with&nbsp;the&nbsp;Community&nbsp;example,&nbsp;we&nbsp;have&nbsp;modes&nbsp;in&nbsp;our&nbsp;application&nbsp;that&nbsp;keeps&nbsp;the&nbsp;direction&nbsp;of&nbsp;travel&nbsp;pointing&nbsp;toward&nbsp;the&nbsp;top&nbsp;of&nbsp;the&nbsp;map.&nbsp;&nbsp;However,&nbsp;to&nbsp;reduce&nbsp;the&nbsp;number&nbsp;of&nbsp;redraws&nbsp;we&nbsp;accumulate&nbsp;the&nbsp;vehicle&nbsp;bearing&nbsp;changes&nbsp;until&nbsp;it&nbsp;reaches&nbsp;a&nbsp;certain&nbsp;level&nbsp;(it’s&nbsp;something&nbsp;like&nbsp;+/-30&nbsp;degrees)&nbsp;and&nbsp;then&nbsp;force&nbsp;a&nbsp;redraw&nbsp;and&nbsp;recenter.&nbsp;&nbsp;We&nbsp;also&nbsp;have&nbsp;a&nbsp;mode&nbsp;where&nbsp;the&nbsp;vehicle&nbsp;moves&nbsp;but&nbsp;when&nbsp;it&nbsp;gets&nbsp;near&nbsp;the&nbsp;edge&nbsp;of&nbsp;the&nbsp;visible&nbsp;map&nbsp;it’s&nbsp;recentered,&nbsp;IN&nbsp;COMBINATION&nbsp;WITH&nbsp;the&nbsp;accumulated&nbsp;rotation.&nbsp;&nbsp;Without&nbsp;rotation,&nbsp;or&nbsp;if&nbsp;the&nbsp;rotation&nbsp;is&nbsp;applied&nbsp;every&nbsp;time&nbsp;the&nbsp;position&nbsp;is&nbsp;changed&nbsp;(like&nbsp;the&nbsp;example)&nbsp;appears&nbsp;to&nbsp;be&nbsp;simple&nbsp;to&nbsp;code,&nbsp;but&nbsp;with&nbsp;MapSuite&nbsp;(and&nbsp;other&nbsp;mapping&nbsp;products&nbsp;we’ve&nbsp;used&nbsp;in&nbsp;the&nbsp;past)&nbsp;if&nbsp;you&nbsp;don’t&nbsp;redraw&nbsp;the&nbsp;map&nbsp;each&nbsp;time&nbsp;it&nbsp;gets&nbsp;tough&nbsp;to&nbsp;code,&nbsp;I&nbsp;guess&nbsp;because&nbsp;of&nbsp;the&nbsp;way&nbsp;map&nbsp;rotation&nbsp;is&nbsp;implemented.&nbsp;&nbsp;We’ve&nbsp;used&nbsp;other&nbsp;products&nbsp;where&nbsp;the&nbsp;code&nbsp;must&nbsp;explicitly&nbsp;set&nbsp;the&nbsp;map’s&nbsp;rotation&nbsp;point.&nbsp;&nbsp;MapSuite&nbsp;doesn’t&nbsp;have&nbsp;this&nbsp;function,&nbsp;and&nbsp;it&nbsp;seems&nbsp;to&nbsp;me&nbsp;(I’m&nbsp;just&nbsp;about&nbsp;to&nbsp;try&nbsp;this)&nbsp;that&nbsp;whenever&nbsp;the&nbsp;rotation&nbsp;is&nbsp;set&nbsp;the&nbsp;current&nbsp;map&nbsp;location&nbsp;is&nbsp;taken&nbsp;to&nbsp;be&nbsp;the&nbsp;new&nbsp;map&nbsp;rotation&nbsp;point,&nbsp;which&nbsp;means&nbsp;if&nbsp;I&nbsp;recenter&nbsp;the&nbsp;map&nbsp;I&nbsp;must&nbsp;apply&nbsp;the&nbsp;rotation&nbsp;angle&nbsp;even&nbsp;if&nbsp;the&nbsp;angle&nbsp;hasn’t&nbsp;changed.&nbsp;&nbsp;This&nbsp;is&nbsp;vital&nbsp;to&nbsp;us&nbsp;because,&nbsp;as&nbsp;I&nbsp;just&nbsp;noted,&nbsp;we&nbsp;do&nbsp;not&nbsp;rotate&nbsp;nor&nbsp;recenter&nbsp;the&nbsp;map&nbsp;each&nbsp;time&nbsp;we&nbsp;get&nbsp;a&nbsp;new&nbsp;GPS&nbsp;position.&nbsp;&nbsp;I&nbsp;just&nbsp;haven’t&nbsp;been&nbsp;able&nbsp;to&nbsp;get&nbsp;anyone&nbsp;to&nbsp;confirm&nbsp;that&nbsp;this&nbsp;is&nbsp;actually&nbsp;what&nbsp;happens,&nbsp;nor&nbsp;have&nbsp;I&nbsp;been&nbsp;able&nbsp;to&nbsp;get&nbsp;anyone&nbsp;to&nbsp;explain&nbsp;to&nbsp;me&nbsp;what&nbsp;“ConvertToExternalProjecton”&nbsp;and&nbsp;“ConvertToInternalProjection”&nbsp;do…I’m&nbsp;told&nbsp;to&nbsp;use&nbsp;them&nbsp;in&nbsp;this&nbsp;example,&nbsp;but&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;know&nbsp;WHY&nbsp;so&nbsp;that&nbsp;when&nbsp;I&nbsp;encounter&nbsp;this&nbsp;kind&nbsp;of&nbsp;thing&nbsp;again&nbsp;I’ll&nbsp;know&nbsp;which&nbsp;method&nbsp;to&nbsp;use,&nbsp;if&nbsp;any.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Anyway,&nbsp;I’m&nbsp;off&nbsp;to&nbsp;try&nbsp;Yale’s&nbsp;solution&nbsp;and&nbsp;continue&nbsp;to&nbsp;experiment&nbsp;to&nbsp;figure&nbsp;out&nbsp;how&nbsp;to&nbsp;do&nbsp;what&nbsp;we&nbsp;need&nbsp;to&nbsp;do&nbsp;with&nbsp;the&nbsp;rotation.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Allen

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 24, 2010, 10:47am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/11 "2010-12-24T10:47:40Z")

</div>

Hello&nbsp;Val&nbsp;and&nbsp;Yale…&nbsp;  
&nbsp;&nbsp;  
&nbsp;First,&nbsp;if&nbsp;I&nbsp;went&nbsp;on&nbsp;too&nbsp;long&nbsp;last&nbsp;time,&nbsp;I&nbsp;apologize.&nbsp;&nbsp;Because&nbsp;I&nbsp;tend&nbsp;to&nbsp;dabble&nbsp;with&nbsp;things&nbsp;like&nbsp;this&nbsp;on&nbsp;my&nbsp;own&nbsp;time,&nbsp;I&nbsp;like&nbsp;to&nbsp;know&nbsp;why&nbsp;I&nbsp;have&nbsp;to&nbsp;do&nbsp;things&nbsp;instead&nbsp;of&nbsp;just&nbsp;what&nbsp;to&nbsp;do,&nbsp;but&nbsp;sometimes&nbsp;it’s&nbsp;just&nbsp;easiest&nbsp;to&nbsp;do&nbsp;it&nbsp;and&nbsp;don’t&nbsp;ask&nbsp;questions!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale,&nbsp;I&nbsp;tried&nbsp;your&nbsp;suggestion&nbsp;and&nbsp;it&nbsp;seems&nbsp;to&nbsp;work&nbsp;just&nbsp;fine.&nbsp;&nbsp;When&nbsp;I&nbsp;center&nbsp;on&nbsp;Park&nbsp;City&nbsp;with&nbsp;a&nbsp;rotated&nbsp;map,&nbsp;it&nbsp;goes&nbsp;right&nbsp;where&nbsp;it&nbsp;was&nbsp;supposed&nbsp;to.&nbsp;&nbsp;My&nbsp;big&nbsp;concern&nbsp;was&nbsp;that&nbsp;once&nbsp;I&nbsp;was&nbsp;at&nbsp;Park&nbsp;City&nbsp;and&nbsp;decided&nbsp;to&nbsp;rotate&nbsp;the&nbsp;map&nbsp;more,&nbsp;the&nbsp;rotation&nbsp;point&nbsp;wasn’t&nbsp;where&nbsp;I&nbsp;thought&nbsp;it&nbsp;would&nbsp;be.&nbsp;&nbsp;But&nbsp;I&nbsp;increase&nbsp;the&nbsp;rotation&nbsp;and&nbsp;the&nbsp;map&nbsp;rotated&nbsp;right&nbsp;in&nbsp;the&nbsp;middle&nbsp;of&nbsp;Park&nbsp;City&nbsp;where&nbsp;I&nbsp;hoped&nbsp;it&nbsp;would&nbsp;be.&nbsp;&nbsp;I’m&nbsp;still&nbsp;curious&nbsp;about&nbsp;what&nbsp;updates&nbsp;the&nbsp;map’s&nbsp;rotation&nbsp;point&nbsp;(in&nbsp;opposition&nbsp;to&nbsp;other&nbsp;products,&nbsp;as&nbsp;I&nbsp;noted&nbsp;above,&nbsp;where&nbsp;it’s&nbsp;explicitly&nbsp;coded…with&nbsp;that&nbsp;product&nbsp;the&nbsp;map&nbsp;would&nbsp;center&nbsp;on&nbsp;Park&nbsp;City&nbsp;but&nbsp;continue&nbsp;to&nbsp;rotate&nbsp;around&nbsp;the&nbsp;Liberty&nbsp;Place&nbsp;point&nbsp;until&nbsp;I&nbsp;wrote&nbsp;code&nbsp;to&nbsp;update&nbsp;the&nbsp;rotation&nbsp;point)&nbsp;but&nbsp;as&nbsp;long&nbsp;as&nbsp;it&nbsp;works,&nbsp;I&nbsp;won’t&nbsp;press&nbsp;the&nbsp;issue.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;and&nbsp;enjoy&nbsp;whatever&nbsp;holiday&nbsp;time&nbsp;off&nbsp;you&nbsp;have…&nbsp;  
&nbsp;Allen

---

<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 27, 2010, 7:21am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/12 "2010-12-27T07:21:16Z")

</div>

Allen,

Thanks&nbsp;for&nbsp;your&nbsp;feedbacks&nbsp;and&nbsp;Happy&nbsp;New&nbsp;Year&nbsp;2011!  
&nbsp;  
I&nbsp;am&nbsp;sorry&nbsp;for&nbsp;not&nbsp;trying&nbsp;to&nbsp;explain&nbsp;clearly&nbsp;about&nbsp;the&nbsp;Projection,&nbsp;now,&nbsp;I&nbsp;will&nbsp;take&nbsp;a&nbsp;try,&nbsp;hope&nbsp;it&nbsp;helps.  
&nbsp;  
Every&nbsp;projection&nbsp;no&nbsp;matter&nbsp;what&nbsp;kinds&nbsp;of&nbsp;projection&nbsp;it&nbsp;is&nbsp;,&nbsp;it&nbsp;has&nbsp;two&nbsp;kinds&nbsp;or&nbsp;data:&nbsp;original&nbsp;data&nbsp;and&nbsp;projected&nbsp;data.&nbsp;For&nbsp;the&nbsp;proj4&nbsp;projection,&nbsp;the&nbsp;original&nbsp;data&nbsp;means&nbsp;the&nbsp;data&nbsp;is&nbsp;in&nbsp;the&nbsp;original&nbsp;srid&nbsp;projection&nbsp;system,&nbsp;and&nbsp;the&nbsp;&nbsp;projected&nbsp;data&nbsp;means&nbsp;the&nbsp;data&nbsp;is&nbsp;in&nbsp;the&nbsp;target&nbsp;srid&nbsp;projection&nbsp;system.&nbsp;Similar,&nbsp;in&nbsp;the&nbsp;rotation&nbsp;projection&nbsp;system,&nbsp;the&nbsp;original&nbsp;data&nbsp;means&nbsp;the&nbsp;data&nbsp;before&nbsp;rotated,&nbsp;and&nbsp;the&nbsp;projected&nbsp;data&nbsp;means&nbsp;the&nbsp;data&nbsp;after&nbsp;rotation.  
&nbsp;  
In&nbsp;the&nbsp;example&nbsp;provided,&nbsp;&nbsp;we&nbsp;set&nbsp;the&nbsp;rotation&nbsp;projection&nbsp;to&nbsp;the&nbsp;target&nbsp;layer,&nbsp;so&nbsp;when&nbsp;we&nbsp;use&nbsp;the&nbsp;Center&nbsp;API,&nbsp;we&nbsp;should&nbsp;passed&nbsp;in&nbsp;a&nbsp;rotated&nbsp;point&nbsp;instead&nbsp;of&nbsp;original&nbsp;point,&nbsp;so&nbsp;we&nbsp;use&nbsp;the&nbsp;API&nbsp;ConvertToExtentalProjection&nbsp;to&nbsp;project&nbsp;data&nbsp;from&nbsp;original&nbsp;data&nbsp;to&nbsp;projected&nbsp;data(vice&nbsp;versa).&nbsp;That&nbsp;is&nbsp;why&nbsp;we&nbsp;use&nbsp;the&nbsp;API&nbsp;to&nbsp;project&nbsp;before&nbsp;calling&nbsp;the&nbsp;CenterAt&nbsp;API.  
  
`layer.FeatureSource.Projection = rotationProjection;`  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;or&nbsp;concerns&nbsp;please&nbsp;do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Allen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@Allen](https://community.thinkgeo.com/u/Allen)\
**Post date:** [December 28, 2010, 4:33am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/13 "2010-12-28T04:33:51Z")

</div>

Thanks&nbsp;for&nbsp;the&nbsp;info&nbsp;Yale…maybe&nbsp;having&nbsp;it&nbsp;documented&nbsp;here&nbsp;will&nbsp;help&nbsp;someone&nbsp;else&nbsp;in&nbsp;the&nbsp;future.&nbsp;&nbsp;I&nbsp;have&nbsp;been&nbsp;working&nbsp;on&nbsp;some&nbsp;rotation&nbsp;code&nbsp;and&nbsp;have&nbsp;been&nbsp;able&nbsp;to&nbsp;make&nbsp;MapSuite&nbsp;do&nbsp;what&nbsp;I&nbsp;need.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;In&nbsp;case&nbsp;I&nbsp;don’t&nbsp;have&nbsp;any&nbsp;more&nbsp;questions&nbsp;this&nbsp;week&nbsp;(and&nbsp;I&nbsp;hope&nbsp;things&nbsp;are&nbsp;quiet&nbsp;here&nbsp;the&nbsp;rest&nbsp;of&nbsp;the&nbsp;week&nbsp;and&nbsp;I&nbsp;won’t)&nbsp;you&nbsp;have&nbsp;a&nbsp;great&nbsp;New&nbsp;Year&nbsp;as&nbsp;well.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Allen

---

<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 28, 2010, 7:25am UTC](https://community.thinkgeo.com/t/repositioning-with-centerat-under-rotation/1537/14 "2010-12-28T07:25:39Z")

</div>

Allen,

Thanks&nbsp;for&nbsp;your&nbsp;posts.&nbsp;I&nbsp;agree&nbsp;that&nbsp;some&nbsp;classes’&nbsp;documentations&nbsp;need&nbsp;to&nbsp;be&nbsp;enhanced&nbsp;and&nbsp;improved,&nbsp;that&nbsp;is&nbsp;the&nbsp;target&nbsp;we&nbsp;are&nbsp;always&nbsp;trying&nbsp;to&nbsp;achieve,&nbsp;sorry&nbsp;if&nbsp;causing&nbsp;you&nbsp;the&nbsp;inconvenience.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;or&nbsp;concerns&nbsp;please&nbsp;do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
