Skip to content

Commit

Permalink
Use floor on screen coordinates to prevent coordinate jump around 0 a…
Browse files Browse the repository at this point in the history
…xes.
  • Loading branch information
RoelvandenBerg committed May 7, 2024
1 parent 30e5340 commit 7071355
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions t-rex-core/src/mvt/tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ impl<'a> Tile<'a> {

pub fn point(&self, point: &geom::Point) -> screen::Point {
let mut screen_geom = screen::Point {
x: ((point.x - self.extent.minx) / self.pixel_size_x) as i32,
y: ((point.y - self.extent.miny) / self.pixel_size_y) as i32,
x: ((point.x - self.extent.minx) / self.pixel_size_x).floor() as i32,
y: ((point.y - self.extent.miny) / self.pixel_size_y).floor() as i32,
};
if self.reverse_y {
screen_geom.y = self.tile_size.saturating_sub(screen_geom.y)
Expand Down
12 changes: 6 additions & 6 deletions t-rex-core/src/mvt/tile_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn test_point_to_screen_coords() {
extent.miny - 100.,
Some(3857)
)),
screen::Point { x: -1, y: 257 }
screen::Point { x: -2, y: 258 }
);
assert_eq!(
tile.point(&geom::Point::new(
Expand Down Expand Up @@ -134,7 +134,7 @@ fn test_clipped_polygon() {
);
let screen_geom = screen::MultiPolygon::from_geom(&tile, &geom);
assert_eq!(screen_geom.polygons[0].rings.len(), 1);
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,72 -9,-9 -9,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 -1,121 -1,118 -3,117 -3,115 -4,113 -5,111 -5,110 -5,109 -5,108 -5,107 -5,104 -5,103 -5,102 -5,99 -4,98 -4,97 -4,96 -4,96 -3,95 -3,94 -3,93 -2,92 -2,90 -3,88 -3,87 -3,84 -3,82 -2,81 -2,79 -3,78 -3,76 -5,75 -6,74 -8,72 -9,72 -10,-10 -10,-10 77,-9 77,-7 78,-6 78,-4 78,-2 78,-1 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
// SELECT ST_GeomFromText('POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,72 -9,-9 -9,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))')
assert_eq!(screen_geom.polygons[0].rings[0].points.len(), 170);

Expand All @@ -150,8 +150,8 @@ fn test_clipped_polygon() {
assert_eq!(geom.polygons[0].rings[0].points.len(), 197);
let screen_geom = screen::MultiPolygon::from_geom(&tile, &geom);
assert_eq!(screen_geom.polygons[0].rings.len(), 1);
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,70 -11,69 -12,69 -13,68 -14,67 -14,66 -15,65 -16,64 -17,63 -18,62 -18,61 -19,59 -19,58 -19,57 -19,0 -19,-3 -19,-7 -17,-10 -16,-13 -13,-16 -10,-17 -7,-19 -3,-19 0,-19 71,-13 74,-12 75,-11 77,-10 77,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
// SELECT ST_GeomFromText('POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,70 -11,69 -12,69 -13,68 -14,67 -14,66 -15,65 -16,64 -17,63 -18,62 -18,61 -19,59 -19,58 -19,57 -19,0 -19,-3 -19,-7 -17,-10 -16,-13 -13,-16 -10,-17 -7,-19 -3,-19 0,-19 71,-13 74,-12 75,-11 77,-10 77,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))')
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 -1,121 -1,118 -3,117 -3,115 -4,113 -5,111 -5,110 -5,109 -5,108 -5,107 -5,104 -5,103 -5,102 -5,99 -4,98 -4,97 -4,96 -4,96 -3,95 -3,94 -3,93 -2,92 -2,90 -3,88 -3,87 -3,84 -3,82 -2,81 -2,79 -3,78 -3,76 -5,75 -6,74 -8,72 -9,70 -12,69 -13,69 -14,68 -15,67 -15,66 -16,65 -17,64 -18,63 -19,62 -19,61 -20,59 -20,58 -20,57 -20,0 -20,-4 -20,-8 -18,-11 -17,-14 -14,-17 -11,-18 -8,-20 -4,-20 0,-20 71,-14 74,-13 75,-12 77,-11 77,-10 77,-9 77,-7 78,-6 78,-4 78,-2 78,-1 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
// SELECT ST_GeomFromText('POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 -1,121 -1,118 -3,117 -3,115 -4,113 -5,111 -5,110 -5,109 -5,108 -5,107 -5,104 -5,103 -5,102 -5,99 -4,98 -4,97 -4,96 -4,96 -3,95 -3,94 -3,93 -2,92 -2,90 -3,88 -3,87 -3,84 -3,82 -2,81 -2,79 -3,78 -3,76 -5,75 -6,74 -8,72 -9,70 -12,69 -13,69 -14,68 -15,67 -15,66 -16,65 -17,64 -18,63 -19,62 -19,61 -20,59 -20,58 -20,57 -20,0 -20,-4 -20,-8 -18,-11 -17,-14 -14,-17 -11,-18 -8,-20 -4,-20 0,-20 71,-14 74,-13 75,-12 77,-11 77,-10 77,-9 77,-7 78,-6 78,-4 78,-2 78,-1 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))')
assert_eq!(screen_geom.polygons[0].rings[0].points.len(), 196);

// v0.11
Expand All @@ -166,8 +166,8 @@ fn test_clipped_polygon() {
assert_eq!(geom.polygons[0].rings[0].points.len(), 198);
let screen_geom = screen::MultiPolygon::from_geom(&tile, &geom);
assert_eq!(screen_geom.polygons[0].rings.len(), 1);
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,70 -11,69 -12,69 -13,68 -14,67 -14,66 -15,65 -16,64 -17,63 -18,62 -18,61 -19,59 -19,58 -19,57 -19,0 -19,-3 -19,-7 -17,-10 -16,-13 -13,-16 -10,-17 -7,-19 -3,-19 0,-19 71,-13 74,-12 75,-11 77,-10 77,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,229 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
// SELECT ST_GeomFromText('POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 0,121 0,118 -2,117 -2,115 -3,113 -4,111 -4,110 -4,109 -4,108 -4,107 -4,104 -4,103 -4,102 -4,99 -3,98 -3,97 -3,96 -3,96 -2,95 -2,94 -2,93 -1,92 -1,90 -2,88 -2,87 -2,84 -2,82 -1,81 -1,79 -2,78 -2,76 -4,75 -5,74 -7,72 -8,70 -11,69 -12,69 -13,68 -14,67 -14,66 -15,65 -16,64 -17,63 -18,62 -18,61 -19,59 -19,58 -19,57 -19,0 -19,-3 -19,-7 -17,-10 -16,-13 -13,-16 -10,-17 -7,-19 -3,-19 0,-19 71,-13 74,-12 75,-11 77,-10 77,-9 77,-8 77,-6 78,-5 78,-3 78,-1 78,0 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,229 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))')
assert_eq!(poly_to_wkt(&screen_geom.polygons[0].rings), "POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 -1,121 -1,118 -3,117 -3,115 -4,113 -5,111 -5,110 -5,109 -5,108 -5,107 -5,104 -5,103 -5,102 -5,99 -4,98 -4,97 -4,96 -4,96 -3,95 -3,94 -3,93 -2,92 -2,90 -3,88 -3,87 -3,84 -3,82 -2,81 -2,79 -3,78 -3,76 -5,75 -6,74 -8,72 -9,70 -12,69 -13,69 -14,68 -15,67 -15,66 -16,65 -17,64 -18,63 -19,62 -19,61 -20,59 -20,58 -20,57 -20,0 -20,-4 -20,-8 -18,-11 -17,-14 -14,-17 -11,-18 -8,-20 -4,-20 0,-20 71,-14 74,-13 75,-12 77,-11 77,-10 77,-9 77,-7 78,-6 78,-4 78,-2 78,-1 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,229 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))");
// SELECT ST_GeomFromText('POLYGON((203 50,202 49,201 47,199 46,199 45,198 44,197 42,196 42,196 41,194 40,194 39,192 38,192 37,191 36,189 35,188 35,187 34,185 34,184 33,182 32,181 30,179 29,177 28,176 28,174 26,173 26,171 25,171 24,169 22,168 21,168 19,167 18,166 17,166 16,165 15,164 14,164 12,163 11,162 10,161 9,160 7,159 7,158 6,156 5,155 5,154 6,153 6,152 7,151 6,150 6,150 5,147 5,145 5,143 4,142 5,141 5,140 5,139 5,138 5,136 4,135 4,132 2,130 1,129 1,128 1,127 1,126 0,124 0,123 -1,121 -1,118 -3,117 -3,115 -4,113 -5,111 -5,110 -5,109 -5,108 -5,107 -5,104 -5,103 -5,102 -5,99 -4,98 -4,97 -4,96 -4,96 -3,95 -3,94 -3,93 -2,92 -2,90 -3,88 -3,87 -3,84 -3,82 -2,81 -2,79 -3,78 -3,76 -5,75 -6,74 -8,72 -9,70 -12,69 -13,69 -14,68 -15,67 -15,66 -16,65 -17,64 -18,63 -19,62 -19,61 -20,59 -20,58 -20,57 -20,0 -20,-4 -20,-8 -18,-11 -17,-14 -14,-17 -11,-18 -8,-20 -4,-20 0,-20 71,-14 74,-13 75,-12 77,-11 77,-10 77,-9 77,-7 78,-6 78,-4 78,-2 78,-1 78,2 77,3 77,4 76,8 75,11 75,49 79,52 76,62 66,72 52,76 52,92 53,93 53,94 53,95 53,128 53,137 57,139 58,153 64,161 68,164 68,167 68,183 89,185 95,224 100,229 100,228 100,227 99,227 98,226 95,225 95,224 91,223 87,222 87,221 84,221 82,221 81,220 80,219 77,218 76,217 75,217 74,216 74,214 71,213 70,212 70,210 68,210 66,209 66,208 64,208 63,207 61,206 60,206 59,205 58,203 54,203 53,203 52,203 51,203 50))')
assert_eq!(screen_geom.polygons[0].rings[0].points.len(), 197);
}

Expand Down

0 comments on commit 7071355

Please sign in to comment.