# Co- Ordinates mismatch problem

**URL:** <https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988>\
**Category:** WinForms\
**Created:** [January 25, 2010, 4:09am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988 "2010-01-25T04:09:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [January 25, 2010, 4:09am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/1 "2010-01-25T04:09:43Z")

</div>

Hi&nbsp;all

Am&nbsp;using&nbsp;geoTIF&nbsp;image&nbsp;with&nbsp;inbuild&nbsp;co&nbsp;ordinates.&nbsp;map&nbsp;layer&nbsp;loading&nbsp;and&nbsp;ploting&nbsp;my&nbsp;points&nbsp;in&nbsp;my&nbsp;map&nbsp;everythng&nbsp;working&nbsp;well.&nbsp;but&nbsp;the&nbsp;problem&nbsp;is

-----&nbsp;the&nbsp;co&nbsp;ordinate&nbsp;is&nbsp;mismatching.

when&nbsp;am&nbsp;loading&nbsp;my&nbsp;map&nbsp;layer&nbsp;in&nbsp;my&nbsp;application&nbsp;it&nbsp;showing&nbsp;some&nbsp;other&nbsp;co&nbsp;ordinates.&nbsp;i&nbsp;cant&nbsp;correctly&nbsp;locate&nbsp;my&nbsp;real&nbsp;co&nbsp;ordinates&nbsp;in&nbsp;my&nbsp;map..&nbsp;when&nbsp;am&nbsp;trying&nbsp;to&nbsp;locate&nbsp;co&nbsp;ordinates&nbsp;it&nbsp;being&nbsp;located&nbsp;some&nbsp;other&nbsp;locations&nbsp;in&nbsp;map.

i&nbsp;don&nbsp;know&nbsp;how&nbsp;to&nbsp;convert&nbsp;my&nbsp;co&nbsp;ordinates&nbsp;to&nbsp;the&nbsp;WPFMAP&nbsp;default&nbsp;co&nbsp;ordinates.

--&nbsp;and&nbsp;i&nbsp;want&nbsp;to&nbsp;show&nbsp;some&nbsp;thing&nbsp;when&nbsp;user&nbsp;click&nbsp;on&nbsp;the&nbsp;located&nbsp;point.&nbsp;how&nbsp;to&nbsp;cal&nbsp;that&nbsp;in&nbsp;our&nbsp;map&nbsp;suite.&nbsp;is&nbsp;it&nbsp;possible&nbsp;here.

Can&nbsp;u&nbsp;tel&nbsp;tel&nbsp;me&nbsp;resolve&nbsp;this...&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:** [January 25, 2010, 6:45am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/2 "2010-01-25T06:45:41Z")

</div>

Hi&nbsp;dCODE,

&nbsp;

For&nbsp;your&nbsp;first&nbsp;question,&nbsp;I&nbsp;want&nbsp;to&nbsp;clarify&nbsp;some&nbsp;information&nbsp;with&nbsp;you:

&nbsp;

1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You&nbsp;are&nbsp;using&nbsp;two&nbsp;layers&nbsp;in&nbsp;your&nbsp;map&nbsp;control,&nbsp;one&nbsp;is&nbsp;a&nbsp;GeoTiffRasterLayer&nbsp;holding&nbsp;the&nbsp;tiff&nbsp;image,&nbsp;and&nbsp;the&nbsp;other&nbsp;is&nbsp;a&nbsp;ShapeFileFeatureLayer&nbsp;holding&nbsp;some&nbsp;points,&nbsp;and&nbsp;they&nbsp;are&nbsp;not&nbsp;matched&nbsp;each&nbsp;other,&nbsp;am&nbsp;I&nbsp;right?

2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;you&nbsp;know&nbsp;any&nbsp;projection&nbsp;information&nbsp;about&nbsp;your&nbsp;tiff&nbsp;image?&nbsp;Is&nbsp;it&nbsp;in&nbsp;WGS&nbsp;84&nbsp;coordinate&nbsp;system&nbsp;or&nbsp;some&nbsp;other&nbsp;projection?&nbsp;You&nbsp;have&nbsp;to&nbsp;make&nbsp;sure&nbsp;your&nbsp;tiff&nbsp;layer&nbsp;and&nbsp;your&nbsp;shape&nbsp;file&nbsp;layer&nbsp;are&nbsp;displaying&nbsp;in&nbsp;the&nbsp;same&nbsp;projection,&nbsp;and&nbsp;you&nbsp;also&nbsp;should&nbsp;make&nbsp;sure&nbsp;the&nbsp;map&nbsp;unit&nbsp;property&nbsp;is&nbsp;setting&nbsp;correctly&nbsp;in&nbsp;your&nbsp;application.

3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;sure&nbsp;about&nbsp;the&nbsp;information&nbsp;of&nbsp;your&nbsp;data,&nbsp;could&nbsp;you&nbsp;please&nbsp;give&nbsp;us&nbsp;a&nbsp;simple&nbsp;sample&nbsp;and&nbsp;the&nbsp;sample&nbsp;data&nbsp;so&nbsp;that&nbsp;we&nbsp;can&nbsp;recreate&nbsp;your&nbsp;problem&nbsp;quickly?

&nbsp;

For&nbsp;the&nbsp;second&nbsp;questions,&nbsp;I&nbsp;think&nbsp;you&nbsp;could&nbsp;use&nbsp;the&nbsp;the&nbsp;MapClick&nbsp;event&nbsp;in&nbsp;the&nbsp;map&nbsp;control.&nbsp;You&nbsp;can&nbsp;retrieve&nbsp;a&nbsp;PointShape&nbsp;in&nbsp;world&nbsp;coordinate&nbsp;from&nbsp;the&nbsp;EventArgs&nbsp;to&nbsp;see&nbsp;if&nbsp;it&nbsp;match&nbsp;with&nbsp;any&nbsp;located&nbsp;point.

&nbsp;

Hope&nbsp;this&nbsp;helps&nbsp;and&nbsp;any&nbsp;more&nbsp;questions&nbsp;please&nbsp;let&nbsp;me&nbsp;know.

&nbsp;

Thanks,

&nbsp;

Sun

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [January 25, 2010, 7:53pm UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/3 "2010-01-25T19:53:59Z")

</div>

Hi&nbsp;Sun,&nbsp;  
&nbsp;&nbsp;  
&nbsp;1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Am&nbsp;uisng&nbsp;two&nbsp;layers.&nbsp;One&nbsp;in&nbsp;GdiPlusRasterLayer&nbsp;for&nbsp;loading&nbsp;map&nbsp;and&nbsp;InMemoryFeatureLayer&nbsp;for&nbsp;loading&nbsp;my&nbsp;loaction&nbsp;on&nbsp;map.&nbsp;But&nbsp;u&nbsp;asked&nbsp;me&nbsp;wheather&nbsp;am&nbsp;using&nbsp;GeoTiff&nbsp;and&nbsp;shapeFileFeature&nbsp;Layer.&nbsp;i&nbsp;don&nbsp;know&nbsp;which&nbsp;one&nbsp;is&nbsp;the&nbsp;rite&nbsp;way&nbsp;to&nbsp;use.&nbsp;can&nbsp;u&nbsp;tell&nbsp;wheather&nbsp;my&nbsp;using&nbsp;of&nbsp;layer&nbsp;is&nbsp;rite&nbsp;or&nbsp;not.&nbsp;if&nbsp;so&nbsp;i&nbsp;wil&nbsp;chage&nbsp;my&nbsp;code&nbsp;to&nbsp;geoTiff&nbsp;and&nbsp;shapefile.My&nbsp;need&nbsp;is&nbsp;to&nbsp;load&nbsp;my&nbsp;GeoTiff&nbsp;and&nbsp;am&nbsp;having&nbsp;my&nbsp;own&nbsp;co&nbsp;ordinates&nbsp;and&nbsp;symbols.&nbsp;i&nbsp;need&nbsp;to&nbsp;load&nbsp;diff&nbsp;symbols&nbsp;for&nbsp;diff&nbsp;co&nbsp;ordinates.&nbsp;for&nbsp;acheiving&nbsp;this&nbsp;which&nbsp;layer&nbsp;type&nbsp;is&nbsp;better&nbsp;for&nbsp;me.&nbsp;  
&nbsp;&nbsp;  
&nbsp;2.&nbsp;my&nbsp;GeoTiff&nbsp;is&nbsp;WGS84&nbsp;co&nbsp;ordinate&nbsp;system.how&nbsp;to&nbsp;set&nbsp;projection&nbsp;and&nbsp;unit&nbsp;property&nbsp;&nbsp;to&nbsp;my&nbsp;map&nbsp;as&nbsp;u&nbsp;mentioned&nbsp;above&nbsp;  
&nbsp;&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:** [January 26, 2010, 3:17am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/4 "2010-01-26T03:17:41Z")

</div>

&nbsp;

dCODE,  
&nbsp;  
Thank&nbsp;Sun&nbsp;for&nbsp;his&nbsp;sharing.  
&nbsp;  
I&nbsp;think&nbsp;that&nbsp;it&nbsp;would&nbsp;be&nbsp;ideal&nbsp;if&nbsp;you&nbsp;could&nbsp;send&nbsp;us&nbsp;the&nbsp;sample&nbsp;project&nbsp;and&nbsp;the&nbsp;screen-shot&nbsp;which&nbsp;can&nbsp;show&nbsp;your&nbsp;problem.&nbsp;That&nbsp;way&nbsp;we&nbsp;can&nbsp;go&nbsp;directly&nbsp;to&nbsp;resolving&nbsp;your&nbsp;problem&nbsp;instead&nbsp;of&nbsp;spending&nbsp;time&nbsp;setting&nbsp;up&nbsp;your&nbsp;scenario&nbsp;and&nbsp;trying&nbsp;to&nbsp;recreate&nbsp;the&nbsp;problem&nbsp;on&nbsp;our&nbsp;side.&nbsp;  
&nbsp;  
If&nbsp;you&nbsp;don't&nbsp;fell&nbsp;comfortable&nbsp;sending&nbsp;your&nbsp;project&nbsp;in&nbsp;the&nbsp;Discussion&nbsp;Forum,&nbsp;you&nbsp;can&nbsp;use&nbsp;one&nbsp;of&nbsp;your&nbsp;Support&nbsp;tickets&nbsp;in&nbsp;the&nbsp;Customer&nbsp;Portal.&nbsp;  
  
  
  
  
About&nbsp;set&nbsp;the&nbsp;projection&nbsp;for&nbsp;GeoTiff,&nbsp;I&nbsp;am&nbsp;afraid&nbsp;that&nbsp;we&nbsp;don’t&nbsp;it&nbsp;so&nbsp;far,&nbsp;you&nbsp;can&nbsp;look&nbsp;at&nbsp;the&nbsp;following&nbsp;post.  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6785/afv/topic/Default.aspx)  
&nbsp;  
If&nbsp;you&nbsp;want&nbsp;to&nbsp;know&nbsp;more&nbsp;information&nbsp;about&nbsp;projection,&nbsp;you&nbsp;can&nbsp;look&nbsp;at&nbsp;the&nbsp;following&nbsp;post,&nbsp;it&nbsp;also&nbsp;contains&nbsp;many&nbsp;links&nbsp;which&nbsp;can&nbsp;get&nbsp;useful&nbsp;extra&nbsp;information.  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5644/afv/topic/Default.aspx)  
&nbsp;  
Thanks.  
&nbsp;  
James

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [January 26, 2010, 3:29am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/5 "2010-01-26T03:29:55Z")

