ERR"reason"Unable to Tessellate shape Possible malformed shape detected

I want to know why it failed, because of accuracy?Why does this polygon be judged as a self -intersecting graph, which causes storage

POLYGON((38628095.0171 3322658.2041,38628095.2386 3322662.567299999,38628095.1811 3322663.264799999,38628094.915 3322664.643300001,38628094.2821 3322665.858100001,38628093.3759 3322667.1107,38628092.5186 3322668.045399999,38628091.657 3322668.6777,38628089.8285 3322669.7711,38628076.9698 3322676.3651,38628074.5197 3322677.567299999,38628072.0297 3322678.683900001,38628069.8522 3322679.640799999,38628068.9379 3322680.0195,38628067.8236 3322680.2806,38628066.6642 3322680.358200001,38628061.5236 3322680.3639,38628057.3255 3322680.2322,38628047.1014 3322679.876399999,38628046.1868 3322679.774599999,38628045.5388 3322679.702400001,38628043.8075 3322679.3705,38628043.5789 3322679.3091,38628041.6866 3322678.697699999,38628041.1056 3322678.4899,38628031.7581 3322675.243100001,38628029.0105 3322674.1635,38628028.4123 3322673.862299999,38628027.3634 3322673.182499999,38628026.7632 3322672.662699999,38628025.9362 3322671.7335,38628025.1294 3322670.5909,38628024.6634 3322669.7873,38628023.8573 3322668.415999999,38628022.4946 3322665.567500001,38628021.8242 3322663.7214,38628020.8196 3322660.300100001,38628020.3947 3322658.5096,38628018.9748 3322652.407099999,38628018.8607 3322652.0561,38628018.5178 3322651.5176,38628018.2429 3322651.238700001,38628016.764 3322649.930400001,38628014.9804 3322648.526799999,38628012.639 3322647.030300001,38628010.3884 3322645.696699999,38628009.0849 3322645.0825,38628007.7853 3322644.6439,38628005.9323 3322644.190300001,38628000.2751 3322642.786599999,38627993.2106 3322640.8813,38627983.4069 3322638.241800001,38627977.5396 3322636.994899999,38627974.4905 3322636.455499999,38627971.011 3322636.0847,38627966.6404 3322635.731699999,38627960.0953 3322635.3782,38627951.3555 3322634.6932,38627944.4385 3322634.1162,38627933.6598 3322633.5572,38627926.2302 3322633.295700001,38627919.9567 3322633.0748,38627917.9653 3322633.004699999,38627913.7663 3322633.028200001,38627912.7003 3322633.1252,38627908.0146 3322633.8619,38627906.1923 3322634.3334,38627902.427 3322635.4714,38627900.656 3322636.218900001,38627899.713 3322636.6909,38627897.3357 3322637.986300001,38627891.7254 3322641.122199999,38627886.3931 3322644.3156,38627883.2223 3322646.431299999,38627882.4252 3322646.9735,38627872.6482 3322653.920600001,38627870.1072 3322655.146400001,38627867.9811 3322655.9759,38627864.5342 3322656.5932,38627861.7458 3322656.1752,38627859.7829 3322655.193,38627856.9926 3322653.0308,38627837.99 3322636.0284,38627830.365 3322629.213500001,38627823.1121 3322622.7982,38627817.3769 3322617.864,38627814.6238 3322615.516899999,38627803.5882 3322602.335200001,38627796.5765 3322593.8992,38627786.0793 3322583.7304,38627782.2008 3322580.5703,38627776.7774 3322576.5405,38627776.2117 3322576.120200001,38627774.7095 3322575.027000001,38627776.4119 3322567.9154,38627786.8676 3322575.9944,38627798.6059 3322587.471799999,38627807.0836 3322598.2972,38627813.4744 3322606.644400001,38627817.8792 3322611.522399999,38627834.6034 3322626.4692,38627853.6089 3322645.3069,38627859.2342 3322650.34,38627861.6557 3322652.216399999,38627862.8147 3322652.7963,38627864.4839 3322653.046499999,38627867.0275 3322652.591,38627868.7086 3322651.9351,38627870.8616 3322650.896500001,38627880.4271 3322644.0996,38627881.2668 3322643.5285,38627884.5215 3322641.356799999,38627889.972 3322638.092599999,38627895.6445 3322634.922,38627898.0918 3322633.588300001,38627899.1907 3322633.0383,38627901.2369 3322632.174699999,38627905.2473 3322630.9627,38627907.3027 3322630.4308,38627912.2695 3322629.649900001,38627913.5977 3322629.529100001,38627918.0171 3322629.5044,38627933.812 3322630.0604,38627944.6747 3322630.6237,38627951.6377 3322631.204600001,38627960.3265 3322631.885600001,38627966.8757 3322632.2393,38627971.3374 3322632.5996,38627974.9814 3322632.988,38627978.2084 3322633.558900001,38627984.2262 3322634.8377,38627994.1212 3322637.501800001,38628001.1523 3322639.3981,38628006.7698 3322640.791999999,38628008.7628 3322641.2798,38628010.3947 3322641.830600001,38628012.0301 3322642.601199999,38628014.4741 3322644.0494,38628017.01 3322645.6702,38628019.0077 3322647.2423,38628020.6515 3322648.6965,38628021.2708 3322649.3248,38628022.0517 3322650.551100001,38628022.3497 3322651.467700001,38628022.4101 3322651.7271,38628023.8019 3322657.709100001,38628024.2037 3322659.4025,38628025.1515 3322662.630100001,38628025.7259 3322664.2117,38628026.9502 3322666.7711,38628027.686 3322668.022700001,38628028.0787 3322668.6998,38628028.9368 3322669.915100001,38628029.7441 3322670.6143,38628030.4406 3322670.9649,38628032.9728 3322671.959899999,38628042.2691 3322675.188999999,38628044.9203 3322676.1371,38628045.461 3322676.254000001,38628046.8591 3322676.365900001,38628057.4412 3322676.734099999,38628061.5766 3322676.8638,38628066.5453 3322676.8585,38628067.3041 3322676.807600001,38628067.8618 3322676.676899999,38628068.4781 3322676.421599999,38628070.6095 3322675.4849,38628073.0323 3322674.398499999,38628075.4001 3322673.2367,38628088.1301 3322666.708699999,38628089.7192 3322665.7585,38628090.1711 3322665.4268,38628090.6593 3322664.8947,38628091.2963 3322664.0141,38628091.5752 3322663.478700001,38628091.7086 3322662.788000001,38628091.7313 3322662.5121,38628091.5269 3322658.4849,38628091.3687 3322657.0502,38628090.9033 3322654.7147,38628088.8148 3322645.768100001,38628088.5729 3322644.146299999,38628088.4505 3322642.3649,38628088.8102 3322640.080499999,38628089.0685 3322639.055299999,38628089.5919 3322637.676899999,38628090.024 3322636.8519,38628090.6949 3322636.065300001,38628091.9762 3322635.0677,38628094.9189 3322633.122300001,38628097.8301 3322631.606000001,38628099.1318 3322631.045499999,38628100.6929 3322630.628900001,38628101.9709 3322630.5637,38628103.0726 3322630.663899999,38628106.4151 3322631.871300001,38628107.0905 3322632.213500001,38628110.4015 3322634.2038,38628111.5814 3322634.972200001,38628112.417 3322635.8211,38628113.6638 3322637.2598,38628116.6929 3322641.940199999,38628117.5122 3322643.086200001,38628118.7103 3322644.502900001,38628118.8697 3322644.691400001,38628120.5549 3322646.3463,38628120.9832 3322646.709100001,38628122.2003 3322647.5625,38628125.4761 3322649.362,38628128.6915 3322650.919600001,38628129.2231 3322651.1231,38628132.9333 3322652.543400001,38628132.9911 3322652.566400001,38628133.7451 3322652.8169,38628134.9885 3322652.904999999,38628136.0201 3322652.6384,38628136.1346 3322652.567,38628137.4004 3322650.9944,38628138.6744 3322649.411800001,38628148.6577 3322637.009500001,38628161.5143 3322621.037699999,38628163.5924 3322618.4561,38628164.0629 3322617.8716,38628165.9939 3322614.925799999,38628166.2748 3322614.4549,38628168.1404 3322610.5458,38628170.2186 3322605.112500001,38628170.5536 3322604.213,38628172.1138 3322600.044199999,38628173.3082 3322596.720699999,38628174.5777 3322595.949100001,38628174.9038 3322595.7382,38628177.6535 3322593.960200001,38628178.1391 3322593.6272,38628177.9352 3322594.194499999,38628175.3998 3322601.249500001,38628173.8325 3322605.4373,38628173.4931 3322606.3485,38628171.3595 3322611.926899999,38628169.3637 3322616.1087,38628168.9618 3322616.782600001,38628167.2631 3322619.3738,38628166.8964 3322619.9332,38628165.2605 3322621.965500001,38628138.4896 3322655.223099999,38628137.4164 3322655.8926,38628135.3111 3322656.4366,38628133.0516 3322656.2765,38628131.7485 3322655.8375,38628127.3004 3322654.1347,38628123.8696 3322652.4728,38628120.3475 3322650.5381,38628118.8431 3322649.483100001,38628118.1945 3322648.933900001,38628116.3018 3322647.075099999,38628114.7479 3322645.237600001,38628113.7986 3322643.9099,38628110.8585 3322639.366900001,38628109.8448 3322638.1972,38628109.3534 3322637.698000001,38628108.5443 3322637.1711,38628105.3957 3322635.2784,38628103.8376 3322634.489,38628102.5021 3322634.126399999,38628101.9013 3322634.071799999,38628101.2392 3322634.105599999,38628100.2812 3322634.361199999,38628099.3326 3322634.7697,38628096.6972 3322636.1423,38628094.0195 3322637.9125,38628093.1265 3322638.607999999,38628092.942 3322638.824200001,38628092.7896 3322639.1151,38628092.4128 3322640.1075,38628092.2429 3322640.7817,38628091.9693 3322642.519099999,38628092.0551 3322643.7676,38628092.2555 3322645.111,38628094.3247 3322653.9746,38628094.8309 3322656.5154,38628095.0171 3322658.2041))

