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

Topojson.merge produces a difference instead of a union #318

Open
DenMesh opened this issue Jan 30, 2018 · 0 comments
Open

Topojson.merge produces a difference instead of a union #318

DenMesh opened this issue Jan 30, 2018 · 0 comments

Comments

@DenMesh
Copy link

DenMesh commented Jan 30, 2018

geometries.txt
The attached file contains two geometries that behave weirdly. As far as I was able to confirm, both are similarily winded. However, the following code produces, weirdly enough, a DIFFERENCE, not a union:
var topo = topojson.topology({ data: FeatureCollectionOfGeometries }); var geo = topojson.merge(topo, topo.objects.data.geometries);
Result was checked by projecting the data like this:
var projection = d3.geoAlbers() .rotate([-105, 0]) .center([-10, 65]) .parallels([52, 64]);
(and a fitSize)
and then drawing it as an svg path with d3.

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

No branches or pull requests

1 participant