Fix compile errors
This commit is contained in:
parent
54f46c6c83
commit
ed20e4e90a
1 changed files with 15 additions and 8 deletions
|
@ -344,7 +344,8 @@ public class MapRenderRepositories {
|
||||||
coordinantes[2 * k] = r.getPoint31XTile(k);
|
coordinantes[2 * k] = r.getPoint31XTile(k);
|
||||||
coordinantes[2 * k + 1] = r.getPoint31YTile(k);
|
coordinantes[2 * k + 1] = r.getPoint31YTile(k);
|
||||||
}
|
}
|
||||||
BinaryMapDataObject mo = new BinaryMapDataObject(coordinantes, roTypes, new int[0][], r.getId());
|
BinaryMapDataObject mo = new BinaryMapDataObject( r.getId(), coordinantes, new int[0][],
|
||||||
|
RenderingRulesStorage.LINE_RULES, true, roTypes, null);
|
||||||
TIntObjectHashMap<String> names = r.getNames();
|
TIntObjectHashMap<String> names = r.getNames();
|
||||||
if(names != null) {
|
if(names != null) {
|
||||||
TIntObjectIterator<String> it = names.iterator();
|
TIntObjectIterator<String> it = names.iterator();
|
||||||
|
@ -446,8 +447,11 @@ public class MapRenderRepositories {
|
||||||
coastlineTime = "(coastline " + (System.currentTimeMillis() - ms) + " ms )";
|
coastlineTime = "(coastline " + (System.currentTimeMillis() - ms) + " ms )";
|
||||||
}
|
}
|
||||||
if (addBasemapCoastlines && mi != null) {
|
if (addBasemapCoastlines && mi != null) {
|
||||||
BinaryMapDataObject o = new BinaryMapDataObject(new int[]{leftX, topY, rightX, topY, rightX, bottomY, leftX, bottomY, leftX,
|
int[] coordinates = new int[]{leftX, topY, rightX, topY, rightX, bottomY, leftX, bottomY, leftX,
|
||||||
topY}, new int[]{ocean[0] && !land[0] ? mi.coastlineEncodingType : (mi.landEncodingType)}, null, -1);
|
topY};
|
||||||
|
BinaryMapDataObject o = new BinaryMapDataObject(-1, coordinates, new int[0][],
|
||||||
|
RenderingRulesStorage.POLYGON_RULES, true,
|
||||||
|
new int[]{ocean[0] && !land[0] ? mi.coastlineEncodingType : (mi.landEncodingType)}, null);
|
||||||
o.setMapIndex(mi);
|
o.setMapIndex(mi);
|
||||||
tempResult.add(o);
|
tempResult.add(o);
|
||||||
}
|
}
|
||||||
|
@ -940,7 +944,8 @@ public class MapRenderRepositories {
|
||||||
coordinates[j * 2] = (int) (ring.get(j) >> 32);
|
coordinates[j * 2] = (int) (ring.get(j) >> 32);
|
||||||
coordinates[j * 2 + 1] = (int) (ring.get(j) & mask);
|
coordinates[j * 2 + 1] = (int) (ring.get(j) & mask);
|
||||||
}
|
}
|
||||||
BinaryMapDataObject o = new BinaryMapDataObject(coordinates, new int[] { mapIndex.coastlineBrokenEncodingType }, null, dbId);
|
BinaryMapDataObject o = new BinaryMapDataObject(dbId, coordinates,
|
||||||
|
new int[0][], RenderingRulesStorage.POLYGON_RULES, true, new int[] { mapIndex.coastlineBrokenEncodingType }, null);
|
||||||
o.setMapIndex(mapIndex);
|
o.setMapIndex(mapIndex);
|
||||||
result.add(o);
|
result.add(o);
|
||||||
}
|
}
|
||||||
|
@ -958,8 +963,9 @@ public class MapRenderRepositories {
|
||||||
}
|
}
|
||||||
boolean clockwise = MapAlgorithms.isClockwiseWay(ring);
|
boolean clockwise = MapAlgorithms.isClockwiseWay(ring);
|
||||||
clockwiseFound = clockwiseFound || clockwise;
|
clockwiseFound = clockwiseFound || clockwise;
|
||||||
BinaryMapDataObject o = new BinaryMapDataObject(coordinates, new int[] { clockwise ? mapIndex.coastlineEncodingType
|
BinaryMapDataObject o = new BinaryMapDataObject(dbId, coordinates,
|
||||||
: mapIndex.landEncodingType }, null, dbId);
|
new int[0][], RenderingRulesStorage.POLYGON_RULES, true, new int[] { clockwise ? mapIndex.coastlineEncodingType
|
||||||
|
: mapIndex.landEncodingType }, null);
|
||||||
o.setMapIndex(mapIndex);
|
o.setMapIndex(mapIndex);
|
||||||
o.setArea(true);
|
o.setArea(true);
|
||||||
result.add(o);
|
result.add(o);
|
||||||
|
@ -967,8 +973,9 @@ public class MapRenderRepositories {
|
||||||
|
|
||||||
if (!clockwiseFound && uncompletedRings.size() == 0) {
|
if (!clockwiseFound && uncompletedRings.size() == 0) {
|
||||||
// add complete water tile
|
// add complete water tile
|
||||||
BinaryMapDataObject o = new BinaryMapDataObject(new int[] { leftX, topY, rightX, topY, rightX, bottomY, leftX, bottomY, leftX,
|
BinaryMapDataObject o = new BinaryMapDataObject(dbId,
|
||||||
topY }, new int[] { mapIndex.coastlineEncodingType }, null, dbId);
|
new int[] { leftX, topY, rightX, topY, rightX, bottomY, leftX, bottomY, leftX, topY },
|
||||||
|
new int[0][], RenderingRulesStorage.POLYGON_RULES, true, new int[] { mapIndex.coastlineEncodingType }, null);
|
||||||
o.setMapIndex(mapIndex);
|
o.setMapIndex(mapIndex);
|
||||||
log.info("!!! Isolated islands !!!"); //$NON-NLS-1$
|
log.info("!!! Isolated islands !!!"); //$NON-NLS-1$
|
||||||
result.add(o);
|
result.add(o);
|
||||||
|
|
Loading…
Reference in a new issue