@@ -3499,44 +3499,5 @@ test("tesselate", function (t) {
34993499 tesselate ( featurecollection ( [ ] ) ) ;
35003500 } , / i n p u t m u s t b e a P o l y g o n o r M u l t i P o l y g o n / ) ;
35013501
3502- var simplePolygonWithElevation = {
3503- type : "Feature" ,
3504- id : "CoordsWithElevation" ,
3505- properties : { name : "CoordsWithElevation" } ,
3506- geometry : {
3507- type : "Polygon" ,
3508- coordinates : [
3509- [
3510- [ - 123.233256 , 42.006186 , 130 ] ,
3511- [ - 114.634459 , 35.00118 , 130 ] ,
3512- [ - 118.183517 , 33.763391 , 130 ] ,
3513- [ - 124.213628 , 42.000709 , 130 ] ,
3514- [ - 123.233256 , 42.006186 , 130 ] ,
3515- ] ,
3516- ] ,
3517- } ,
3518- } ;
3519-
3520- var simpleTrianglesWithElevation = tesselate ( simplePolygonWithElevation ) ;
3521- t . equal (
3522- simpleTrianglesWithElevation . type ,
3523- "FeatureCollection" ,
3524- "Polygon returns a FeatureCollection"
3525- ) ;
3526- t . equal (
3527- simpleTrianglesWithElevation . features [ 0 ] . geometry . type ,
3528- "Polygon" ,
3529- "contains at least 1 triangle"
3530- ) ;
3531- t . equal (
3532- simpleTrianglesWithElevation . features [ 0 ] . geometry . coordinates [ 0 ] . length ,
3533- 4 ,
3534- "triangle is valid"
3535- ) ;
3536- t . equal (
3537- simpleTrianglesWithElevation . features [ 0 ] . geometry . coordinates [ 0 ] [ 0 ] [ 2 ] ,
3538- 130 ,
3539- "triangle coordinates contain elevation"
3540- ) ;
35413502 t . end ( ) ;
35423503} ) ;
0 commit comments