We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current versions of GeoJSONReader and GEOJSONWriter don't handle 3D coordinates. I propose the following changes:
GeoJSONWriter:
double[] convert(Coordinate coordinate) { if(Double.isNaN( coordinate.z )) { return new double[] { coordinate.x, coordinate.y }; } else { return new double[] { coordinate.x, coordinate.y, coordinate.z }; } }
GeoJSONReader:
Coordinate convert(double[] c) { if(c.length == 2){ return new Coordinate(c[0], c[1]); } else{ return new Coordinate(c[0], c[1], c[2]); } }
Thanks for a useful library, btw!
The text was updated successfully, but these errors were encountered:
Thanks, seems like a good idea. Can you make it a pull request?
Sorry, something went wrong.
Fixed by #16.
bjornharrtell
No branches or pull requests
The current versions of GeoJSONReader and GEOJSONWriter don't handle 3D coordinates. I propose the following changes:
GeoJSONWriter:
GeoJSONReader:
Thanks for a useful library, btw!
The text was updated successfully, but these errors were encountered: