ThinkGeo.com    |     Documentation    |     Premium Support

Getting error while ploting image layer from url

Hi @Ethan, I’m getting this error “A generic error occurred in GDI+.”

Hi Bibek,

Please provide more detail information, so we can reproduce it.

This exception is general, so it’s hard to give you more suggestion only from it.

Regards,

Ethan

While plotting a image layer from a local image

Hi Bibek,

What’s the image format, which class you are using, what’s the map edition you choose and what’s the detail version?

You mentioned you plot the map from a URL, please paste the render code about it.

Regards,

Ethan

While it’s plotted we are updating the image

NativeImageRasterLayer rasterRadar = new NativeImageRasterLayer(localFilepath, _proj.ConvertToExternalProjection(new RectangleShape(-179.999979224, 85, 179.972976801, -85)));
rasterRadar.Name = “RainViewer”;

                    rasterRadar.WrappingExtent = _proj.ConvertToExternalProjection(new RectangleShape(-180, 90, 180, -90));
                    ol_Radar.Layers.Add("", rasterRadar);

Hi Bibek,

Here is a sample, which works well.

Please modify it to reproduce this exception.

9348.zip (193.0 KB)

Regards,

Ethan