# V12.1 - Raster Projected Results in Blank Areas

**URL:** <https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870>\
**Category:** WPF\
**Created:** [July 29, 2020, 1:04pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870 "2020-07-29T13:04:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 29, 2020, 1:04pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/1 "2020-07-29T13:04:45Z")

</div>

ThinkGeo Team,

I’ve implemented a ProjectionConverter for a RasterLayer (MrSid, GeoTiff, JPeg2000) using ThinkGeo.Core.UnmanagedProjectionConverter.

The initial rendering of the raster is fine, but as ZoomOut’s occur the rendering contains blank areas. The screen-captures below show this.

This is the code:

```
TheAssetsStatic.gProjectionConverterForRendering = new UnmanagedProjectionConverter(4326, 3857);
MrSidLayer = new MrSidRasterLayer();
MrSidLayer.ImagePath = ThePath;

TheAssetsStatic.aTheLayerOverlay.Layers.Add(MrSidLayer);
MrSidLayer.ImageSource.ProjectionConverter = TheAssetsStatic.gProjectionConverterForRendering;

```

This issue occurs for MrSid’s. I am still testing with GeoTiff and JPeg2000.

Testing with JPeg2000 results in no image at all being rendered.

Testing with GeoTiff results in same issue as shown in screen-captures below.

Thanks,  
Dennis

**Initial rendering at ZoomLevel17**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/c/c/ccecf7a96ecedba0b168f9fc516b79f699c5e1ae.jpeg)

**ZoomLevel16**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/b/6/b65890e85b13614e35e3727fd2a43e0e9743fa7d.jpeg)

**ZoomLevel15**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/2/6/261ffbc8b45db68839326bade6411dcdd95d26c5.jpeg)

**ZoomLevel14**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/8/7/8782a676b830279212c6658e81dc0abfb3114f88.jpeg)

**ZoomLevel13**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/1/a/1ac1f26be8ea77a63141edb4e992b5cfd8719ed9.jpeg)

**GeoTiff**  
**ZoomLevel17**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/0/2/02dc85b4c85ce4a919826e4a517a775c9c8e69a1.jpeg)

**ZoomLevel17 - without ProjectionConverter**

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/c/b/cbbf6afb3847e7462ae84e28a9fb76e636b0d834.jpeg)

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 29, 2020, 6:16pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/2 "2020-07-29T18:16:00Z")

</div>

Thanks Dennis,  
I created a sample for you to load the ECW, MrSid, GeoTiff, JPeg2000 And Projection Convert. [Demo.zip](https://community.thinkgeo.com/uploads/short-url/nDhj2xBnuegZlXXrsoH6rzrb2Mi.zip) (1.2 MB)  
To re-project the raster layer we’d better use overLay.TileType = TileType.SingleTile;

Here is what it looks like.

[![](https://community.thinkgeo.com/uploads/default/original/3X/8/c/8c07690b09d3e593b945416814e69fa6bd4e7dec.jpeg "ThinkGeo Mapsuite 12 load ECW MrSid, GeoTiff, JPeg2000 And Projection Convert") ](https://www.youtube.com/watch?v=WXnYIPRl4Q8)

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 29, 2020, 8:10pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/3 "2020-07-29T20:10:37Z")

</div>

Frank,

I download the demo. I compiled with .NET V4.7.2 because the version it came with is not installed on my machine.

I experimented with your MrSid raster. That raster is not a very good example because it is only really renderable at ZoomLevel01.

So I modified the code to use one of my MrSid Raster files. Below is a screen-capture that displays an error stating “the input double value is out of range, parameter name: canvasWidth”.

I removed the ProjectionConverter and the raster rendered as shown below. Zooming In/Out worked fine.

Some time ago I had uploaded all of my rasters to _[http://clients.thinkgeo.com](http://clients.thinkgeo.com)_, but that website is not reachable anymore. Do you still have a client upload site or has the site been renamed?

Attached is my modified MainWindow.xaml.cs from the Demo project.

Also, I changed my application from using _MultipleTile_ to _SIngleTile_ and it works better, but there are still issues.

Regards,  
Dennis

[MainWindow.xaml.cs](https://community.thinkgeo.com/uploads/short-url/hng4clu3QAQPOfheznptord6BO1.cs) (4.0 KB)

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/7/9/79192328c6e4e937acb13422dc65aebd28472c59.png)

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/1/7/17bbc1f13225ffa86fa9dff9af5929560eee9074.jpeg)

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 29, 2020, 8:32pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/4 "2020-07-29T20:32:06Z")

</div>

Thanks Dennis,  
[http://clients.thinkgeo.com](http://clients.thinkgeo.com) has been discontinued. You could either create a private ticket to upload the files. Or you could use the google drive to share the files and send the link to [support@thinkgeo.com](mailto:support@thinkgeo.com)

I will look into more detail. Once I get the data file.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 29, 2020, 9:07pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/5 "2020-07-29T21:07:36Z")

</div>

Frank,

I just sent an email with a DropBox link to one of my MrSid rasters.

Dennis

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 29, 2020, 10:13pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/6 "2020-07-29T22:13:29Z")

