# 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:** 5\
**Page:** 2

<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, 10:49pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/21 "2020-08-06T22:49:58Z")

</div>

Dennis,  
I tested the geotif. looks it works fine. Here is the code.

```
 private void mapView_Loaded(object sender, RoutedEventArgs e)
        {
            // ------------------------------------------geotiff------------------------------------
            map.MapUnit = GeographyUnit.Meter;
            map.CurrentExtent = MaxExtents.SphericalMercator;
            var geotifLayer = new UnmanagedGeoTiffRasterLayer(@"D:\Tickets\MapRasters2010\08759200.tif");
            geotifLayer.Open();
            // set Internal Projection to that of Layer
            var gProjectionForRenderingInternal = new Projection();
            gProjectionForRenderingInternal.ProjString = geotifLayer.ImageSource.Projection.ProjString;

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

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

            geotifLayer.ImageSource.ProjectionConverter = gProjectionConverterForRendering;
            geotifLayer.ImageSource.ProjectionConverter.Open();
            var overLay = new LayerOverlay();
            overLay.Layers.Add(geotifLayer);
            map.Overlays.Add(overLay);
           
            map.CurrentExtent = geotifLayer.GetBoundingBox();
            map.Refresh();

        }

```

still downloading the jp2 files.

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, 11:00pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/22 "2020-08-06T23:00:32Z")

</div>

hi Frank,

I had been using ThinkGeo.Core.GeoTiffRasterLayer so I changed to ThinkGeo.Core.UnmanagedGeoTiffRasterLayer.

The TIFF raster is rendering with a ProjectionConverter.

Thanks for the tip.

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 7, 2020, 9:07pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/23 "2020-08-07T21:07:54Z")

</div>

Dennis,  
The Jpeg2000 still not working with the projection converter. But if you don’t do the projection it works fine. I am still looking into it.

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 7, 2020, 9:19pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/24 "2020-08-07T21:19:35Z")

</div>

Thanks for the update 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:** [September 11, 2020, 9:58pm UTC](https://community.thinkgeo.com/t/v12-1-raster-projected-results-in-blank-areas/9870/25 "2020-09-11T21:58:02Z")

</div>

Thanks Dennis,  
I looked into more detail. I found the reason for this one. We don’t support the 16 bit datatype raster image re-projection. We only support 8 bit datatype.

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

Thanks

Frank

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