Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

projection.prepreclip? #170

Open
mbostock opened this issue Aug 9, 2019 · 3 comments
Open

projection.prepreclip? #170

mbostock opened this issue Aug 9, 2019 · 3 comments
Labels

Comments

@mbostock
Copy link
Member

mbostock commented Aug 9, 2019

It’d be nice to be able to use d3.geoClipPolygon prior to rotation for clipping in geographic coordinates (as opposed to using rotated coordinates with projection.preclip, as is suitable for the outline of an interrupted projection).

@Fil
Copy link
Member

Fil commented Aug 10, 2019

If what we want is to clip a geojson with a polygon, this is a geometric operation that should happen on the sphere. It’s not clear to me why this would be tied to the projection.

Related:

@Fil
Copy link
Member

Fil commented Aug 10, 2019

Also that particular use case is arguably better served by planar post-clipping projection.clipExtent
https://observablehq.com/d/c613d80805786986

but of course this currently allows only rectangle extents. It would be cool to allow arbitrary geometry planar post-clipping.

@Fil Fil added the idea label Jul 10, 2020
@Fil
Copy link
Member

Fil commented Jul 23, 2020

See also d3/d3-polygon#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants