<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:25:41 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-11395] Cannot create 2dsphere index on GeoJSON data</title>
                <link>https://jira.mongodb.org/browse/SERVER-11395</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have shape data file data which I converted to GeoJSON using QGIS 1.7.3 for Mac. I parsed out each GeoJSON object from the generated file and then wrote out each object (one object per line) to an output file. Finally, I loaded that output file into mongo using the &apos;mongoimport&apos; utility, creating a new collection for the data.&lt;/p&gt;

&lt;p&gt;I then log in to the database using the &apos;mongo&apos; tool and attempt to create a &apos;2dsphere&apos; index on the newly created collection. About 18% of the way through the data I receive the error &lt;/p&gt;

&lt;p&gt;&quot;Can&apos;t extract geo keys from object, malformed geometry?&quot;&lt;br/&gt;
This sounds similar to ticket &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;&lt;/p&gt;

&lt;p&gt;I&apos;ve checked &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; and the GeoJSON mentioned in the error passes and successfully renders.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached the exact error and its output to the ticket&lt;/p&gt;





{ type: &quot;Polygon&quot;, coordinates: [ [ [ -73.99625346569333, 40.76190478805697 ], [ -73.99609819005899, 40.76212541008178 ], [ -73.99589543781777, 40.76203152905607 ], [ -73.99612203263234, 40.76172143380322 ], [ -73.99614119142737, 40.76169823745224 ], [ -73.99713046436048, 40.76211428136805 ], [ -73.99678540634655, 40.76258863993873 ], [ -73.9959938151665, 40.76225573199486 ], [ -73.99609819005899, 40.76212541008178 ], [ -73.99647687902545, 40.76227949768229 ], [ -73.99650084085626, 40.76224545124312 ], [ -73.99670747493275, 40.76232952932145 ], [ -73.99682613447295, 40.76216093031877 ], [ -73.99629031476267, 40.76194290760107 ], [ -73.99630296782105, 40.7619249303378 ], [ -73.99625346569333, 40.76190478805697 ] ] ] }</description>
                <environment>CentOs, OSX Mountain LIon</environment>
        <key id="95817">SERVER-11395</key>
            <summary>Cannot create 2dsphere index on GeoJSON data</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="rgordon1982">Robert Gordon</reporter>
                        <labels>
                            <label>geo</label>
                            <label>geojson</label>
                            <label>geometry</label>
                    </labels>
                <created>Fri, 25 Oct 2013 21:32:33 +0000</created>
                <updated>Wed, 7 May 2014 15:52:04 +0000</updated>
                            <resolved>Fri, 1 Nov 2013 16:12:43 +0000</resolved>
                                    <version>2.5.3</version>
                                                    <component>Geo</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="450186" author="jesse" created="Fri, 1 Nov 2013 16:12:43 +0000"  >&lt;p&gt;This behavior is expected; the polygon self-intersects at a corner. It is not defined whether a polygon&apos;s vertex is inside or outside the polygon, so accepting &lt;b&gt;or&lt;/b&gt; rejecting this polygon would both be acceptable behavior.&lt;/p&gt;

&lt;p&gt;As a workaround, you might add a minuscule amount of space between the two corners to ensure the polygon does not intersect itself.&lt;/p&gt;</comment>
                            <comment id="449170" author="jesse" created="Wed, 30 Oct 2013 23:43:22 +0000"  >&lt;p&gt;Visualization of this polygon; it self-intersects at &lt;span class=&quot;error&quot;&gt;&amp;#91;-73.99609819005899, 40.76212541008178&amp;#93;&lt;/span&gt;.&lt;/p&gt;</comment>
                            <comment id="446984" author="rgordon1982" created="Fri, 25 Oct 2013 21:35:11 +0000"  >&lt;p&gt;Another message being displayed in the error is the following:&lt;/p&gt;

&lt;p&gt;Exterior shell of polygon is invalid&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="135248">SERVER-13857</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="33239" name="Screen Shot 2013-10-30 at 7.36.12 PM.png" size="202709" author="jesse@mongodb.com" created="Wed, 30 Oct 2013 23:43:22 +0000"/>
                            <attachment id="33020" name="mongo-error.txt" size="1767" author="rgordon1982" created="Fri, 25 Oct 2013 21:32:33 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 30 Oct 2013 23:43:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 15 weeks, 5 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 15 weeks, 5 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>rgordon1982</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm97r:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>87758</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Insert GeoJSON record specified in attachment into a new collection. Attempt to create a 2dsphere index on that collection using the following command:&lt;br/&gt;
db.btest.ensureIndex(&lt;/p&gt;
{geometry:&quot;2dsphere&quot;}
&lt;p&gt;)&lt;/p&gt;</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|hsp73z:</customfieldvalue>

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