Hi @baiwenbo1997,

Welcome to the community. I have a look into the issue and it seems you are hitting a bug that has been fixed in the latest Elasticsearch release (Elasticsearch 8.3.x). More specific, this was a Lucene bug: [LUCENE-10470] Unable to Tessellate polygon - ASF JIRA

You need to upgrade to the latest release to get the fix. Note that the bug is still present in 7.17.x and it will get fixed in the next release (Port fixed version of Lucene Tessellator into ES 7.17 by craigtaverner · Pull Request #88213 · elastic/elasticsearch · GitHub).

Thanks,

Ignacio

Thank you for your reply, the last face storage failed because of the version problem, I have updated the version to 8.3.2, this single face cannot be stored

ERR:Unable to Tessellate shape. Possible malformed shape detected

POLYGON((38624501.2381 3328310.110099999,38624501.0769 3328309.939099999,38624500.8769 3328309.6537,38624500.7931 3328309.491699999,38624500.1205 3328308.034499999,38624500.0569 3328307.8805,38624499.9667 3328307.5437,38624499.9367 3328307.1755,38624500.0485 3328301.793500001,38624500.0485 3328281.8003,38624500.5485 3328279.305299999,38624501.5659 3328277.015699999,38624501.6615 3328276.8281,38624501.8615 3328276.5425,38624502.1081 3328276.2959,38624502.3935 3328276.095899999,38624502.7095 3328275.9487,38624502.9303 3328275.8825,38624505.2843 3328275.321900001,38624505.4003 3328275.297900001,38624505.6891 3328275.2685,38624524.8571 3328274.707900001,38624524.9155 3328274.7071,38624534.4357 3328274.7071,38624539.7399 3328273.459100001,38624548.9098 3328269.3367,38624551.6036 3328268.125700001,38624551.7163 3328268.075099999,38624555.725 3328265.921700001,38624565.2193 3328260.8215,38624565.3179 3328260.7721,38624571.4051 3328257.922700001,38624578.142 3328255.326400001,38624590.5925 3328252.853499999,38624590.9751 3328252.8193,38624594.7232 3328252.872099999,38624597.4294 3328252.9103,38624603.2016 3328252.991599999,38624607.0671 3328252.4692,38624616.1197 3328250.0119,38624617.4286 3328249.6566,38624618.2405 3328249.391799999,38624621.086 3328247.645500001,38624631.0563 3328239.5681,38624639.7651 3328232.7851,38624639.9981 3328232.628900001,38624643.1735 3328230.814300001,38624646.2126 3328229.3081,38624652.1785 3328228.035499999,38624652.2365 3328228.0239,38624670.1868 3328224.7468,38624678.1474 3328224.218900001,38624679.8067 3328224.195900001,38624685.2139 3328223.7633,38624687.581 3328223.251399999,38624689.1915 3328222.903100001,38624694.9856 3328221.4301,38624695.7433 3328221.237500001,38624700.6219 3328219.8281,38624710.8127 3328215.286699999,38624719.2239 3328211.5855,38624719.2959 3328211.555500001,38624730.9535 3328206.9597,38624731.0031 3328206.9409,38624731.1753 3328206.8869,38624742.6087 3328203.8605,38624742.7733 3328203.8243,38624743.1205 3328203.7939,38624743.2271 3328203.796700001,38624746.3056 3328203.960899999,38624751.6341 3328204.245100001,38624751.7093 3328204.250499999,38624760.9722 3328205.095899999,38624770.7349 3328205.9869,38624770.9005 3328206.009099999,38624771.1441 3328206.0679,38624779.2681 3328208.580700001,38624791.8727 3328212.018100001,38624796.0172 3328213.148499999,38624800.5177 3328214.3759,38624802.3253 3328214.897,38624812.9685 3328217.965299999,38624826.4125 3328221.757200001,38624834.8175 3328224.127900001,38624849.7225 3328228.2743,38624849.8697 3328228.323799999,38624853.8137 3328229.847100001,38624854.8943 3328230.262499999,38624854.9599 3328230.302100001,38624857.9865 3328232.207699999,38624858.2063 3328232.368100001,38624858.4529 3328232.614700001,38624858.6293 3328232.860300001,38624859.4186 3328234.157099999,38624860.1985 3328235.4385,38624860.2305 3328235.492699999,38624860.7989 3328236.515900001,38624860.9299 3328236.803099999,38624861.0203 3328237.139900001,38624861.0487 3328237.4003,38624857.0976 3328238.610200001,38624857.0731 3328238.045700001,38624856.7623 3328237.486300001,38624855.4571 3328235.3421,38624853.0207 3328233.8079,38624848.4029 3328232.1971,38624848.0743 3328232.045299999,38624847.8905 3328231.9165,38624833.7385 3328227.979499999,38624825.8177 3328225.7454,38624811.8715 3328221.811899999,38624799.4375 3328218.227299999,38624791.2763 3328216.001499999,38624790.8201 3328215.8771,38624783.8516 3328213.976600001,38624778.1817 3328212.430299999,38624778.1169 3328212.411499999,38624774.5273 3328211.3013,38624767.6823 3328209.725,38624751.3825 3328208.237299999,38624745.6626 3328207.932399999,38624741.0493 3328208.4111,38624732.3129 3328210.7235,38624720.7997 3328215.262499999,38624712.4337 3328218.943499999,38624702.1239 3328223.537900001,38624701.9939 3328223.590500001,38624701.8649 3328223.6325,38624696.8207 3328225.0897,38624696.7585 3328225.106699999,38624690.1449 3328226.7881,38624690.0749 3328226.804500001,38624685.9273 3328227.701300001,38624685.8521 3328227.7161,38624685.6643 3328227.7401,38624680.0595 3328228.1885,38624679.9277 3328228.194700001,38624673.0521 3328228.289899999,38624652.9865 3328231.9531,38624647.0127 3328233.227499999,38624642.1109 3328236.0285,38624633.9466 3328242.3869,38624626.0128 3328249.3336,38624622.4564 3328252.033600001,38624619.3761 3328253.413000001,38624607.305 3328256.5889,38624602.3001 3328256.9793,38624594.8787 3328256.874600001,38624591.1443 3328256.821900001,38624581.1738 3328258.802200001,38624574.0934 3328261.080800001,38624567.0651 3328264.3705,38624553.5489 3328271.6313,38624553.4225 3328271.693499999,38624549.988 3328273.237400001,38624541.2043 3328277.186100001,38624541.0683 3328277.2413,38624540.8423 3328277.308900001,38624535.9695 3328278.455399999,38624532.3393 3328278.7071,38624524.9465 3328278.7071,38624506.0109 3328279.2607,38624504.8195 3328279.544500001,38624504.0485 3328281.278899999,38624504.0483 3328301.8367,38624503.9627 3328305.951300001,38624504.1782 3328307.281099999,38624504.2623 3328307.463300001,38624505.0008 3328308.158299999,38624505.0641 3328308.1413,38624505.4113 3328308.1109,38624505.4869 3328308.112299999,38624532.1651 3328309.121099999,38624532.3431 3328309.1359,38624556.8915 3328312.274499999,38624557.0087 3328312.293099999,38624594.2997 3328319.795700001,38624613.9635 3328322.4771,38624614.0636 3328322.4935,38624646.4335 3328328.989700001,38624659.8043 3328330.995100001,38624678.4967 3328333.233899999,38624678.6061 3328333.2501,38624678.7799 3328333.288699999,38624683.9594 3328334.6863,38624690.2847 3328336.9947,38624692.9009 3328338.2315,38624693.0463 3328338.307700001,38624693.3039 3328338.4847,38624700.9404 3328344.6614,38624704.8586 3328347.952500001,38624710.0072 3328350.8704,38624716.4684 3328353.8116,38624725.3599 3328358.778899999,38624742.4717 3328370.4241,38624742.6319 3328370.545499999,38624742.7309 3328370.634299999,38624749.2231 3328376.862500001,38624749.3541 3328377.000700001,38624755.2263 3328383.8201,38624755.3363 3328383.962099999,38624761.3893 3328392.5371,38624761.4875 3328392.6905,38624761.5205 3328392.7499,38624766.6359 3328402.3497,38624769.8082 3328408.5644,38624770.367 3328410.0527,38624771.1479 3328412.1325,38624772.903 3328416.8072,38624774.4373 3328421.978499999,38624774.4811 3328422.155300001,38624775.7141 3328428.3203,38624775.7255 3328428.3813,38624776.8177 3328435.226,38624777.9825 3328438.9136,38624780.764 3328443.8258,38624781.5695 3328445.0452,38624787.7396 3328453.622,38624788.0854 3328454.102700001,38624794.7005 3328463.3167,38624804.4805 3328473.7675,38624811.1383 3328478.350500001,38624812.208 3328479.016100001,38624813.4979 3328479.818700001,38624818.3721 3328481.095100001,38624823.7303 3328481.757300001,38624829.3935 3328481.757300001,38624832.6855 3328481.295299999,38624840.1289 3328478.957699999,38624851.8321 3328474.889699999,38624854.6451 3328473.7106,38624862.2915 3328470.5055,38624866.2405 3328468.7619,38624869.0731 3328468.1533,38624873.0507 3328467.992699999,38624876.2059 3328468.373500001,38624882.1219 3328469.770300001,38624887.6847 3328472.2205,38624902.8079 3328480.422900001,38624902.8625 3328480.4537,38624923.8727 3328492.846100001,38624927.9559 3328494.906300001,38624928.5729 3328495.217599999,38624931.2413 3328496.564099999,38624933.1025 3328497.5032,38624933.8813 3328497.8961,38624944.5589 3328503.283299999,38624944.6155 3328503.313100001,38624980.1565 3328522.694399999,38625001.2233 3328535.5605,38625013.2217 3328542.254699999,38625013.2515 3328542.381100001,38625013.4973 3328543.420499999,38625013.8233 3328545.463099999,38625014.1227 3328547.3379,38624999.2289 3328539.028100001,38624999.1735 3328538.9955,38624978.1547 3328526.1577,38624966.4274 3328519.7629,38624962.1871 3328517.4507,38624952.3345 3328512.078299999,38624942.7289 3328506.840299999,38624932.4307 3328501.644300001,38624931.0769 3328500.961300001,38624929.7651 3328500.2993,38624927.4683 3328499.1405,38624922.0129 3328496.3879,38624921.9059 3328496.329700001,38624901.5127 3328484.3015,38624879.9649 3328473.371099999,38624873.9813 3328471.9583,38624869.4643 3328472.140699999,38624866.5935 3328472.978499999,38624863.8677 3328474.1819,38624856.1844 3328477.4024,38624853.3205 3328478.6029,38624853.2179 3328478.6427,38624841.4133 3328482.746099999,38624841.3559 3328482.7651,38624833.7265 3328485.1609,38624833.4745 3328485.2225,38624833.4053 3328485.2335,38624829.8113 3328485.7379,38624829.5333 3328485.757300001,38624823.6063 3328485.757300001,38624823.3611 3328485.7421,38624817.7495 3328485.0485,38624817.6475 3328485.033299999,38624817.4881 3328484.998500001,38624814.1858 3328484.1336,38624812.1917 3328483.611300001,38624812.0143 3328483.5559,38624811.6983 3328483.4087,38624811.6417 3328483.374700001,38624810.9431 3328482.939999999,38624803.1297 3328478.078299999,38624802.9007 3328477.9123,38624802.7259 3328477.7467,38624800.0519 3328474.8893,38624791.6919 3328465.9559,38624791.6201 3328465.8749,38624791.5275 3328465.7557,38624784.4657 3328455.9197,38624784.4137 3328455.843699999,38624782.814 3328453.384400001,38624777.4361 3328446.122400001,38624776.449 3328444.831599999,38624773.5561 3328439.1503,38624773.1881 3328437.863600001,38624771.7835 3328429.0623,38624770.5771 3328423.0307,38624769.2615 3328418.5966,38624767.3309 3328413.375,38624766.1699 3328410.2349,38624764.8955 3328407.7381,38624763.0935 3328404.2075,38624758.0489 3328394.7411,38624752.1227 3328386.345699999,38624746.3849 3328379.682700001,38624740.0833 3328373.6373,38624726.7092 3328364.535700001,38624715.9209 3328357.956900001,38624704.1362 3328352.548800001,38624703.9873 3328352.444499999,38624703.0311 3328351.6413,38624701.048 3328349.975500001,38624700.2686 3328349.320699999,38624698.3983 3328347.749700001,38624690.9751 3328341.7457,38624688.7926 3328340.7139,38624684.1185 3328338.872500001,38624677.8769 3328337.188300001,38624659.3015 3328334.9637,38624659.2425 3328334.955700001,38624645.7915 3328332.938100001,38624645.6945 3328332.9211,38624643.9459 3328332.5701,38624613.3619 3328326.4323,38624593.6945 3328323.7501,38624593.5939 3328323.7337,38624579.4385 3328320.8859,38624556.3143 3328316.2333,38624531.9253 3328313.1149,38624507.1987 3328312.1799,38624506.0403 3328312.1362,38624504.0437 3328311.814099999,38624502.3835 3328311.188100001,38624501.2381 3328310.110099999))

In this case the polygon fails because Cartesian shapes work on float precision and with that precision this polygon is considered self-intersecting:

Polygon self-intersection at lat=3328545.1875 lon=3.8625012E7

As you said, the polygon is judged to be self-intersection due to the precision, so when storing the polygon, determine what the precision range of the self-intersection is or whether there is a solution to the failure of polygon storage due to the precision problem

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.