Search found 139 matches

by Oliver Heilig
Mon Feb 12, 2018 12:30 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: Display only outside border of active region.
Replies: 13
Views: 20996

Re: Display only outside border of active region.

I knew this would happen ;) Yes, merging a large set of polygons is slow. If you want to implement a "realtime" interactive merging, the simple incremental merge will fail performance-wise. map&market uses a special algorithm for merging base polygons. It's called "FastUnion"...
by Oliver Heilig
Thu Feb 08, 2018 5:43 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: Display only outside border of active region.
Replies: 13
Views: 20996

Re: Display only outside border of active region.

@Bernd hinted me a method which should be better:

NTS has a dedicated function

http://nettopologysuite.github.io/html/ ... on_op.html

Didn't know this exists, havent used it much lately.

Mea culpa

Oli
by Oliver Heilig
Thu Feb 08, 2018 5:29 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: Display only outside border of active region.
Replies: 13
Views: 20996

Re: Display only outside border of active region.

Short answer:

You can do this with NetTopologySuite, which is part of SharpMap. The solution is to put all polygons into a GeometryCollection and create a Buffer() with size 0. This gives the desired result.

Sorry, the answer maybe too short. Don't have code for it at hand,

Oli
by Oliver Heilig
Wed Jan 24, 2018 2:13 pm
Forum: PTV xRouteServer / DEV.Routing API
Topic: Truck restrictions
Replies: 9
Views: 12734

Re: Truck restrictions

Hi Rok, this seems to be a problem with the xsd.exe tool in combination with the XmlSerializer class. xsd.exe creates the property with a DefaultValueAttribute set to EURO_5, and the XmlSerializer doesn't write a value if it's equal to the default value. A workaround for this issue is to remove the ...
by Oliver Heilig
Wed Jan 10, 2018 5:59 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: Dark Side
Replies: 3
Views: 9568

Re: Dark Side

Hi Javor, Though there are two options for the WPF-Control. You can test them at https://github.com/ptv-logistics/xservernet-bin. 1. You can make the Tile-Layer semi-opaque and set the background of the control to black (sample CustomLayout). Dimmer.png 2. Use the control with xServer-2. xMapServer-...
by Oliver Heilig
Mon Jan 08, 2018 6:46 pm
Forum: PTV xRouteServer / DEV.Routing API
Topic: Translate traffic information
Replies: 7
Views: 11458

Re: Translate traffic information

Hello Alex, i must say this is not that simple out-of-the-box. It requires a layer-configuration which returns multiple language fields. This is not supported by the default configration of the TrafficInformation layer. However, there's an alternative "map&guide-internet" TrafficInfoLa...
by Oliver Heilig
Fri Dec 22, 2017 1:16 pm
Forum: PTV xMapServer / Dev.RasterMaps API
Topic: Recommended geometry frameworks for mapping usecases
Replies: 1
Views: 9791

Re: Recommended geometry frameworks for mapping usecases

Some additions, with actual samples: .NET (Framework) Reading/Writing data-formats, Map-Rendering SharpMap https://www.nuget.org/packages/SharpMap/ . Sample with xServer https://github.com/ptv-logistics/SharpMap.Widgets JS Simple mapping functions (geo-distance / pointInPolygon) Leaflet + Plugins. S...
by Oliver Heilig
Fri Dec 22, 2017 12:26 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
Topic: How to display/cover a map area by geo locations
Replies: 2
Views: 9290

Re: How to display/cover a map area by geo locations

Hi Prarakash, think this isn't a possible with the ajax control out-of-the-box. It seems you need some GIS methods for your task, i.e. intersect your polygon (which is a convex hull?) with the polygon of the country border. This means you also need those country borders as polygons plus a geometric ...
by Oliver Heilig
Mon Dec 11, 2017 3:12 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: FormsMap Control and HighDPI settings
Replies: 0
Views: 4076

FormsMap Control and HighDPI settings

Hi, some customers have reported issues with the xServer.NET FormMap control and HighDPI displays. Whenever the Map is displayed, the complete application gets scaled weirdly. I've digged into this issue and found that this can be reproduced simply by adding the Standard WinForms ElementHost-Control...
by Oliver Heilig
Fri Dec 08, 2017 2:17 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
Topic: Latest version of Leaflet supported by PTV components
Replies: 4
Views: 16798

Re: Latest version of Leaflet supported by PTV components

We don't support dedicated Leaflet-Clients for Leaflet > 0.7 If you are using Leaflet with xMap-1, we recommend using the WMS/Tile-Servlet, see https://github.com/ptv-logistics/xserverjs/tree/master/boilerplate/xmap-1 If you need extended Layers, take a look at https://github.com/ptv-logistics/Leafl...