</div>

so&nbsp;u&nbsp;telling&nbsp;that&nbsp;plotting&nbsp;world&nbsp;co-ordinates&nbsp;locations&nbsp;in&nbsp;my&nbsp;geoTif&nbsp;is&nbsp;not&nbsp;possible&nbsp;by&nbsp;the&nbsp;map&nbsp;suite&nbsp;???

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [January 26, 2010, 3:43am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/6 "2010-01-26T03:43:06Z")

</div>

James&nbsp;i&nbsp;think&nbsp;am&nbsp;doing&nbsp;wrong&nbsp;in&nbsp;mentioning&nbsp;projection&nbsp;here&nbsp;  
&nbsp;&nbsp;  
&nbsp;wpfMap1.CurrentExtent&nbsp;=&nbsp;new&nbsp;RectangleShape(-900,&nbsp;-100,&nbsp;2186,&nbsp;-100);&nbsp;  
&nbsp;&nbsp;  
&nbsp;how&nbsp;to&nbsp;specity&nbsp;and&nbsp;fine&nbsp;the&nbsp;projection&nbsp;for&nbsp;my&nbsp;map…&nbsp;  
&nbsp;&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:** [January 26, 2010, 3:45am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/7 "2010-01-26T03:45:02Z")

</div>

deep,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;sorry&nbsp;that&nbsp;my&nbsp;english&nbsp;is&nbsp;not&nbsp;good&nbsp;that&nbsp;my&nbsp;rely&nbsp;let&nbsp;you&nbsp;misunderstand.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;remember&nbsp;I&nbsp;told&nbsp;you&nbsp;how&nbsp;to&nbsp;plot&nbsp;world&nbsp;co-ordinates&nbsp;locations&nbsp;in&nbsp;your&nbsp;geoTif&nbsp;at&nbsp;another&nbsp;post,&nbsp;but&nbsp;your&nbsp;environment&nbsp;has&nbsp;some&nbsp;problem&nbsp;so&nbsp;that&nbsp;you&nbsp;can&nbsp;not&nbsp;run&nbsp;the&nbsp;HowDoI&nbsp;sample.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;This&nbsp;post&nbsp;is&nbsp;about&nbsp;mismatching&nbsp;the&nbsp;coordinates,&nbsp;so&nbsp;they’re&nbsp;two&nbsp;things.&nbsp;My&nbsp;meaning&nbsp;is&nbsp;that&nbsp;you&nbsp;can&nbsp;not&nbsp;project&nbsp;the&nbsp;GeoTiff,&nbsp;but&nbsp;you&nbsp;can&nbsp;project&nbsp;your&nbsp;location&nbsp;in&nbsp;another&nbsp;layer.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Please&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;I&nbsp;am&nbsp;still&nbsp;not&nbsp;clear.&nbsp;  
&nbsp;&nbsp;  
&nbsp;James

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [January 27, 2010, 1:29am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/8 "2010-01-27T01:29:38Z")

</div>

i&nbsp;got&nbsp;james,

thanks&nbsp;for&nbsp;your&nbsp;time.

&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:** [January 27, 2010, 10:03am UTC](https://community.thinkgeo.com/t/co-ordinates-mismatch-problem/988/9 "2010-01-27T10:03:28Z")

</div>

Any&nbsp;more&nbsp;questions&nbsp;about&nbsp;this&nbsp;please&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sun&nbsp;
