我有县城和城市多边形,我正在尝试在MySQL中创建,以便给我县减去城市多边形,这样我就可以显示该县的非法人部分。
我可以使用ST_Intersection将城市覆盖到县城,但我想反过来。
SELECT
ST_Intersection(part_1.shape, part_2.shape), part_2.name
FROM (SELECT * FROM us_county where county = 326) AS part_1,
cities as part_2
WHERE ST_Intersects(part_1.shape, part_2.shape)
非常感谢任何帮助
答案 0 :(得分:0)