# Cannot Zoom Raster images when MapUnit is meters

**URL:** <https://community.thinkgeo.com/t/cannot-zoom-raster-images-when-mapunit-is-meters/2255>\
**Category:** WinForms\
**Created:** [June 1, 2013, 11:54pm UTC](https://community.thinkgeo.com/t/cannot-zoom-raster-images-when-mapunit-is-meters/2255 "2013-06-01T23:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@Chad2](https://community.thinkgeo.com/u/Chad2)\
**Post date:** [June 1, 2013, 11:54pm UTC](https://community.thinkgeo.com/t/cannot-zoom-raster-images-when-mapunit-is-meters/2255/1 "2013-06-01T23:54:27Z")

</div>

I&nbsp;have&nbsp;an&nbsp;issue&nbsp;with&nbsp;Zoom&nbsp;Level&nbsp;of&nbsp;a&nbsp;raster&nbsp;layer&nbsp;when&nbsp;using&nbsp;MapUnits&nbsp;of&nbsp;Meters.  
&nbsp;  
winformsMap1.MapUnit&nbsp;=&nbsp;GeographyUnit.Meter;  
&nbsp;  
When&nbsp;using&nbsp;MapUnits&nbsp;of&nbsp;DecimalDegree&nbsp;The&nbsp;Zoom&nbsp;Level&nbsp;is&nbsp;far&nbsp;more&nbsp;detailed.  
&nbsp;  
winformsMap1.MapUnit&nbsp;=&nbsp;GeographyUnit.DecimalDegree;  
&nbsp;  
This&nbsp;is&nbsp;pretty&nbsp;easily&nbsp;reproducible&nbsp;using&nbsp;Map&nbsp;Suite&nbsp;Explorer&nbsp;3.0&nbsp;and&nbsp;I’ve&nbsp;attached&nbsp;the&nbsp;screenshots&nbsp;of&nbsp;each&nbsp;MapUnit&nbsp;setting&nbsp;after&nbsp;changing&nbsp;the&nbsp;provide&nbsp;source&nbsp;code.  
&nbsp;  
This&nbsp;has&nbsp;been&nbsp;fixed&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;Explorer&nbsp;5.0&nbsp;provided&nbsp;with&nbsp;Desktop&nbsp;Edition&nbsp;6.0,&nbsp;but&nbsp;alas&nbsp;the&nbsp;source&nbsp;code&nbsp;is&nbsp;not&nbsp;provided&nbsp;for&nbsp;me&nbsp;to&nbsp;determine&nbsp;the&nbsp;solution.  
&nbsp;  
Any&nbsp;help&nbsp;would&nbsp;be&nbsp;greatly&nbsp;appreciated.  
&nbsp;  
&nbsp;

&nbsp;

[MapUnit\_Meters.png](https://community.thinkgeo.com/uploads/default/original/1X/97e3192ff00bca831eaf6892042f8b6f97a4925d.png) (67.5 KB)  
[MapUnit\_DecimalDegrees.png](https://community.thinkgeo.com/uploads/default/original/1X/8c80ddc3e1a7e42b79650897bed72dfb567b8886.png) (39.8 KB)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [June 3, 2013, 9:54am UTC](https://community.thinkgeo.com/t/cannot-zoom-raster-images-when-mapunit-is-meters/2255/2 "2013-06-03T09:54:37Z")

</div>

Hi&nbsp;Chad,&nbsp;  
&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;evaluating&nbsp;our&nbsp;poducts&nbsp;and&nbsp;your&nbsp;post,&nbsp;would&nbsp;you&nbsp;please&nbsp;make&nbsp;it&nbsp;clearer&nbsp;because&nbsp;I&nbsp;am&nbsp;a&nbsp;little&nbsp;confused&nbsp;with&nbsp;“This&nbsp;has&nbsp;been&nbsp;fixed&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;Explorer&nbsp;5.0&nbsp;provided&nbsp;with&nbsp;Desktop&nbsp;Edition&nbsp;6.0,&nbsp;but&nbsp;alas&nbsp;the&nbsp;source&nbsp;code&nbsp;is&nbsp;not&nbsp;provided&nbsp;for&nbsp;me&nbsp;to&nbsp;determine&nbsp;the&nbsp;solution”.&nbsp;Would&nbsp;you&nbsp;please&nbsp;tell&nbsp;me&nbsp;what&nbsp;“source&nbsp;code&nbsp;“&nbsp;refers&nbsp;to&nbsp;?&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;  
&nbsp;Waiting&nbsp;for&nbsp;your&nbsp;further&nbsp;information&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [June 4, 2013, 9:13am UTC](https://community.thinkgeo.com/t/cannot-zoom-raster-images-when-mapunit-is-meters/2255/3 "2013-06-04T09:13:08Z")

</div>

&nbsp;Hi&nbsp;Chad,&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;welcome&nbsp;to&nbsp;Map&nbsp;Suite&nbsp;Forums!&nbsp;&nbsp;I&nbsp;guess&nbsp;I&nbsp;made&nbsp;some&nbsp;mistake&nbsp;here&nbsp;yesterday,&nbsp;please&nbsp;check&nbsp;my&nbsp;anwser&nbsp;shown&nbsp;as&nbsp;following&nbsp;again.&nbsp;

If&nbsp;we&nbsp;want&nbsp;to&nbsp;change&nbsp;the&nbsp;Map&nbsp;Unit&nbsp;from&nbsp;Decimal&nbsp;Degree&nbsp;to&nbsp;&nbsp;Meter&nbsp;in&nbsp;Raster&nbsp;images&nbsp;like&nbsp;“Ecw”&nbsp;image,&nbsp;we&nbsp;have&nbsp;to&nbsp;change&nbsp;the&nbsp;“.eww”&nbsp;file,&nbsp;which&nbsp;contains&nbsp;&nbsp;the&nbsp;coordinate&nbsp;information.&nbsp;More&nbsp;detail&nbsp;about&nbsp;this&nbsp;file,&nbsp;please&nbsp;check&nbsp;here:&nbsp;[en.wikipedia.org/wiki/World\_file](http://en.wikipedia.org/wiki/World_file)&nbsp;

In&nbsp;our&nbsp;MapSuiteExplorer,&nbsp;when&nbsp;we&nbsp;change&nbsp;the&nbsp;MapUnit&nbsp;from&nbsp;“Decimal&nbsp;Degree”&nbsp;to&nbsp;“Meter”,&nbsp;actually,&nbsp;our&nbsp;map’s&nbsp;current&nbsp;extent&nbsp;is&nbsp;still&nbsp;the&nbsp;original&nbsp;extent&nbsp;let&nbsp;say&nbsp;“-180,136,180,-136”,&nbsp;which&nbsp;means&nbsp;it&nbsp;isn’t&nbsp;converted&nbsp;to&nbsp;Meter,&nbsp;that’s&nbsp;why&nbsp;we&nbsp;can&nbsp;see&nbsp;the&nbsp;Explorer&nbsp;work&nbsp;good&nbsp;under&nbsp;Meter.&nbsp;So,&nbsp;I&nbsp;haven’t&nbsp;a&nbsp;good&nbsp;idea&nbsp;on&nbsp;how&nbsp;to&nbsp;switch&nbsp;Decimal&nbsp;Degree&nbsp;to&nbsp;Meter&nbsp;on&nbsp;the&nbsp;fly,&nbsp;for&nbsp;there&nbsp;is&nbsp;no&nbsp;a&nbsp;helper&nbsp;class&nbsp;like&nbsp;projection&nbsp;converter&nbsp;in&nbsp;Raster&nbsp;Layer.&nbsp;

So,&nbsp;currently,&nbsp;I&nbsp;guess&nbsp;there&nbsp;is&nbsp;only&nbsp;one&nbsp;solution&nbsp;is&nbsp;we&nbsp;change&nbsp;the&nbsp;“.eww”&nbsp;file&nbsp;to&nbsp;work&nbsp;with&nbsp;Meter&nbsp;and&nbsp;then&nbsp;initialize&nbsp;the&nbsp;map&nbsp;with&nbsp;Meter&nbsp;unit.&nbsp;

Hope&nbsp;it&nbsp;helps.

&nbsp;

Johnny&nbsp;
