Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more lenient when processing KML coordinates #3124

Merged
merged 1 commit into from
Oct 23, 2015
Merged

Be more lenient when processing KML coordinates #3124

merged 1 commit into from
Oct 23, 2015

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Oct 23, 2015

Our code in master is pretty strict when processing KML, but it turns out Google will let you pass almost anything and just use zeros (in the case of single coordinates) or create an object without an geometry (in the case of linear rings). This change makes Cesium match that behavior, event though the spec itself says it's invalid.

I also noticed the Viewer specs had a bug because Viewer itself was listed in the list of requires (the way our specs work, the thing being tested has to be in the list of requires and has to be first). In this case, because all creation is deferred to the createViewer helper, it wasn't being included.

To test this just run/review the unit tests, they are updated to reflect the change in functionality.

Our code in master is pretty strict whenprocessing KML, but it turns
out Google will let you pass almost anything and just use zeros (in the
case of single coordinates) or create an object without an geometry (in
the case of linear rings).  This change makes Cesium match that behavior,
event though the spec itself says it's invalid.

I also noticed the Viewer specs had a bug because Viewer itself was listed
in the list of requires (the way our specs work, the thing being tested
has to be in the list of requires and has to be first).  In this case,
because all creation is deferred to the `createViewer` helper, it wasn't
being included.

To test this just run/review the unit tests, they are updated to reflect
the change in functionality.
@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 23, 2015

Looks good.

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 23, 2015

Update CHANGES.md in master.

pjcozzi added a commit that referenced this pull request Oct 23, 2015
Be more lenient when processing KML coordinates
@pjcozzi pjcozzi merged commit 275d1be into master Oct 23, 2015
@pjcozzi pjcozzi deleted the kml-stinks branch October 23, 2015 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants