mapbox / mapbox/wagyu

intersection return empty

Open
#101 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
197
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Why I do intersection with wagyu return 'MULTIPOLYGON EMPTY',but do intersection with GEOS return a geometry object?
e.g.
select st_astext(st_intersection(ST_GeomFromText('POLYGON((2600140.901 -603782.437400002, 2600545.2722 -603782.437400002, 2600545.2722 -603279.563999999, 2600140.901 -603279.563999999, 2600140.901 -603782.437400002))', 3857), ST_GeomFromText('POLYGON((2600245.2722 -603682.437400002,2600245.2722 -603682.437400002,2600244.66725 -603682.174225002,2600244.0623 -603681.911050001,2600243.45735 -603681.647875001,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.61455 -603680.929525,2600242.3767 -603680.47435,2600242.13885 -603680.019175,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600242.7438 -603680.28235,2600243.5866 -603681.000700001,2600244.4294 -603681.719050001,2600245.2722 -603682.437400002,2600245.2722 -603682.437400002))', 3857)));

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied ST_Intersection query using the two WKT polygons and SRID 3857, then compare the Wagyu and GEOS results. Trace the intersection behavior in the Wagyu integration and use the observed geometry outputs to determine why Wagyu returns MULTIPOLYGON EMPTY while GEOS returns a geometry object.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.