ThinkGeo.com    |     Documentation    |     Premium Support

Create a custom layer

I have an MVC application that is using Bing maps with features over our buildings. The issue is Bing maps are out of date. We have flyovers imagery we have taken. I would like to add these images overtop of the Bing maps.What is the best way to do this?



Also we take new flyover images quarterly. Is there a way to automate the process for updating these maps?

Hi John, 
  
 Do you meant you have some special image need be render above Bing map? 
  
 Do you have the images data local or it’s a web service which just like Bing tile maps? 
  
 If you have the data local, you can just add them to a layer, then put the layer above Bing map. If it’s a web service and you can access that by WMS, we have speical layer for it.  
  
 If it cannot be access via standard WMS, you can contact our sales for get professional service. 
  
 Regards, 
  
 Don

Do you meant you have some special image need be render above Bing map? 

    Yes, I have images I need to render above the Bing map.



Do you have the images data local or it’s a web service which just like Bing tile maps? 

    The images are on a network share folder

 

If you have the data local, you can just add them to a layer, then put the layer above Bing map. If it’s a web service and you can access that by WMS, we have speical layer for it.  

    What type of layer do I use to load jpg?

    Do you have a code snippet or link to the proper way to do this?

Hi John, 
  
 You need a world file for each JPG file(or you specified the image in map one by one), then you can easily render it by GDIPlusRasterLayer. 
  
 This sample render GIF format radar image, I think it can show you how to render an image. It’s based on ServiceEdition, but it’s the same to use GDIPlusRasterLayer. 
  
 wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_All_Samples#Filter_Radar_Image 
  
 Regards, 
  
 Don

The images I have need to be rotated to match up with the map. From what I have found the rotate is not implemented in the raster implementation. Is there another option to add in these images?

Hi John, 
  
 I am sorry we don’t support rotate for GdiPlusRasterLayer for now.  
  
 But our developer is working for try to make all raster layer support rotating, I think that will be enable in future. 
  
 Regards, 
  
 Don

What should I use instead for GDIPlusRasterLayer for the images I need to import? Do you have an example of how to do this?



I need to be able load a group of JPG, rotate the image to line up with Bing maps, and put two more layer on top of these. One of these layers will have shape the other will have labels for these shapes.

Hi John, 
  
 I am sorry, we have to use GDIPlusRasterLayer to render JPG image for now, and it still don’t support rotate. 
  
 Regards, 
  
 Don 
  
  


Hi John, 



Please download the latest development version 9.0.45.0 from Product Center to have a try. Now it should support the rotation of GdiPlusRasterLayer, but we are still improving the performance, once everything goes well, we will synchronize it to Production branch.  Here is the demo code:




RotationProjection projection = new RotationProjection(60.0);
GdiPlusRasterLayer gdiPlusRasterLayer = new GdiPlusRasterLayer(@"…\App_Data\PNG\World.png"new RectangleShape(-20037508.352, 20037508.352, 20037508.352, -20037508.352));
gdiPlusRasterLayer.ImageSource.Projection = projection;





BTW, the specified version is still in building now, maybe you need to wait several hours.



Thanks, 

Johnny