ThinkGeo.com    |     Documentation    |     Premium Support

Projection Question

I have a question on projections.


I have some sql layers that I load and in this case, I have assigned a projection that converts between the database projection and the google projection and it seems to work just fine. All the code is really behind the scenes though, I'm simply initializing the MSsql layer with a table name and the projection.


I also have several InMemoryFeatureLayers. The data stored in our data layer is in the same projection as the database and obviously when we want to show them on the map, they need to be projected to the google projection. What I don't understand is why I always have to manually do the conversion between the projections? It doesn't seem to matter if I have a projection set on the InMemoryFeatureLayers or not. Why can't I add a feature that's in the external projection for the layer and have it automatically convert it to the layers internal projection and then vice versa? Can you explain how this is supposed to work? I think I'm just missing something.


Thanks!


Kimberly



Kimberly 
  
 It sounds illogical for me too, you can take a look to the 2 last comments of gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5813/afv/topic/afpgj/1/Default.aspx#8738 
  
 The thing is that layer are projected but feature are not …  
  
 Hope this helps, 
 Patrick.

Thank Patrick for your sharing and your information is very useful. After I do some investigation, I found the thing is like that, the reason is probably the same as Yale said. 
  
 Kimberly, if you have any comments for this issue, please let us know, we can provide the information which might be help. 
  
 Thanks 
  
 James