</div>

Thanks Dennis,  
The reason you see the error is the file already Meter projection. So if you treat is as 4326(decimal degree) and covert to the 3857(Meter). It will convert the lat/lon value to a very big value. Then it will get some out of range error.

I looked into more detail about your file. actually it is 3435 projection. [NAD83 / Illinois East (ftUS) - EPSG:3435](https://epsg.io/3435)

How we find the projection in the files? If you have Gdal install you can run the command line

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/3/a/3a579d6fddd0bfe38147e750b9afe7d0eb3462bf.png) Then google “nad83 / illinois east (ftus) epsg code”. You will find the EPSG code is 3435.

In mapsuite we don’t need know exact EPSG code. We could use the following code to get the original projection information.  
MrSidLayer.Open();  
var projection = MrSidLayer.Projection;

So for you case you could do like this

map.MapUnit = GeographyUnit.Meter;  
map.CurrentExtent = MaxExtents.SphericalMercator;

```
        var MrSidLayer = new MrSidRasterLayer(System.AppDomain.CurrentDomain.BaseDirectory + "\\14LakeView2008.sid");
        MrSidLayer.Open();
        var projection = MrSidLayer.Projection;

        var gProjectionConverterForRendering = new UnmanagedProjectionConverter(projection.ProjString, 3857);
        gProjectionConverterForRendering.Open();

        MrSidLayer.ImageSource.ProjectionConverter = gProjectionConverterForRendering;
        var overLay = new LayerOverlay();
        overLay.TileType = TileType.SingleTile;
        overLay.Layers.Add(MrSidLayer);
        map.Overlays.Add(overLay);
        map.CurrentExtent = MrSidLayer.GetBoundingBox();

        map.Refresh();

```

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 29, 2020, 11:02pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/7 "2020-07-29T23:02:05Z")

</div>

Frank,

Thanks for the tip on the actual coordinate system of 3435. In fact I use the below projection string. Is this the same as, or equivalent to, 3435? I read your response again and it looks like you said yes, these are the same. Apologies for the confusion on this.

```
PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",984250.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-88.33333333333333],PARAMETER["Scale_Factor",0.999975],PARAMETER["Latitude_Of_Origin",36.66666666666666],UNIT["Foot_US",0.3048006096012192]]

```

I changed the Demo project to use 3435 and it now displays the raster and Zoom In/Out works just fine.

I then changed it from SingleTile to MultipleTile and the blank areas appear at ZoomLevel15 as shown in the screen-capture below..

Using 3435 in my application with MultipleTile I continue to see the blank areas. I changed it to SingleTile and the blank areas do not appear.

I may be confused about the Projection of the MrSid Raster, but this is how I’ve done it in MapSuite and it was never a problem.

So it would appear there is an issue with MultipleTile when using a ProjectionConverter.

Regards,  
Dennis

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/8/2/82f024575279e87054fbea7d3732ec43ada3e229.jpeg)

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 30, 2020, 1:39pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/8 "2020-07-30T13:39:49Z")

</div>

Frank,

I’m noticing more unusual behavior in my application all centered around ProjectionConverter.

Below are three pictures. The first is the starting point, then the map was panned to the right resulting in the second picture. Then the map was panned to the right again resulting in the third picture.

TileType = TileType.SingleTile

Dennis

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/a/2/a21da9dfd26de60d7c443555f291f8565429387d.jpeg)

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/0/7/0732475453afd10c16b70d3de4afa7ebcbadf8ae.jpeg)

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/2/5/25231bf7522c2554c7ccde0df89bf231a1b08ed1.png)

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 30, 2020, 9:29pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/9 "2020-07-30T21:29:07Z")

</div>

Thanks Dennis,  
I did some test with mapsuite V10 it works good. This turn out it is a bug for the V12. We are looking into more detail.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [July 30, 2020, 11:54pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/10 "2020-07-30T23:54:17Z")

</div>

Thanks for the update Frank!

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 3, 2020, 6:38pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/11 "2020-08-03T18:38:18Z")

