Unable to Tessellate shape (Polygon)

I'm having an issue while indexing the polygon below. What's wrong in the shape Elasticsearch version 7.7.

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [location] of type [geo_shape]"}],"type":"mapper_parsing_exception","reason":"failed to parse field [location] of type [geo_shape]","caused_by":{"type":"illegal_argument_exception","reason":"Unable to Tessellate shape [[33.615762933907, 72.96329911626] [33.485146925641, 72.963466622759] [33.48514692594, 73.14147845885] [33.616620655389, 73.136843558617] [33.615901420885, 73.051958084106] [33.580391251202, 73.069188595491] [33.578354410432, 73.065090365121] [33.580589010673, 73.064167542598] [33.580463874873, 73.063491551924] [33.57974880802, 73.062601127151] [33.579534286783, 73.062697627474] [33.579400210742, 73.062311428395] [33.579748808031, 73.062214870216] [33.579596855526, 73.061388731003] [33.579444902774, 73.060251493217] [33.57981137662, 73.060079821076] [33.580732023478, 73.05997253137] [33.581697351422, 73.059478994148] [33.582153196973, 73.057172243266] [33.582841429758, 73.054951523551] [33.582778863412, 73.054232565059] [33.582421340278, 73.053696070782] [33.582233639901, 73.051797284769] [33.578551057657, 73.051571835244] [33.577496308532, 73.0521726393] [33.577085131622, 73.051185513726] [33.575958854525, 73.049533262209] [33.576566688416, 73.048889634302] [33.575502976209, 73.040306562764] [33.574671662395, 73.039942025872] [33.574081693044, 73.039802548312] [33.573304000037, 73.039727447805] [33.572490543691, 73.038954740184] [33.572678265097, 73.038439729144] [33.578122008713, 73.026037200041] [33.577111947578, 73.025232541373] [33.576218078299, 73.024245499219] [33.575413588024, 73.023698336653] [33.574546517823, 73.023268953132] [33.573750950967, 73.022013776188] [33.573134158158, 73.021412958678] [33.572320700054, 73.019986164758] [33.57118095186, 73.018854257081] [33.570850198586, 73.018934719988] [33.570506035043, 73.018907916062] [33.567707979238, 73.017979856269] [33.567520247006, 73.018870340244] [33.565857458019, 73.017979850887] [33.564784673926, 73.017303940943] [33.564802553771, 73.017100094403] [33.563542015687, 73.016713857651] [33.561959612064, 73.016338353771] [33.561959611989, 73.016767517977] [33.559903338062, 73.017368312614] [33.558365570709, 73.013538131596] [33.552965287193, 73.007819910892] [33.552562934537, 73.007605079873] [33.551337983133, 73.007508450383] [33.550953505705, 73.007347515151] [33.549934185298, 73.006242513657] [33.548673430314, 73.004880166756] [33.545686887375, 73.001629107424] [33.54518613967, 73.002240991488] [33.544533374628, 73.001639826841] [33.543961083545, 73.002476657217] [33.543916373139, 73.002884315313] [33.543728589178, 73.003098959309] [33.542387263452, 73.004075438122] [33.54203851532, 73.004654784505] [33.541931207932, 73.005491540879] [33.541653996621, 73.007004621609] [33.54139466905, 73.007294407821] [33.541054859339, 73.007369519092] [33.541341014949, 73.010147943186] [33.54240514788, 73.013634552535] [33.54233360999, 73.013870775297] [33.542825432123, 73.015404896596] [33.538658268482, 73.011295808896] [33.534240498073, 73.019256360372] [33.532702273589, 73.023419541647] [33.531092475307, 73.025095984875] [33.526334450382, 73.039126417707] [33.526155572499, 73.046723601524] [33.525592103343, 73.048331734827] [33.525905142021, 73.04984442671] [33.526173459991, 73.050144930995] [33.525940917792, 73.050702821051] [33.525440055395, 73.051422360796] [33.524983910674, 73.052033163086] [33.52436676954, 73.052270096267] [33.524456210546, 73.056475295443] [33.524661924488, 73.056850861216] [33.524661924503, 73.058502892072] [33.525001798763, 73.058534840429] [33.524948134513, 73.059414627859] [33.525028630873, 73.060401695577] [33.526191347812, 73.060369505032] [33.526960521216, 73.060841573819] [33.527586587528, 73.060562641573] [33.5282037056, 73.060551896591] [33.529321661912, 73.061807148882] [33.530555868879, 73.063019507356] [33.529750953292, 73.064457192916] [33.530734738018, 73.066249103634] [33.531110361934, 73.067675827588] [33.531432324015, 73.068308846407] [33.531807944886, 73.069209993289] [33.532147790994, 73.071248531342] [33.533739683805, 73.073126092452] [33.535277889202, 73.076334123419] [33.53111930534, 73.081344375492] [33.531754284884, 73.084305523481] [33.534410416428, 73.086729464082] [33.536270554138, 73.087792358872] [33.537048580703, 73.086805357083] [33.538559899524, 73.086011385541] [33.540428890194, 73.088478197085] [33.540858127122, 73.090278628688] [33.541188995017, 73.090839287765] [33.541832842711, 73.092073144277] [33.542369378947, 73.092545163281] [33.543406672843, 73.092706046038] [33.544318765805, 73.092233979943] [33.544971532303, 73.091332804806] [33.545329210494, 73.09028148382] [33.545749480616, 73.089841785874] [33.54646482914, 73.089884528995] [33.547010278457, 73.090206485571] [33.547823975002, 73.090753621227] [33.549701707029, 73.092341428417] [33.550318667204, 73.093156853594] [33.55040808137, 73.094143949568] [33.550327608711, 73.09613940409] [33.55012195584, 73.097888161312] [33.551731400087, 73.098574870058] [33.55335869663096, 73.09810282818104] [33.554762438807, 73.097963265855] [33.556461204554, 73.096997749994] [33.557274812165, 73.096235997252] [33.557686083385, 73.095420581492] [33.55792748081, 73.094336853338] [33.558481798302, 73.090313834478] [33.560475523527, 73.086955985963] [33.562075834755, 73.085560830937] [33.562692706622, 73.084680988341] [33.564230396938, 73.080561187951] [33.566018374365, 73.077235622819] [33.566751434126, 73.076568941488] [33.573330817265, 73.074359909945] [33.575905221819, 73.072535071353] [33.577925360611, 73.070732820645] [33.580392368498, 73.069188645947] [33.615905888117, 73.051958073343] [33.615762933907, 72.96329911626] ]. Possible malformed shape detected."}},"status":400}

You need to share the original geometry as it is difficult to reconstruct it from this output.

There has been lots of improvements in this area, you should consider upgrading Elasticsearch as a matter of urgency, Elasticsearch 7.7 is very old, more that 2.5 years old.

1 Like

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