]> granicus.if.org Git - postgis/commitdiff
Make test case not overlap nan empty case
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 25 Jun 2015 19:33:50 +0000 (19:33 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 25 Jun 2015 19:33:50 +0000 (19:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13706 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_libgeom.c

index 99119f7f70307a9d37313b85385704175eef068b..ea707cecf34299aca06d15787afa146261ed260d 100644 (file)
@@ -215,8 +215,8 @@ static void test_lwgeom_calculate_gbox(void)
        lwgeom_free(g);
        
        /* Geometry with NaN 0101000020E8640000000000000000F8FF000000000000F8FF */
-       /* NaN should show up in bbox */
-       g = lwgeom_from_hexwkb("0101000020E8640000000000000000F8FF000000000000F8FF", LW_PARSER_CHECK_NONE);
+       /* NaN should show up in bbox for "SRID=4326;POINT(0 NaN)" */
+       g = lwgeom_from_hexwkb("0101000020E86400000000000000000000000000000000F8FF", LW_PARSER_CHECK_NONE);
        lwgeom_calculate_gbox_cartesian(g, &b);
        CU_ASSERT(isnan(b.ymax));
        lwgeom_free(g);