Page 2 of 2

Re: Display only outside border of active region.

Posted: Mon Feb 12, 2018 12:46 pm
by Oliver Heilig
BTW, If you modify the sample

https://ptv-logistics.github.io/xserver ... ions-merge

to merge all polygons:

Code: Select all

var newTopo = topojson.merge(topoData, topoData.objects.postcode.geometries.filter(function (d) { return true; }));
You'll notice the difference :D

Re: Display only outside border of active region.

Posted: Mon Feb 12, 2018 12:54 pm
by webdirekt
We are currently working on Wpf standalone application, how can we use topology functionality in Wpf application ?

Re: Display only outside border of active region.

Posted: Mon Feb 12, 2018 1:32 pm
by Oliver Heilig
That's exactly the problem: There are no libraries for .NET comparable to those for JavaScript. There's some kind of port

https://github.com/Freddixx/TopoJSON.Net

you could use to display TopoJson in the control. But there's no merge() function available as far as i can see.

So i cannot see a way to perform realtime merging in C#, besides porting https://github.com/topojson/topojson-cl ... #topomerge or using some Interop to invoke the method from C#.

Sorry,

Oli

Re: Display only outside border of active region.

Posted: Thu Feb 15, 2018 6:00 am
by webdirekt
Thanks for the reply. We have used the NetTopologuSuit and GeoAPI & created a union geometry and saved union geometry binary in flat file. Later, we are using the flat file to read geometry data in display region in Map.

Currently it takes 3 to 4 to read geometry data file and display union geometry of large region on Map.