Page 1 of 1

NetworkClass into polish road type

Posted: Mon Sep 11, 2017 1:15 pm
by sebastian.pietrzak
Hello,

i started to use in my invidual profile <LinkTypeConfiguration> with <Road minimumNetworkClass="4"/>
However i cant find any information as to which type of road like highway, country road, city road a number should be.

Additionally i have tool Map Test. How i can check manually Network Class selected road ?

Re: NetworkClass into polish road type

Posted: Thu Sep 14, 2017 11:14 am
by Bernd Welter
Hello Sebastian,

the enumeration NetworkClass tells you the values of what you need:
XRoute.NetworkClass
XRoute.NetworkClass
XMapTest client does not tell you about the category of segments.
But: at least for debugging you can use the following self-referencing file (use it as a profile stored in your conf folder and request it as CallerContext-->profile
map.profile=xmap-networkclasses.properties
#MOTORWAY 0
#HIGHWAY 1
#TRUNK_ROAD 2
#COUNTRY_ROAD 3
#CITY_ROAD 4
#RESIDENTIAL_ROAD 5
#SPECIAL_ROAD 6
#CYCLE_AND_WALKWAY 7

# 16777215 = WHITE
# 16776960 = CYAN
# 16711935 = MAGENTA
# 16711680 = BLUE
# 65535 = YELLOW
# 65280 = GREEN
# 255 = RED
# 0 = BLACK

[config.streeti.colorbytype]
0=16777215
1=16776960
2=16711935
3=16711680
4=65535
5=65280
6=255
7=0

[config.streetf.colorbytype]
0=16777215
1=16776960
2=16711935
3=16711680
4=65535
5=65280
6=255
7=0
Map generated with this ugly profile ;-)
Map generated with this ugly profile ;-)