ThinkGeo.com    |     Documentation    |     Premium Support

Geo-referencing of Google Earth image

Hi,


i have a google earth image with high resolution 4800 x 3962. can anybody answer the following questions to be used in Map suite desktop edition 3.0?



        
  • can i geo-reference this image in ThinkGeo or should i use ArcMap?

  •     
  • can we use reference co-ordinates (minimum 3 prescribed); obtained from google earth and converted in decimals?

  •     
  • ThinkGeo or ArcMap; how can i geo-reference?


 


regards,


Hamad



Hamad, 



First, want to let you know Desktop edition support GoogleMap intrinsically. You can connect to google and get the google earth image on the fly, do not need to get the data yourself and integrated with your map manually. Here are some codes how to use google map in desktop edition. 


GoogleMapsLayer gLayer = new GoogleMapsLayer(googleMapURL); 
gLayer.Name = "GoogleMapsLayer"; 
gLayer.MapType = GoogleMapsMapType.Hybrid; 
gLayer.PictureFormat = GoogleMapsPictureFormat.Jpeg; 
Map1.StaticOverlay.Layers.Add("GoogleMapsLayer", gLayer); 

As Google Map has there own projection, usually you need to convert data from other projection (like decimal degrees) to google’s projection. Codes would be like this 


Proj4Projection proj4 = new Proj4Projection(); 
// Decimal degree has the epsg number 4326 
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326); 
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString(); 
shapeFileFeatureLayer.FeatureSource.Projection = proj4; 

Sure you can also download the google earth image to local machine and integrated it with map using raster layer. Here are some questions for that. 

1, what type is that google earth data? Does it have a world file, what is it. 

2, I think you want to show the google earth image as the background and put your data on top of it. So what’s your data? Is that vector data? And what is the projection of that? 



Let us know that and we can provide better help. :-)  



Thanks, 



Ben 

 



Hi there,  
  
 Im new to the GIS world Im very interested in using a raster-online google maps layer.  
  
 do you have any working full example ?  
  
 thanks.

Ernesto,


Thanks for your post and welcome you to ThinkGeo MapSuite Forum!


I am not sure what product you are using now, Attachment contains a demo to use the GoogleMapsLayer built in VS2008, and you need to reference the MapSuiteCore.dll from ServiceEdtion 3.1.124 or Desktop Edition 3.0.307 to make it compile.


Let me know if you have any problems!


Thanks.


Yale



844-Post5544Demo.zip (10.8 KB)