</div>

Frank,

I’ve noticed what I feel is another issue, but may be related to the others.

The rendered extent of a MrSid using just its’ ‘native’ project is different that when setting a ProjectionConverter and using 3857. In MapSuite no matter the projection the same extent is rendered.

The rendered extent using 3857 is the correct rendering as it matches MapSuite.

Below are two screen-captures that show this.

Thanks,  
Dennis

Rendered with ‘native’ projection:

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/9/9/995443e1af0f782e1ad9f9aaa86b6d23acf10674.jpeg)

Rendered with ProjectionConverter using 3857 as External Projection.

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/6/5/6529f49cc2db5a3a72170b3f8f8cf02dd9c5e726.jpeg)

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 4, 2020, 2:52pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/12 "2020-08-04T14:52:40Z")

</div>

Frank,

I’ve come upon another issue for TIFF and JPEG2000 rasters, but not an issue for MrSid.

I can display TIFF and JPEG2000 with their ‘native’ projection. However, using a ProjectionConverter with external projection set to 3857 results in the below error:

![image](https://community.thinkgeo.com/uploads/default/original/3X/b/0/b05cd698ea94b9cbca3b744790f74251cfdbedef.png)

If the external projection is set to 3435 the raster is rendered.

This is the code that is used for all three raster types.

```
                TheLayer.Open();
            TheProjectionInternal = TheLayer.Projection;
            TheLayer.Close();

            // set Internal Projection to that of Layer
            TheAssetsStatic.gProjectionForRenderingInternal = new Projection();
            TheAssetsStatic.gProjectionForRenderingInternal.ProjString = TheProjectionInternal.ProjString;

            // set External Projection to that of Selected
            TheAssetsStatic.gProjectionForRenderingExternal = new Projection();
            TheAssetsStatic.gProjectionForRenderingExternal.ProjString = Projection.ConvertEpsgToProjString(3857);

            TheAssetsStatic.gProjectionConverterForRendering = new ThinkGeo.Core.UnmanagedProjectionConverter();
            TheAssetsStatic.gProjectionConverterForRendering.InternalProjection = TheAssetsStatic.gProjectionForRenderingInternal;
            TheAssetsStatic.gProjectionConverterForRendering.ExternalProjection = TheAssetsStatic.gProjectionForRenderingExternal;

            TheRasterLayer = (ThinkGeo.Core.RasterLayer)TheLayer;
            TheRasterLayer.ImageSource.ProjectionConverter = TheAssetsStatic.gProjectionConverterForRendering;

```

Regards,  
Dennis

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 4, 2020, 8:31pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/13 "2020-08-04T20:31:00Z")

</div>

Dennis,  
I have fixed the MrSid. I am doing more testing. I will let you know once it available for the Nuget.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 4, 2020, 8:38pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/14 "2020-08-04T20:38:44Z")

</div>

Thank you Frank.

Dennis

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 5, 2020, 6:48pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/15 "2020-08-05T18:48:05Z")

</div>

Thanks Dennis,  
We have done the test. Please update thinkgeo related nuget package to the latest beta one. It should work now.

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/4/b/4bf653894eaf23524d8b2a738678f7d4266dfa55.png)

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 5, 2020, 9:06pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/16 "2020-08-05T21:06:31Z")

</div>

hi Frank,

I’ve updated the following.. Is this all that needs updating?

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/a/4/a40964ba63b278ba70a190460a279a5dab277174.png)

MrSid appears to be much better, but I have more testing to do.

Did you do anything with TIFF & JPEG2000 issues? They still do not work with reprojection using 3857.

Dennis

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 5, 2020, 10:08pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/17 "2020-08-05T22:08:10Z")

</div>

hi Frank,

The original issue I reported and the second one concerning panning appear to be fixed.

However, the last two issues I reported are still not working.

Thanks,  
Dennis

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 6, 2020, 2:15pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/18 "2020-08-06T14:15:00Z")

</div>

Thanks Dennis,  
Yes. We are working on those two. I will update you once I get some progress.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 6, 2020, 9:42pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/19 "2020-08-06T21:42:20Z")

</div>

Dennis,  
Could you send us the TIFF & JPEG2000 file by private ticket or send the download link to [support@thinkgeo.com](mailto:support@thinkgeo.com).

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Dennis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@Dennis](https://community.thinkgeo.com/u/Dennis)\
**Post date:** [August 6, 2020, 9:54pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/20 "2020-08-06T21:54:21Z")

</div>

I had sent the link the other day. Give me a minute and I’ll send again.

[Next page](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870.md?page=2)
