Hi,
I have a NOAA radar image which I’m trying to add as an overlay. When I was initially testing this it seemed to work fine. I was using a map unit of decimaldegree to start. I had to switch to a spherical mercator projection which then caused me to change the projection on layers and the map unit to meter. The NOAA radar image is now showing with a black background instead of being transparent. If I remove the projection and change the map unit back to decimaldegrees it looks fine.
I’ve attached the NOAA radar image that I’m experimenting with along with its associated world file.
I have also attached two images of what it looks like for me in decimaldegree and spherical mercator (meter)
Any help would be greatly appreciated! Thanks in advance.
Here is the code creating the projection and layer.
01.
var proj4 =
new
Proj4Projection
02.
{
03.
InternalProjectionParametersString = Proj4Projection.GetWgs84ParametersString(),
04.
ExternalProjectionParametersString = Proj4Projection.GetSphericalMercatorParametersString()
05.
};
06.
07.
var radarImageLayer =
new
GdiPlusRasterLayer(@
“C:\Temp\FalconData\Weather\Latest_RadarOnly_filtered.gif”
, @
“c:\Temp\FalconData\Weather\latest_radaronly.gfw”
)
08.
{
09.
UpperThreshold =
double
.MaxValue,
10.
LowerThreshold = 0,
11.
ImageSource = {Projection = proj4},
12.
};
Weather.zip (66.5 KB)