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.

Result of renderMapBoundingBox, wrappedObjectsField property

Postby tswierkot@lis.eu » Mon Mar 20, 2017 8:49 am

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 -> viewtopic.php?p=449#p449
However what is this numbers, something like: "|2=160"? I found here -> viewtopic.php?p=432&sid=53df3553f561ce3c180d186845ef692b#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"?
tswierkot@lis.eu
 
Posts: 4
Joined: Fri Mar 17, 2017 9:44 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby Joost » Mon Mar 20, 2017 9:12 am

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
Joost
 
Posts: 159
Joined: Fri Apr 25, 2014 1:46 pm

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby Bernd Welter » Mon Mar 20, 2017 9:18 am

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: viewtopic.php?f=7&t=256&p=1302&hilit=malus#p1306

Maybe it helps,
regards Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 843
Joined: Mon Apr 14, 2014 10:28 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby tswierkot@lis.eu » Mon May 22, 2017 11:14 am

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

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby Bernd Welter » Mon May 22, 2017 11:26 am

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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 843
Joined: Mon Apr 14, 2014 10:28 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby tswierkot@lis.eu » Mon May 22, 2017 1:51 pm

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

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby Bernd Welter » Mon May 22, 2017 1:54 pm

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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 843
Joined: Mon Apr 14, 2014 10:28 am

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby tswierkot@lis.eu » Tue May 23, 2017 11:20 am

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

Re: Result of renderMapBoundingBox, wrappedObjectsField prop

Postby Bernd Welter » Tue May 23, 2017 3:59 pm

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:
forum.PNG
comparison between different coord formats


Best regards Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 843
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV xMapServer