@@ -737,8 +737,30 @@ geometry:
737737 new Point (-90.7031 , 34.016 )
738738 )
739739 Geometry convexHull = geometry. convexHull
740- assertEquals (" POLYGON ((-90.7031 34.016, -111.796 42.553, -119.882 47.279, " +
741- " -100.195 46.316, -90.7031 34.016))" , convexHull. wkt)
740+ assertEquals (" POLYGON ((-122.3876953125 47.58121554959838, -122.39078521728516 47.58167872046887, " +
741+ " -122.3876953125 47.5828366297174, -122.38657951354979 47.58451555263637, " +
742+ " -122.38494873046875 47.58301031389572, -122.38177299499512 47.5823155737249, " +
743+ " -122.38486289978027 47.5812734461813, -122.38649368286131 47.5772205307505, " +
744+ " -122.3876953125 47.58121554959838))" , convexHull. wkt)
745+ }
746+
747+ @Test void concaveHull () {
748+ Geometry geometry = Geometry . fromWKT(" MULTIPOINT (" +
749+ " (-122.38657951354979 47.58451555263637), " +
750+ " (-122.38649368286131 47.5772205307505), " +
751+ " (-122.39078521728516 47.58167872046887), " +
752+ " (-122.38177299499512 47.5823155737249), " +
753+ " (-122.3876953125 47.5828366297174), " +
754+ " (-122.38494873046875 47.58301031389572), " +
755+ " (-122.3876953125 47.58121554959838), " +
756+ " (-122.38486289978027 47.5812734461813)" +
757+ " )" )
758+ Geometry concaveHull = geometry. concaveHull()
759+ assertEquals (" POLYGON ((-122.3876953125 47.58121554959838, -122.39078521728516 47.58167872046887, " +
760+ " -122.3876953125 47.5828366297174, -122.38657951354979 47.58451555263637, " +
761+ " -122.38494873046875 47.58301031389572, -122.38177299499512 47.5823155737249, " +
762+ " -122.38486289978027 47.5812734461813, -122.38649368286131 47.5772205307505, " +
763+ " -122.3876953125 47.58121554959838))" , concaveHull. wkt)
742764 }
743765
744766 @Test void covers () {
0 commit comments