Come scrivere una JOIN tabellare con ogr
Come realizzare una JOIN tabellare usando l’utility da riga di comando ogr2ogr
	
A cura di
Totò Fiandaca 
		
		| issue 
		#218
		
		
		
		| guida/e
		
		Totò Fiandaca
		
		
	
Caso d’uso
Dati due shapefile con un campo correlato (id), realizzare una JOIN tabellare tra i due file.
esempio shapefile:

Esempio
ogr2ogr -sql \ 
"SELECT t1.*, t2.valore \ 
FROM test1 t1 JOIN './test2.shp'.test2 t2 ON t1.id=t2.id" \ 
./testkk.shp ./test1.shp
dove:
- test1è il primo shapefile;
- test2è il secondo shapefile;
- testkkè il risultato della JOIN tabellare.

Dati
Riferimenti utili
Ultima modifica 15/01/2023: aggiungo un link (6fe6b40)