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

Reconverting topojson that was outputted by topojson-client #12

Open
salmankhann opened this issue Feb 1, 2018 · 1 comment
Open

Reconverting topojson that was outputted by topojson-client #12

salmankhann opened this issue Feb 1, 2018 · 1 comment

Comments

@salmankhann
Copy link

Hi,

I have a geojson object that was converted from a topjson using the topojson-client's feature method. When I try to reconvert the same object using the topology method of the topojson-server, I get all objects as undefined.

How can I reconvert a geojson that was outputted by the feature method back to topojson? I want to do so to use the merge method to merge certain paths from the topojson-client.

@tiagozc
Copy link

tiagozc commented Feb 27, 2018

I was having a similar problem as you and I took a long time (almost a day actually) to understand that we have to pass the geojson object as the value of a key in another object in topology method (the {foo: geojson} in docs), as this key (foo) will be a reference for the geojson data in topology.objects.foo. Just warning you in case your problem is the same as mine.

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

2 participants