-
-
Save bictorman/064a777499719ad66194 to your computer and use it in GitHub Desktop.
Hole is not within polygon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FAILS ON 1.4.2 | |
curl http://localhost:9200/ | |
{ | |
"status" : 200, | |
"name" : "Daredevil", | |
"cluster_name" : "elasticsearch", | |
"version" : { | |
"number" : "1.4.2", | |
"build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c", | |
"build_timestamp" : "2014-12-16T14:11:12Z", | |
"build_snapshot" : false, | |
"lucene_version" : "4.10.2" | |
}, | |
"tagline" : "You Know, for Search" | |
} | |
curl -X PUT http://localhost:9200/errtest/ | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest/area/_mapping -d @mapping.json | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest/area/1 -d @winnenden.json | |
{"error":"MapperParsingException[failed to parse [geometry]]; nested: ElasticsearchParseException[Invaild shape: Hole is not within polygon]; ","status":400}% | |
# WORKS ON 1.3.7 | |
curl http://localhost:9200/ | |
{ | |
"status" : 200, | |
"name" : "Melter", | |
"version" : { | |
"number" : "1.3.7", | |
"build_hash" : "3042293e4b219dfb855a4e6c64241c530d1abeb0", | |
"build_timestamp" : "2014-12-16T13:59:32Z", | |
"build_snapshot" : false, | |
"lucene_version" : "4.9" | |
}, | |
"tagline" : "You Know, for Search" | |
} | |
curl -X PUT http://localhost:9200/errtest2/ | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest2/area/_mapping -d @mapping.json | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest2/area/1 -d @winnenden.json | |
{"_index":"errtest2","_type":"area","_id":"1","_version":1,"created":true} | |
# FAILS ON MASTER | |
curl http://localhost:9200/ | |
{ | |
"name" : "Winter Soldier", | |
"cluster_name" : "elasticsearch", | |
"version" : { | |
"number" : "2.0.0", | |
"build_hash" : "1ebc95ee28a3eb020c06675a28036a780001db37", | |
"build_timestamp" : "2015-01-30T10:48:03Z", | |
"build_snapshot" : true, | |
"lucene_version" : "5.1.0" | |
}, | |
"tagline" : "You Know, for Search" | |
} | |
curl -X PUT http://localhost:9200/errtest3 | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest3/area/_mapping -d @mapping.json | |
{"acknowledged":true}% | |
curl -X PUT http://localhost:9200/errtest3/area/1 -d @winnenden.json | |
{"error":"MapperParsingException[failed to parse [geometry]]; nested: ElasticsearchParseException[Invalid shape: Hole is not within polygon]; ","status":400} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"area": { | |
"properties": { | |
"geometry": { | |
"type": "geo_shape" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"geometry": { | |
"coordinates": [ | |
[ | |
[ | |
9.43443767223334, | |
48.9020766694563 | |
], | |
[ | |
9.43907095532756, | |
48.9023277179747 | |
], | |
[ | |
9.44025447520935, | |
48.9018622557758 | |
], | |
[ | |
9.441671958673, | |
48.9012594198992 | |
], | |
[ | |
9.44509473933511, | |
48.8998996501803 | |
], | |
[ | |
9.4484098172406, | |
48.8993360040537 | |
], | |
[ | |
9.45008356276218, | |
48.8987211209522 | |
], | |
[ | |
9.44859210371801, | |
48.8975885532846 | |
], | |
[ | |
9.45022635218681, | |
48.8971279863613 | |
], | |
[ | |
9.44950222904179, | |
48.895050902923 | |
], | |
[ | |
9.45051436615928, | |
48.8924070384851 | |
], | |
[ | |
9.45059107179438, | |
48.8894935274759 | |
], | |
[ | |
9.45628250603121, | |
48.8886924697821 | |
], | |
[ | |
9.4522553065563, | |
48.8844362666996 | |
], | |
[ | |
9.45732981602364, | |
48.8837552867826 | |
], | |
[ | |
9.45919647600179, | |
48.8825674669234 | |
], | |
[ | |
9.45997495654807, | |
48.8812435478935 | |
], | |
[ | |
9.45653251072636, | |
48.8808785827245 | |
], | |
[ | |
9.45673191881714, | |
48.8792164692509 | |
], | |
[ | |
9.46252715340178, | |
48.8766891435454 | |
], | |
[ | |
9.45813779271824, | |
48.8747143943421 | |
], | |
[ | |
9.46007352019572, | |
48.8721960361934 | |
], | |
[ | |
9.45853141704336, | |
48.8684489458323 | |
], | |
[ | |
9.45570832351161, | |
48.8678558797908 | |
], | |
[ | |
9.45553046860456, | |
48.8640855500231 | |
], | |
[ | |
9.45110422902923, | |
48.8638820776825 | |
], | |
[ | |
9.4514837802161, | |
48.8601979407492 | |
], | |
[ | |
9.44721823524281, | |
48.8582599026836 | |
], | |
[ | |
9.44662944655167, | |
48.8527317829698 | |
], | |
[ | |
9.4450217594503, | |
48.8539577962192 | |
], | |
[ | |
9.44315218854289, | |
48.853436392407 | |
], | |
[ | |
9.44476922965771, | |
48.8524083710911 | |
], | |
[ | |
9.44171578330796, | |
48.8518037687282 | |
], | |
[ | |
9.43861260963676, | |
48.8553450237283 | |
], | |
[ | |
9.43793919945529, | |
48.8562200586031 | |
], | |
[ | |
9.42909451266791, | |
48.8499742308518 | |
], | |
[ | |
9.43450164481382, | |
48.847030947404 | |
], | |
[ | |
9.42601292668987, | |
48.8451145797961 | |
], | |
[ | |
9.42094099148948, | |
48.8452274644115 | |
], | |
[ | |
9.41664724155885, | |
48.8452757338419 | |
], | |
[ | |
9.40963416431732, | |
48.8432285413842 | |
], | |
[ | |
9.409137636306, | |
48.8434935120113 | |
], | |
[ | |
9.4086156747067, | |
48.8436772817108 | |
], | |
[ | |
9.40794262910126, | |
48.8439135343903 | |
], | |
[ | |
9.40750280876668, | |
48.844080115434 | |
], | |
[ | |
9.40700869083952, | |
48.8442371676306 | |
], | |
[ | |
9.4065127460606, | |
48.8444751494327 | |
], | |
[ | |
9.40613718637962, | |
48.8448132498306 | |
], | |
[ | |
9.40581693061865, | |
48.8451159146469 | |
], | |
[ | |
9.40562091466656, | |
48.8453478439167 | |
], | |
[ | |
9.4055090785545, | |
48.8454726669942 | |
], | |
[ | |
9.40515973916008, | |
48.8458559941214 | |
], | |
[ | |
9.40464872311677, | |
48.8461567809005 | |
], | |
[ | |
9.40400185804664, | |
48.8464382401415 | |
], | |
[ | |
9.40332976782752, | |
48.84662950316 | |
], | |
[ | |
9.40264120034278, | |
48.8469465218787 | |
], | |
[ | |
9.40189710594407, | |
48.8473079613155 | |
], | |
[ | |
9.39831947126653, | |
48.8464181671861 | |
], | |
[ | |
9.39765718336379, | |
48.8479766478782 | |
], | |
[ | |
9.39488346699232, | |
48.8482909562228 | |
], | |
[ | |
9.39155326085055, | |
48.8496969843712 | |
], | |
[ | |
9.39069007581549, | |
48.8516851645804 | |
], | |
[ | |
9.38380116657905, | |
48.8513555194015 | |
], | |
[ | |
9.38481175050939, | |
48.8524539722541 | |
], | |
[ | |
9.38203147904415, | |
48.8530377339698 | |
], | |
[ | |
9.37269580764496, | |
48.8535912703345 | |
], | |
[ | |
9.36817332378684, | |
48.8581506211749 | |
], | |
[ | |
9.36958566688512, | |
48.8618887023232 | |
], | |
[ | |
9.37284608216411, | |
48.8658973257321 | |
], | |
[ | |
9.37731961546964, | |
48.8675884878714 | |
], | |
[ | |
9.38129559218392, | |
48.8684020023417 | |
], | |
[ | |
9.37798589347656, | |
48.8712020236482 | |
], | |
[ | |
9.37750014465894, | |
48.8733378455635 | |
], | |
[ | |
9.3796115023886, | |
48.8756121350906 | |
], | |
[ | |
9.37607588469368, | |
48.8818413976061 | |
], | |
[ | |
9.36940785782594, | |
48.8806316509033 | |
], | |
[ | |
9.36892268489816, | |
48.882137830484 | |
], | |
[ | |
9.36233937350895, | |
48.8837168657869 | |
], | |
[ | |
9.36228712641757, | |
48.8853623585793 | |
], | |
[ | |
9.36926882656407, | |
48.8854243931294 | |
], | |
[ | |
9.37200113076899, | |
48.884057899176 | |
], | |
[ | |
9.3716303982139, | |
48.8829927781472 | |
], | |
[ | |
9.37404165526942, | |
48.8825224522778 | |
], | |
[ | |
9.37964351800545, | |
48.8844407812355 | |
], | |
[ | |
9.3787289301673, | |
48.8856548586419 | |
], | |
[ | |
9.38057267482988, | |
48.8855474615798 | |
], | |
[ | |
9.38689611197846, | |
48.8816081659399 | |
], | |
[ | |
9.38879882536897, | |
48.8824906313515 | |
], | |
[ | |
9.38937293598833, | |
48.8824333901075 | |
], | |
[ | |
9.39530526472494, | |
48.8818447217653 | |
], | |
[ | |
9.39709401351942, | |
48.8841470627274 | |
], | |
[ | |
9.39871179023642, | |
48.8861778487542 | |
], | |
[ | |
9.40812114611674, | |
48.8868550464796 | |
], | |
[ | |
9.41293997098114, | |
48.8884941792387 | |
], | |
[ | |
9.41429668474058, | |
48.8900364813414 | |
], | |
[ | |
9.41239672276297, | |
48.8914301185912 | |
], | |
[ | |
9.41616541606242, | |
48.8930858459527 | |
], | |
[ | |
9.41545486474431, | |
48.8955794425085 | |
], | |
[ | |
9.41141314415553, | |
48.8945326604729 | |
], | |
[ | |
9.41883787651526, | |
48.8980318495347 | |
], | |
[ | |
9.41788631772705, | |
48.8984903411024 | |
], | |
[ | |
9.42188789257254, | |
48.900558253808 | |
], | |
[ | |
9.42324963492924, | |
48.8993814915525 | |
], | |
[ | |
9.42477945004477, | |
48.89957473958 | |
], | |
[ | |
9.42461580154857, | |
48.9008191397281 | |
], | |
[ | |
9.42661454828598, | |
48.9017048260743 | |
], | |
[ | |
9.4299227594784, | |
48.9012305976208 | |
], | |
[ | |
9.43157797493021, | |
48.9006515097617 | |
], | |
[ | |
9.43339902082268, | |
48.9015360579274 | |
], | |
[ | |
9.43443767223334, | |
48.9020766694563 | |
] | |
], | |
[ | |
[ | |
9.43907095532756, | |
48.9023277179747 | |
], | |
[ | |
9.43849414863286, | |
48.900631241717 | |
], | |
[ | |
9.43582363028998, | |
48.9004708715019 | |
], | |
[ | |
9.43410359942372, | |
48.8986555222216 | |
], | |
[ | |
9.43862722118773, | |
48.8964230346959 | |
], | |
[ | |
9.44110809916525, | |
48.8990100792439 | |
], | |
[ | |
9.43907095532756, | |
48.9023277179747 | |
] | |
] | |
], | |
"type": "Polygon" | |
}, | |
"properties": { | |
"name": "Winnenden" | |
}, | |
"type": "Feature" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment