<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:48 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-9240] Exterior shell of polygon is invalid: duplicate points not ignored in Polygon/MultiPolygon</title>
                <link>https://jira.mongodb.org/browse/SERVER-9240</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When trying to add a GeoJSON polygon to a field with a 2dsphere index I get the error: &quot;Exterior shell of polygon is invalid&quot;.&lt;/p&gt;

&lt;p&gt;That same GeoJSON polygon appears to be vaild when tested at &lt;a href=&quot;http://geojsonlint.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://geojsonlint.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;How can I identify why the shell is invalid?&lt;br/&gt;
The Attached file contains both the invalid polygon and a valid one that stored successfully.&lt;/p&gt;</description>
                <environment>Single MongoDB instance running on Window laptop.</environment>
        <key id="70722">SERVER-9240</key>
            <summary>Exterior shell of polygon is invalid: duplicate points not ignored in Polygon/MultiPolygon</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="dan@mongodb.com">Daniel Pasette</assignee>
                                    <reporter username="brittenbrianm@johndeere.com">Brian Britten</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 13:51:00 +0000</created>
                <updated>Mon, 11 Jul 2016 17:58:39 +0000</updated>
                            <resolved>Fri, 11 Oct 2013 19:48:58 +0000</resolved>
                                    <version>2.4.1</version>
                                    <fixVersion>2.5.3</fixVersion>
                                    <component>Geo</component>
                                        <votes>2</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="439168" author="auto" created="Thu, 10 Oct 2013 19:49:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9240&quot; title=&quot;Exterior shell of polygon is invalid: duplicate points not ignored in Polygon/MultiPolygon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9240&quot;&gt;&lt;del&gt;SERVER-9240&lt;/del&gt;&lt;/a&gt;: ignore duplicate points in Polygon/MultiPolygon&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/84e1053cc47db7fe49692e3d9adb295da035511d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/84e1053cc47db7fe49692e3d9adb295da035511d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="416383" author="dan@10gen.com" created="Mon, 2 Sep 2013 21:44:12 +0000"  >&lt;p&gt;Thanks for the report.&lt;br/&gt;
This was only fixed for type &lt;tt&gt;LineString&lt;/tt&gt; in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9401&quot; title=&quot;GeoJSON Parser: Can&amp;#39;t extract geo keys from object, malformed geometry?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9401&quot;&gt;&lt;del&gt;SERVER-9401&lt;/del&gt;&lt;/a&gt; and needs to be extended to the other types.&lt;/p&gt;</comment>
                            <comment id="416198" author="okr2013" created="Mon, 2 Sep 2013 13:20:07 +0000"  >&lt;p&gt;Not working MultiPolygon&lt;/p&gt;</comment>
                            <comment id="416197" author="okr2013" created="Mon, 2 Sep 2013 13:19:22 +0000"  >&lt;p&gt;I can verify that error with Mongo 2.5.1 and 2.5.2, though using a MultiPolygon (MultiPolygonSample.json)&lt;/p&gt;

&lt;p&gt;The MultiPolygon only consists of one Polygon. And the polygon only has one linear ring with 75 points. First and last point are the same.&lt;/p&gt;

&lt;p&gt;Then i continously removed points from the end (except for the last).&lt;/p&gt;

&lt;p&gt;When there are only points 49 left ( i removed &lt;span class=&quot;error&quot;&gt;&amp;#91;13.6939, 51.0979&amp;#93;&lt;/span&gt; ), then i was finally able to save the sample.&lt;/p&gt;</comment>
                            <comment id="306658" author="brittenbrianm@johndeere.com" created="Fri, 5 Apr 2013 12:17:56 +0000"  >&lt;p&gt;In reviewing the points further,  the last point and the second to last point in the polygon are the same.  After removing the duplicate point the GeoJSON saved correctly.&lt;/p&gt;

&lt;p&gt;Should the GeoJSON be invalid if it contains a duplicate point?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="72326">SERVER-9401</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="30633" name="MultiPolygonSample.json" size="1569" author="okr2013" created="Mon, 2 Sep 2013 13:20:07 +0000"/>
                            <attachment id="25618" name="SamplePloygons.txt" size="5210" author="brittenbrianm@johndeere.com" created="Thu, 4 Apr 2013 13:51:00 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 16 Apr 2013 06:37:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 18 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 18 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>brittenbrianm@johndeere.com</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>okr2013</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmyfj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrn36v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>48452</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrrmvb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>