Last active
August 29, 2015 14:05
-
-
Save mongolab-org/d4018455b659a1452631 to your computer and use it in GitHub Desktop.
MongoDB invalid/valid polygon example
This file contains hidden or 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
//Invalid - Each point/vertex of the polygon is provided. | |
{ "type": "Polygon", | |
"coordinates": [ | |
[ [ 100.0 , 0.0 ] , [ 101.0 , 0.0 ] , [ 101.0 , 1.0 ] , [ 100.0 , 1.0 ] ] | |
] | |
} | |
//Valid - First vertex of the polygon is provided at both the beginning and end of a LinearRing. | |
{ "type": "Polygon", | |
"coordinates": [ | |
[ [ 100.0 , 0.0 ] , [ 101.0 , 0.0 ] , [ 101.0 , 1.0 ] , [ 100.0 , 1.0 ] , [ 100.0 , 0.0 ] ] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment