Overlay Geotiff Image

4 posts, 0 answers
  1. Hwee Kiang
    Hwee Kiang avatar
    2 posts
    Member since:
    Nov 2012

    Posted 12 Dec 2012 Link to this post

    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!
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Hwee Kiang
    Hwee Kiang avatar
    2 posts
    Member since:
    Nov 2012

    Posted 21 Dec 2012 Link to this post

    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
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 21 Dec 2012 Link to this post

    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.

Back to Top