Skip to main content

I think you're looking for this:

createCREATE TABLE tableC asAS 
  (selectSELECT st_intersectionST_Intersection(a.geom, b.geom) asAS geom, a.name asAS name 
   fromFROM tableA asAS a, tableB asAS b
   whereWHERE st_intersectsST_Intersects(a.geom, b.geom));

By looking at each intersection separately, you can access all the included data.

I think you're looking for this:

create tableC as 
  (select st_intersection(a.geom, b.geom) as geom, a.name as name 
   from tableA as a, tableB as b
   where st_intersects(a.geom, b.geom));

By looking at each intersection separately, you can access all the included data.

I think you're looking for this:

CREATE TABLE tableC AS 
  (SELECT ST_Intersection(a.geom, b.geom) AS geom, a.name AS name 
   FROM tableA AS a, tableB AS b
   WHERE ST_Intersects(a.geom, b.geom));

By looking at each intersection separately, you can access all the included data.

thanks
Source Link
lynxlynxlynx
  • 4.3k
  • 3
  • 31
  • 46

I think you're looking for this:

create tableC as 
  (select st_intersection(a.geom, gb.geom) as geom, a.name as name 
   from tableA as a, tableB as b
   where st_intersects(a.geom, gb.geom));

By looking at each intersection separately, you can access all the included data.

I think you're looking for this:

create tableC as 
  (select st_intersection(a.geom, g.geom) as geom, a.name as name 
   from tableA as a, tableB as b
   where st_intersects(a.geom, g.geom));

By looking at each intersection separately, you can access all the included data.

I think you're looking for this:

create tableC as 
  (select st_intersection(a.geom, b.geom) as geom, a.name as name 
   from tableA as a, tableB as b
   where st_intersects(a.geom, b.geom));

By looking at each intersection separately, you can access all the included data.

Source Link
lynxlynxlynx
  • 4.3k
  • 3
  • 31
  • 46

I think you're looking for this:

create tableC as 
  (select st_intersection(a.geom, g.geom) as geom, a.name as name 
   from tableA as a, tableB as b
   where st_intersects(a.geom, g.geom));

By looking at each intersection separately, you can access all the included data.