This is a migrated thread and some comments may be shown as answers.

Overlay Geotiff Image

3 Answers 179 Views
Map
This is a migrated thread and some comments may be shown as answers.
Hwee Kiang
Top achievements
Rank 1
Hwee Kiang asked on 13 Dec 2012, 01:00 AM
Hi,

I am just starting on a trial version of telerik so I am still new to many concepts.

Here are some questions I like to ask about radmap:

1. I managed to load my geotiff image using UriImageProvider and specifying the geobounds. However, is it possible to load the geotiff image directly, i.e. without me having to use another tool to read off the geotiff header to find the location boundaries of the image.

2. My geotiff image is not a perfect square / rectangular image, that is, there are black background on pixels that have no information. How do I render the images such that these pixels show up as transparent since I be overlaying the image on top of my base map. With Arcmap, I can set this through the image properties. How do I do it with radMap?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 17 Dec 2012, 09:50 AM
Hello Hwee,

Thank you for the feedback.

1. Currently RadMap does not support  loading the geotiff image header to find the location boundaries. We have created an entry in our Public Issue Tracking System to implement this feature in future releases of the control. You can track implementation using the following link:
http://www.telerik.com/support/pits.aspx#/public/wpf/13748

2. The UriImageProvider uses the standard WPF Image control to show an image. So, we can't control its rendering. You should be able to convert the geotiff image to other image format which supports the alpha channel (for example PNG).

Best regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Hwee Kiang
Top achievements
Rank 1
answered on 21 Dec 2012, 09:02 AM
Hi,

Thanks for your reply. I managed to read the geotiff header myself and did some bitmap processing to set the alpha channel so that the background appears transparent.

However, I realised from the geotif header that my image undergoes Affine Transformation(i.e., my image needs to be rotated and skewed in order to be displayed on the map). How do I plot the image accurately onto the map based on the corner coordinates of the image? So far the UriImageProvider only allows for geobounds which is a LocationRect which only takes in 2 coordinates.

I tried creating a geobound with two corner coordinates and I get an NAN error for location2 of the rectangle. When will this happen?

Thanks!

Regards
Hwee
0
Andrey
Telerik team
answered on 21 Dec 2012, 04:43 PM
Hi Hwee Kiang,

The UriImageProvider does not support any transformations for the image it uses. So, you should prepare the image to the north-oriented rectangle form before it can be displayed using UriImageProvider.

It is very complicated and it is hard to reproduce the problem with creating geobounds without your solution. Could you please provide us with your solution or with a small sample solution which reproduces it?

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Map
Asked by
Hwee Kiang
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Hwee Kiang
Top achievements
Rank 1
Share this question
or