Display only outside border of active region.

Within this forum we want to offer discussions all around our .NET based xServer controls.

Re: Display only outside border of active region.

Postby Oliver Heilig » Mon Feb 12, 2018 12:46 pm

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
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Oliver Heilig
 
Posts: 97
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany

Re: Display only outside border of active region.

Postby webdirekt » Mon Feb 12, 2018 12:54 pm

We are currently working on Wpf standalone application, how can we use topology functionality in Wpf application ?
User avatar
webdirekt
 
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

Re: Display only outside border of active region.

Postby Oliver Heilig » Mon Feb 12, 2018 1:32 pm

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
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Oliver Heilig
 
Posts: 97
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany

Re: Display only outside border of active region.

Postby webdirekt » Thu Feb 15, 2018 6:00 am

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.
User avatar
webdirekt
 
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

Previous

Return to PTV xServer.NET (Admin=OH)

cron