ThinkGeo.com    |     Documentation    |     Premium Support

VirtualEarthLayer and DecimalDegree

I'd like to use the VirtualEarthLayer with DecimalDegrees. Do I have to do anything special to get this to work?


Thanks!



Gregory, 
  
 You can not use VirtualEarth layer with DecimalDegrees because it doesn’t support that map unit just like Google map. 
  
 If you want to overlap VirtualEarth layer and other feature layers, you can project other feature layers the same as VirtualEarth. 
  
 If you want to use projection stuff, the easiest that I have found is to use the EPSG Code integers as the SRID parameters on the Proj4Projection. SRID = Spatial Reference ID. 
  
 The EPSGCode of VirtualEarth is 900913. 
  
 The constructor on the Proj4Projection takes two SRID parameters (as one of the options). The internal projection, and the external projection. Internal means "what is the native projection of my data". External means "what do I want to convert to". Normal Lon/Lat data is expressed in WGS84 Geodetic datum, and the EPSGCode for it is 4326. So, your constructor is:  
  
 Proj4Projection p = new Proj4Projection(4326, 900913) 
  
 Please let me know if you have more questions. 
  
 Thanks. 
  
 James