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

turf-flip incorrect if z-elevation is present #669

Closed
DenisCarriere opened this issue Apr 16, 2017 · 1 comment
Closed

turf-flip incorrect if z-elevation is present #669

DenisCarriere opened this issue Apr 16, 2017 · 1 comment
Assignees
Milestone

Comments

@DenisCarriere
Copy link
Member

If coordinates contain elevation, coordinates are flipped entirely (elevation is placed in first position).

var serbia = {
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Point",
    "coordinates": [20.566406, 43.421008, 3000]
  }
};
turf.flip(serbia)
//=geometry.coordinates => [3000, 43.421008, 20.566406]
@DenisCarriere
Copy link
Member Author

Fixed via PR #678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant