Page 1 of 1

Problem with PTV_TruckAttributes

Posted: Tue Dec 06, 2016 1:29 pm
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

Re: Problem with PTV_TruckAttributes

Posted: Tue Dec 06, 2016 1:56 pm
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

Re: Problem with PTV_TruckAttributes

Posted: Tue Dec 06, 2016 3:28 pm
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?

Re: Problem with PTV_TruckAttributes

Posted: Tue Dec 06, 2016 4:16 pm
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