Result of renderMapBoundingBox, wrappedObjectsField property

This forum covers all questions dealing with visualization of data within the native PTV xMap interface. Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
tswierkot@lis.eu
Posts: 4
Joined: Fri Mar 17, 2017 9:44 am

Result of renderMapBoundingBox, wrappedObjectsField property

Post by tswierkot@lis.eu »

Hello together,

I have a problem with renderMapBoundingBox and return type wrappedObjectsField. I think it returns a list of map restriction, but in the type of each description is something like (4 examples):

Code: Select all

DIR_OPT_COND_MALUS5|2=240
MAX_HEIGHT|2=250
MAX_HEIGHT|2=400
DIR_OPT_COND_MALUS5|2=160
I know the meaning of the strings from here -> http://xserver.ptvgroup.com/forum/viewt ... p=449#p449
However what is this numbers, something like: "|2=160"? I found here -> http://xserver.ptvgroup.com/forum/viewt ... f692b#p432 but it is not 100% clear for me. So, the first number is something like vehicle property value, and the second is value of it. However, how I can know what is this value? The second question is, for what I need this vehicle property value, when I have already the meaning of value in string before character | (I know the meaning of the strings from the first link)?

The next question is: what is a meaning of "malus"?
Joost
Posts: 307
Joined: Fri Apr 25, 2014 1:46 pm

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by Joost »

The description you are getting back is described in the API for the roadeditorlayer class. Have a look at http://xserver.ptvgroup.com/fileadmin/f ... ditorLayer

So to translate your examples:
- The segment is closed for vehicles heavier than a 2400 kg except for residential for both driving direction
- The segment is closed for vehicles with a height larger then 250 cm for both driving directions
- The segment is closed for vehicles with a height larger then 400 cm for both driving directions
- The segment is closed for vehicles heavier than a 1600 kg except for residential for both driving direction
Joost Claessen
Senior Technical Consultant
PTV Benelux
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by Bernd Welter »

Hi there,

thanks for your answer, Joost.

One more statement about MALUS values: as this is a term that affects routing I recommend to start a thread in xRoute if necessary. But before you create a new post please check this message: http://xserver.ptvgroup.com/forum/viewt ... alus#p1306

Maybe it helps,
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:
tswierkot@lis.eu
Posts: 4
Joined: Fri Mar 17, 2017 9:44 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by tswierkot@lis.eu »

Ok, thanks for replies.

I have additional question, about FeatureLayer:
In request there is name = "PTV_TruckAttributes", example replies (it is result.LayerObject[].Object.descr):

Code: Select all

"driveType=0|maxWeight=7500|freeForDelivery=1"	
"driveType=0|maxHeight=400"
"loadType=1|driveType=0|freeForDelivery=1|opening=0"
Where I can find the meaning of each value? Some are clear (maxHeight), but some not (loadType, driveType etc).
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by Bernd Welter »

Hi there,

the properties documantation is available here:

http://xserver.ptvgroup.com/fileadmin/f ... t=loadType

Is this info sufficient?

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:
tswierkot@lis.eu
Posts: 4
Joined: Fri Mar 17, 2017 9:44 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by tswierkot@lis.eu »

Yes, it is ok. For now I try to parse this description string to get all properties, is there better way to get all properties? Something like PTV object with it?
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by Bernd Welter »

No, none that I know of.
And it is quite generic, i.e. this parsing approach refers to TruckAttributes.
Other data - other parsing.
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:
tswierkot@lis.eu
Posts: 4
Joined: Fri Mar 17, 2017 9:44 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by tswierkot@lis.eu »

And how about "PTV_TrafficIncidents" FeatureLayer, there is a example result:

Code: Select all

"absoluteSpeed=40|category=61|language=en|message=A49 southwestern at Kassel left lane closed|length=1428|startX=4380690|startY=5547109|language=|incidentId=TTI-1a4962c4-0c5f-4be8-98dd-0e5c3d768f51-TTR121843417011584-2_1"
what is exactly the "startX=4380690|startY=5547109", and how to get the coordinates from it (the best for me is just to get latitude, and longitude)?

I see it here:

Code: Select all

http://xserver.ptvgroup.com/fileadmin/files/PTV-COMPONENTS/DeveloperZone/Documents/xServer_public/manual/Default.htm#FeatureLayerContent-Documentation/featurelayercontent.html#PTV_TrafficIncidents%3FTocPath%3DTechnical%2520Concepts%7CAbout%2520Feature%2520Layer%7CLayer-Specific%2520Properties%7C_____5
however there no explanation in it.
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Post by Bernd Welter »

As the string returned as "objectInfo" is rendered at feature layer design time (on data center) we do not know whether you requested the map tile in OG_GEODECIMAL or PTV_MERCATOR or whatever: It is simply stored in PTV_SMARTUNITS.

But:
If your mapping interface works with OG_GEODECIMAL you can have a look at the ObjectInfos X,Y-Coordinate property:
comparison between different coord formats
comparison between different coord formats
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