| 
			 
  | 
		
			 Recette
			#16  | 
	
| 
			 Février 2011  | 
		
| 
			 Le problème Cette fois ci, nous allons utiliser le jeux de donnée
			railways. 
  | 
	
| 
			 Important: Avant de commencer, veuillez
			télécharger le jeux de donnée.  | 
	
| 
			 Railway  | 
		
			 LocalCouncil  | 
		
			 County  | 
		
			 Region  | 
	
| 
			 ...  | 
		
			 ...  | 
		
			 ...  | 
		
			 ...  | 
	
| 
			 Ferrovia Adriatica  | 
		
			 SILVI  | 
		
			 TERAMO  | 
		
			 ABRUZZO  | 
	
| 
			 Ferrovia Adriatica  | 
		
			 TORTORETO  | 
		
			 TERAMO  | 
		
			 ABRUZZO  | 
	
| 
			 Ferrovia Roma-Napoli  | 
		
			 AVERSA  | 
		
			 CASERTA  | 
		
			 CAMPANIA  | 
	
| 
			 Ferrovia Roma-Napoli  | 
		
			 CANCELLO ED ARNONE  | 
		
			 CASERTA  | 
		
			 CAMPANIA  | 
	
| 
			 ...  | 
		
			 ...  | 
		
			 ...  | 
		
			 ...  | 
	
| 
			 SELECT rw.name AS
			Railway,  | 
	
On examinera que les points importants:
la clause JOIN est utilisé pour obtenir les County et Region correspondant à chaque Local Council.
le point le plus intéressant se
	trouve dans la première cluse JOIN
	:
la fonction ST_Intersects()
	est utilisé pour évaluer les relations spatiales entre les tables
	local_councils et
	railways.
Nous
	avons déjà évoqué cette fonction dans les exemples précédents.
		
enfin, on utilise l'Index Spatial R*Tree afin d'optimiser la requète
| 
			 Cet exemple se rapproche beaucoup du précédent.  | 
	
| 
			 
  | 
		
			 Author: Alessandro Furieri a.furieri@lqt.it  | 
	
| 
			 This work is licensed under the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.  | 
	|
| 
			 | 
	|
| 
			 
  | 
		
			 Permission is granted to copy, distribute and/or modify this
			document under the terms of the  |