Page 1 of 1
Result of renderMapBoundingBox, wrappedObjectsField property
Posted: Mon Mar 20, 2017 8:49 am
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"?
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon Mar 20, 2017 9:12 am
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
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon Mar 20, 2017 9:18 am
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
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon May 22, 2017 11:14 am
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).
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon May 22, 2017 11:26 am
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
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon May 22, 2017 1:51 pm
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?
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Mon May 22, 2017 1:54 pm
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.
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Tue May 23, 2017 11:20 am
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.
Re: Result of renderMapBoundingBox, wrappedObjectsField prop
Posted: Tue May 23, 2017 3:59 pm
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
Best regards Bernd