[Qgis-user] Re:Constraints on postgresql views

Andrea Peri 2007 aperi2007 at gmail.com
Fri Apr 2 10:48:46 PDT 2010


Perhaps,
it missing a "group by" operator ?

SELECT  
	f.id AS oid, 
	ST_Multi(ST_Union(f.the_geom)) as the_geom 
FROM (
	SELECT 
		id,
		ST_Dump(the_geom)).geom As the_geom 
	FROM 
		v_tmp
) As f
group by
	f.id


Regards,

Andrea.






More information about the Qgis-user mailing list