ThinkGeo.com    |     Documentation    |     Premium Support

Order of features in a inMemoryLayer?

Hello,


How can I get/set the order of features in an inMemoryLayer ?


When I have 2 features that have a intersection, I would like to say that the feature number 1 must be over the feature number 2. And I would like to get these informations from the inMemoryLayer too.

Is it possible ? How can I do that ?


Many thanks,

Guillaume.



Guillaume, 
  
   I am pretty sure that it depend on the order that the features are added.  If you need for feature 2 to draw over feature 1 then you need to add feature 2 send to the layer. 
  
 David