# 500 tif files

**URL:** <https://community.thinkgeo.com/t/500-tif-files/1998>\
**Category:** WinForms\
**Created:** [June 13, 2012, 3:34pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998 "2012-06-13T15:34:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@Steven3](https://community.thinkgeo.com/u/Steven3)\
**Post date:** [June 13, 2012, 3:34pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998/1 "2012-06-13T15:34:00Z")

</div>

&nbsp;Hello,

I've&nbsp;just&nbsp;downloaded&nbsp;the&nbsp;trial&nbsp;edition,&nbsp;so&nbsp;am&nbsp;new&nbsp;to&nbsp;this&nbsp;product.&nbsp;&nbsp;I&nbsp;have&nbsp;500&nbsp;tif&nbsp;files&nbsp;that&nbsp;will&nbsp;together&nbsp;represent&nbsp;one&nbsp;layer.&nbsp;&nbsp;I&nbsp;can&nbsp;see&nbsp;how&nbsp;to&nbsp;add&nbsp;individual&nbsp;tif&nbsp;files&nbsp;as&nbsp;individual&nbsp;layers&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;in&nbsp;code,&nbsp;but&nbsp;can&nbsp;anyone&nbsp;advise&nbsp;on&nbsp;a&nbsp;course&nbsp;of&nbsp;action&nbsp;for&nbsp;using&nbsp;all&nbsp;500&nbsp;tif&nbsp;files&nbsp;in&nbsp;a&nbsp;single&nbsp;layer?

I&nbsp;have&nbsp;used&nbsp;a&nbsp;different&nbsp;GIS&nbsp;product,&nbsp;and&nbsp;when&nbsp;using&nbsp;that&nbsp;product&nbsp;I&nbsp;would&nbsp;use&nbsp;a&nbsp;separate&nbsp;editor&nbsp;tool&nbsp;to&nbsp;create&nbsp;a&nbsp;new&nbsp;layer&nbsp;(filled&nbsp;with&nbsp;the&nbsp;tif&nbsp;images)&nbsp;and&nbsp;export&nbsp;that&nbsp;layer&nbsp;to&nbsp;a&nbsp;type&nbsp;supported&nbsp;by&nbsp;the&nbsp;other&nbsp;GIS&nbsp;product,&nbsp;is&nbsp;there&nbsp;an&nbsp;equivalent&nbsp;approach&nbsp;in&nbsp;Map&nbsp;Suite?

Thanks,

Slicc

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [June 13, 2012, 8:41pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998/2 "2012-06-13T20:41:26Z")

</div>

Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;We&nbsp;have&nbsp;a&nbsp;sample&nbsp;for&nbsp;just&nbsp;this&nbsp;kind&nbsp;of&nbsp;scenario.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;[wiki.thinkgeo.com/wiki/Map\_Suite\_Services\_Edition\_All\_Samples#Multi\_Geo\_Raster\_Layer](http://wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_All_Samples#Multi_Geo_Raster_Layer)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Here&nbsp;is&nbsp;the&nbsp;text&nbsp;from&nbsp;the&nbsp;sample:&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;If&nbsp;we&nbsp;have&nbsp;many&nbsp;raster&nbsp;files,&nbsp;we&nbsp;would&nbsp;need&nbsp;to&nbsp;add&nbsp;all&nbsp;the&nbsp;raster&nbsp;files&nbsp;as&nbsp;separate&nbsp;layer.&nbsp;However&nbsp;this&nbsp;has&nbsp;a&nbsp;performance&nbsp;issue.&nbsp;In&nbsp;this&nbsp;project,&nbsp;we&nbsp;show&nbsp;how&nbsp;to&nbsp;create&nbsp;a&nbsp;class&nbsp;MultiGeoRasterLayer&nbsp;that&nbsp;treats&nbsp;all&nbsp;the&nbsp;raster&nbsp;file&nbsp;as&nbsp;one&nbsp;layer.&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;This&nbsp;class&nbsp;show&nbsp;how&nbsp;to&nbsp;do&nbsp;that&nbsp;using&nbsp;JPEG&nbsp;images&nbsp;with&nbsp;its&nbsp;associating&nbsp;JGW&nbsp;world&nbsp;file.&nbsp;It&nbsp;speeds&nbsp;up&nbsp;the&nbsp;loading&nbsp;of&nbsp;a&nbsp;large&nbsp;number&nbsp;of&nbsp;Raster&nbsp;layers&nbsp;by&nbsp;loading&nbsp;and&nbsp;drawing&nbsp;on&nbsp;demand&nbsp;only&nbsp;the&nbsp;files&nbsp;in&nbsp;the&nbsp;current&nbsp;extent.&nbsp;It&nbsp;loads&nbsp;a&nbsp;reference&nbsp;file&nbsp;that&nbsp;contains&nbsp;the&nbsp;bounding&nbsp;box,&nbsp;path&nbsp;and&nbsp;file&nbsp;information&nbsp;for&nbsp;all&nbsp;of&nbsp;the&nbsp;Raster&nbsp;files.&nbsp;We&nbsp;load&nbsp;this&nbsp;information&nbsp;into&nbsp;an&nbsp;in-memory&nbsp;spatial&nbsp;index.&nbsp;When&nbsp;the&nbsp;map&nbsp;requests&nbsp;to&nbsp;draw&nbsp;the&nbsp;layer,&nbsp;we&nbsp;find&nbsp;the&nbsp;Rasters&nbsp;that&nbsp;are&nbsp;in&nbsp;the&nbsp;current&nbsp;extent,&nbsp;create&nbsp;a&nbsp;layer&nbsp;on-the-fly,&nbsp;call&nbsp;their&nbsp;Draw&nbsp;method&nbsp;and&nbsp;then&nbsp;close&nbsp;them.&nbsp;In&nbsp;this&nbsp;way,&nbsp;we&nbsp;load&nbsp;on&nbsp;demand&nbsp;only&nbsp;the&nbsp;files&nbsp;that&nbsp;are&nbsp;in&nbsp;the&nbsp;current&nbsp;extent.&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![mark2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/e19adc/32.png) [@mark2](https://community.thinkgeo.com/u/mark2)\
**Post date:** [June 13, 2012, 11:36pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998/3 "2012-06-13T23:36:11Z")

</div>

You&nbsp;might&nbsp;want&nbsp;to&nbsp;check&nbsp;this&nbsp;one.&nbsp;I&nbsp;was&nbsp;trying&nbsp;similar&nbsp;thing.&nbsp;&nbsp;  
&nbsp;[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/10389/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/10389/afv/topic/Default.aspx)&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Steven3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@Steven3](https://community.thinkgeo.com/u/Steven3)\
**Post date:** [June 14, 2012, 1:17am UTC](https://community.thinkgeo.com/t/500-tif-files/1998/4 "2012-06-14T01:17:37Z")

</div>

The&nbsp;raster&nbsp;images&nbsp;I&nbsp;have&nbsp;are&nbsp;actually&nbsp;in&nbsp;the&nbsp;OSGB&nbsp;coordinate&nbsp;system,&nbsp;which&nbsp;I&nbsp;guess&nbsp;is&nbsp;why&nbsp;I&nbsp;can't&nbsp;see&nbsp;anything&nbsp;when&nbsp;I&nbsp;point&nbsp;it&nbsp;at&nbsp;my&nbsp;tif&nbsp;files&nbsp;(although&nbsp;it&nbsp;does&nbsp;seem&nbsp;to&nbsp;have&nbsp;referenced&nbsp;them&nbsp;correctly).

Do&nbsp;I&nbsp;need&nbsp;to&nbsp;tell&nbsp;MapSuite&nbsp;somewhere&nbsp;what&nbsp;the&nbsp;coordinate&nbsp;system&nbsp;is?

Slicc

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [June 18, 2012, 4:10pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998/5 "2012-06-18T16:10:07Z")

</div>

Hello&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;I&nbsp;think&nbsp;when&nbsp;you&nbsp;say&nbsp;OSGB&nbsp;coordinate,&nbsp;you&nbsp;mean&nbsp;OSGB&nbsp;1936&nbsp;British&nbsp;National&nbsp;Grid&nbsp;(epsg:27700)?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;so,&nbsp;yes&nbsp;you&nbsp;need&nbsp;let&nbsp;map&nbsp;control&nbsp;knows&nbsp;if&nbsp;you&nbsp;are&nbsp;using&nbsp;this&nbsp;projection&nbsp;working&nbsp;with&nbsp;some&nbsp;other&nbsp;projection,&nbsp;we&nbsp;have&nbsp;Proj4projection&nbsp;can&nbsp;let&nbsp;user&nbsp;unify&nbsp;the&nbsp;projection&nbsp;between&nbsp;different&nbsp;data.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;this&nbsp;tif&nbsp;images&nbsp;are&nbsp;only&nbsp;data&nbsp;you&nbsp;are&nbsp;using,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;just&nbsp;set&nbsp;the&nbsp;map&nbsp;unit&nbsp;as&nbsp;meter,&nbsp;you&nbsp;don’t&nbsp;need&nbsp;change&nbsp;the&nbsp;projection,&nbsp;it&nbsp;will&nbsp;work.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Please&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;I&nbsp;misunderstanding&nbsp;something&nbsp;or&nbsp;it&nbsp;still&nbsp;not&nbsp;working.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Steven3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@Steven3](https://community.thinkgeo.com/u/Steven3)\
**Post date:** [June 18, 2012, 11:32pm UTC](https://community.thinkgeo.com/t/500-tif-files/1998/6 "2012-06-18T23:32:48Z")

</div>

&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;reply,&nbsp;but&nbsp;there&nbsp;does&nbsp;not&nbsp;seem&nbsp;to&nbsp;be&nbsp;a&nbsp;projection&nbsp;option&nbsp;on&nbsp;the&nbsp;raster&nbsp;layer&nbsp;used&nbsp;in&nbsp;the&nbsp;MultiGeoRasterLayer.&nbsp;Is&nbsp;it&nbsp;possible&nbsp;to&nbsp;apply&nbsp;projections&nbsp;to&nbsp;raster&nbsp;layers?

&nbsp;Thanks!

Slicc

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [June 21, 2012, 10:01am UTC](https://community.thinkgeo.com/t/500-tif-files/1998/7 "2012-06-21T10:01:18Z")

</div>

Hello&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;For&nbsp;now,&nbsp;our&nbsp;raster&nbsp;layer&nbsp;don’t&nbsp;have&nbsp;the&nbsp;projection&nbsp;property,&nbsp;but&nbsp;we&nbsp;have&nbsp;worked&nbsp;on&nbsp;it&nbsp;a&nbsp;period&nbsp;of&nbsp;time,&nbsp;and&nbsp;we&nbsp;will&nbsp;release&nbsp;it&nbsp;very&nbsp;soon,&nbsp;please&nbsp;subscribe&nbsp;our&nbsp;forums&nbsp;and&nbsp;we&nbsp;will&nbsp;post&nbsp;the&nbsp;news.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary
