Problem with PTV_TruckAttributes

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
kraiwut
Posts: 2
Joined: Tue Dec 06, 2016 9:21 am

Problem with PTV_TruckAttributes

Post by kraiwut »

Hello,

I'm trying to use "PTV_TruckAttributes" theme with VB.NET. And I got the following error.

Image

This is my CallerContext

Code: Select all

<Profile xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
 <FeatureLayer majorVersion='1' minorVersion='0'>
  <Themes>
   <Theme id='PTV_TruckAttributes' enabled='true'/>
  </Themes>
 </FeatureLayer>
 <Routing majorVersion='2' minorVersion='0'>
  <Vehicle>
   <Physical>
    <Weight emptyWeight="7500" /> 
    <Dimension height="350" width="250" />
   </Physical>
  </Vehicle>  
 </Routing>
</Profile>
And... ResultListOptions.segments and ResultListOptions.featureDescriptions are true.

What am I missing? Why I got that error?

Thank You in advance.

Kraiwut
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Problem with PTV_TruckAttributes

Post by Bernd Welter »

Looks like your map data isn't "complete". The feature layer data has to be added to your map folder together with so-called property connector files. Did you proceed the manual installation?

Best regards Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
kraiwut
Posts: 2
Joined: Tue Dec 06, 2016 9:21 am

Re: Problem with PTV_TruckAttributes

Post by kraiwut »

Hi Bernd, thank you for your reply! :)

When you say 'map data' do you mean the bin files? I didn't install the server by myself. But I do have bin files(.bin, .bin.ini and .bin.lif) in map/re/TruckAttributes folder.

I checked my server with this http://xserver.ptvgroup.com/fileadmin/f ... ight=truck and everything looks correct. Is this the updated one?
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Problem with PTV_TruckAttributes

Post by Bernd Welter »

There are two approaches of how to use the logical content we call TRUCK ATTRIBUTES:
  • Traditional approach: you copy a single BIN file into a subfolder of the map (usually map/RE) and refer to it by using the name of the BIN file without extension
  • Since we invented the more generic featurelayer mechanism we also provide the same "content" in a different representation. This is the mechanism you seem to approach in the initial post.
The feature layer data is available for download in the Customer Area of the DevZone:
http://xserver.ptvgroup.com/en-uk/devel ... -download/
(license login required)

There is a nice sample available here:
http://xserver.ptvgroup.com/forum/viewt ... 1134#p1134

So if you want to use traditional BIN files you have to activate another section in the snippet compared to the FeatureLayer approach.

Best regards Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply