File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
core/src/main/java/com/graphhopper Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -863,8 +863,11 @@ protected void prepareImport() {
863
863
864
864
if (urbanDensityCalculationThreads > 0 )
865
865
encodedValuesWithProps .put (UrbanDensity .KEY , new PMap ());
866
- if (maxSpeedCalculator != null )
866
+ if (maxSpeedCalculator != null ) {
867
+ if (urbanDensityCalculationThreads <= 0 )
868
+ throw new IllegalArgumentException ("For max_speed_calculator the urban density calculation needs to be enabled (e.g. graph.urban_density.threads: 1)" );
867
869
encodedValuesWithProps .put (MaxSpeedEstimated .KEY , new PMap ());
870
+ }
868
871
869
872
Map <String , ImportUnit > activeImportUnits = new LinkedHashMap <>();
870
873
ArrayDeque <String > deque = new ArrayDeque <>(encodedValuesWithProps .keySet ());
You can’t perform that action at this time.
0 commit comments