Hi all,
I like to add RasterLayer to my map.
The map is projected with SphericalMercator. The RasterLayers will be from different coordinate system so I like to reproject them. MapUnit is Meter.
Therefore I use the ImageSource Property from GdiPlusRasterLayer:
Dim ImageProjection As New Proj4Projection
ImageProjection.ExternalProjectionParametersString = Proj4Projection.GetSphericalMercatorParametersString
ImageProjection.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(BaseSrid)
ImageProjection.Open()
MyRasterLayer.ImageSource.Projection = ImageProjection
Where "BaseSrid" is the correct EPSG code for the raster image.
Problems:
The raster image will not be drawn and when I zoom, pan or move the mouse system crashes with an exception.
I have read some of the other topics in this forum but without any success.
What to do?
Regards
Hardy