Display only outside border of active region.

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Display only outside border of active region.

Post 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
Attachments
merge_lux.png
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
webdirekt
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

Re: Display only outside border of active region.

Post by webdirekt »

We are currently working on Wpf standalone application, how can we use topology functionality in Wpf application ?
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Display only outside border of active region.

Post 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
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
webdirekt
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

Re: Display only outside border of active region.

Post 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.
Post Reply