Modify s2 intersecting edges error message so that it can be easily checked on geojsonlint.com.
Existing format in logs at log level 5:
% buildscripts/smoke.py --set-parameters=logLevel=5 --mode=files jstests/core/geo_invalid_polygon.js 2014-08-13T11:15:42.317-0400 I [initandlisten] MongoDB starting : pid=21518 port=27999 dbpath=/data/db/sconsTests/ 64-bit host=myhost.local ... 2014-08-13T11:16:01.090-0400 D S2 [conn3] Edges 0 and 2 cross 2014-08-13T11:16:01.090-0400 D S2 [conn3] Edge locations in degrees: -1.000000,-2.000000-1.000000,1.000000 and 1.000000,0.000000-0.000000,0.000000 2014-08-13T11:16:01.090-0400 D [conn3] User Assertion: 16755:Can't extract geo keys from object, malformed geometry?: { _id: 42.0, geometry: { type: "Polygon", coordinates: [ [ [ 0.0, 0.0 ], [ 0.0, 1.0 ], [ 1.0, 1.0 ], [ -2.0, -1.0 ], [ 0.0, 0.0 ] ] ] } } ... 2014-08-13T11:16:01.169-0400 I STORAGE [signalProcessingThread] shutdown: closing all files... 2014-08-13T11:16:01.169-0400 I STORAGE [signalProcessingThread] closeAllFiles() finished
Proposed format is
{ "type": "MultiLineString", "coordinates": [edge1, edge2] }- depends on
-
SERVER-9751 Make S2 geometry library to use Mongo's LOG instead of writing to std::cerr.
- Closed
-
SERVER-14467 Capture S2 debug log messages
- Closed
- is related to
-
SERVER-14729 Add log component to non-debug messages
- Closed
- links to