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

polygon should List<List<LngLatAlt>> #59

Open
targei opened this issue Jan 8, 2021 · 1 comment
Open

polygon should List<List<LngLatAlt>> #59

targei opened this issue Jan 8, 2021 · 1 comment

Comments

@targei
Copy link

targei commented Jan 8, 2021

According to RFC7946 definition, to present the ring (with hole), it has to two dementional array.

https://tools.ietf.org/html/rfc7946#section-3.1.6
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
]
]
},
"properties": {
"prop0": "value0",
"prop1": {
"this": "that"
}
}

@Degooya
Copy link

Degooya commented Apr 22, 2023

If you look at the Geometry class, it already wraps T inside of a list

protected List<T> coordinates = new ArrayList<T>();

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

No branches or pull requests

2 participants