942 lwg =
lwgeom_from_hexwkb(
"0103000020E61000000100000025000000ACAD6F91DDB65EC03F84A86D57264540CCABC279DDB65EC0FCE6926B57264540B6DEAA62DDB65EC0A79F6B63572645402E0BE84CDDB65EC065677155572645405D0B1D39DDB65EC0316310425726454082B5DB27DDB65EC060A4E12957264540798BB619DDB65EC0C393A10D57264540D4BC160FDDB65EC0BD0320EE56264540D7AC4E08DDB65EC096C862CC56264540AFD29205DDB65EC02A1F68A956264540363AFA06DDB65EC0722E418656264540B63A780CDDB65EC06E9B0064562645409614E215DDB65EC0E09DA84356264540FF71EF22DDB65EC0B48145265626454036033F33DDB65EC081B8A60C5626454066FB4546DDB65EC08A47A6F7552645409061785BDDB65EC0F05AE0E755264540D4B63772DDB65EC05C86CEDD55264540D2E4C689DDB65EC09B6EBFD95526454082E573A1DDB65EC0C90BD5DB552645401ABE85B8DDB65EC06692FCE35526454039844ECEDDB65EC04D8AF6F155264540928319E2DDB65EC0AD8D570556264540D31055F3DDB65EC02D618F1D56264540343B7A01DEB65EC0EB70CF3956264540920A1A0CDEB65EC03B00515956264540911BE212DEB65EC0E43A0E7B56264540E3F69D15DEB65EC017E4089E562645408D903614DEB65EC0F0D42FC1562645402191B80EDEB65EC0586870E35626454012B84E05DEB65EC09166C80357264540215B41F8DDB65EC08F832B21572645408392F7E7DDB65EC01138C13A57264540F999F0D4DDB65EC0E4A9C14F57264540AC3FB8BFDDB65EC0EED6875F57264540D3DCFEA8DDB65EC04F6C996957264540ACAD6F91DDB65EC03F84A86D57264540",
LW_PARSER_CHECK_NONE);
944 pt_to_test.
x = -122.819436560680316;
945 pt_to_test.
y = 42.2702301207017328;
946 pt_outside.
x = 120.695136159150778;
947 pt_outside.
y = 40.6920926049588516;
960 CU_ASSERT_EQUAL(result,
LW_TRUE);
971 CU_ASSERT_EQUAL(result,
LW_TRUE);
985 CU_ASSERT_EQUAL(result,
LW_TRUE);
1002 pt_to_test.
x = 1.05;
1005 pt_outside.
y = 1.05;
1011 lwg =
lwgeom_from_wkt(
"POLYGON((0 0, 0 2, 1 2, 0 3, 2 3, 0 4, 3 5, 0 6, 6 10, 6 1, 0 0))",
LW_PARSER_CHECK_NONE);
1016 pt_outside.
y = 10.0;
1018 CU_ASSERT_EQUAL(result,
LW_TRUE);
1027 pt_outside.
y = 1.05;
1029 CU_ASSERT_EQUAL(result,
LW_TRUE);
1038 pt_outside.
y = 1.05;
1040 CU_ASSERT_EQUAL(result,
LW_TRUE);
1047 pt_to_test.
y = 1.05;
1051 CU_ASSERT_EQUAL(result,
LW_TRUE);
1090 pt_to_test.
x = 0.99;
1091 pt_to_test.
y = 0.99;
1092 pt_outside.
x = 1.21;
1093 pt_outside.
y = 1.21;
1101 pt_to_test.
x = 1.11;
1102 pt_to_test.
y = 1.11;
1103 pt_outside.
x = 1.21;
1104 pt_outside.
y = 1.21;
1106 CU_ASSERT_EQUAL(result,
LW_TRUE);
1112 pt_to_test.
x = -10.0;
1113 pt_to_test.
y = 50.0;
1114 pt_outside.
x = -10.2727799838316134;
1115 pt_outside.
y = -16.9370033133329976;
1117 CU_ASSERT_EQUAL(result,
LW_TRUE);
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
int ptarray_contains_point_sphere(const POINTARRAY *pa, const POINT2D *pt_outside, const POINT2D *pt_to_test)
This routine returns LW_TRUE if the stabline joining the pt_outside and pt_to_test crosses the ring a...
#define LW_TRUE
Return types for functions with status returns.
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)